You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DoesNotReturn]publicstaticvoidThrowMultiDimensionalArrayException(stringname)=>thrownewArgumentException("The array has more than one dimension.",name);
30
+
[DoesNotReturn]publicstaticvoidThrowArrayNotZeroBasedIndexingException(stringname)=>thrownewArgumentException("The array doesn't use zero-based indexing.",name);
31
+
[DoesNotReturn]publicstaticvoidThrowArrayTypeMismatchException(stringname)=>thrownewArgumentException("The array's element type doesn't match the collection's element type.",name);
32
+
}
33
+
34
+
publicstaticclassLinkedList
35
+
{
36
+
publicstaticclassEnumerator
37
+
{
38
+
[DoesNotReturn]publicstaticvoidThrowListModifiedException()=>thrownewInvalidOperationException("The list was modified after the enumerator was created.");
39
+
}
40
+
41
+
[DoesNotReturn]publicstaticvoidThrowNodeNotInListException()=>thrownewInvalidOperationException("The node is not in the list.");
42
+
[DoesNotReturn]publicstaticvoidThrowNewNodeInAnotherListException()=>thrownewInvalidOperationException("The new node is already in another list.");
43
+
[DoesNotReturn]publicstaticvoidThrowListTooBigException(stringname)=>thrownewArgumentException("The list is too big for the destination array.",name);
44
+
[DoesNotReturn]publicstaticvoidThrowListEmptyException(stringname)=>thrownewArgumentException("The list is empty.",name);
45
+
}
46
+
47
+
publicstaticclassStack
48
+
{
49
+
publicstaticclassEnumerator
50
+
{
51
+
[DoesNotReturn]publicstaticvoidThrowStackModifiedException()=>thrownewInvalidOperationException("The stack was modified after the enumerator was created.");
52
+
}
53
+
54
+
[DoesNotReturn]publicstaticvoidThrowStackTooBigException(stringname)=>thrownewArgumentException("The stack is too big for the destination array.",name);
55
+
[DoesNotReturn]publicstaticvoidThrowStackEmptyException()=>thrownewInvalidOperationException("The stack is empty.");
56
+
}
57
+
58
+
publicstaticclassQueue
59
+
{
60
+
publicstaticclassEnumerator
61
+
{
62
+
[DoesNotReturn]publicstaticvoidThrowQueueModifiedException()=>thrownewInvalidOperationException("The queue was modified after the enumerator was created.");
63
+
}
64
+
65
+
[DoesNotReturn]publicstaticvoidThrowQueueTooBigException(stringname)=>thrownewArgumentException("The queue is too big for the destination array.",name);
66
+
}
67
+
68
+
publicstaticclassList
69
+
{
70
+
publicstaticclassEnumerator
71
+
{
72
+
[DoesNotReturn]publicstaticvoidThrowListModifiedException()=>thrownewInvalidOperationException("The list was modified after the enumerator was created.");
73
+
}
74
+
75
+
[DoesNotReturn]publicstaticvoidThrowValueIncorrectTypeException(stringname)=>thrownewArgumentException("The value's type is different from the list's element type.",name);
76
+
[DoesNotReturn]publicstaticvoidThrowIndexOutOfBoundsException(stringname)=>thrownewArgumentException("The index is greater or equal to the list's element count.",name);
77
+
[DoesNotReturn]publicstaticvoidThrowListTooBigException(stringname)=>thrownewArgumentException("The list is too big for the destination array.",name);
78
+
}
79
+
80
+
publicstaticclassEqualityComparer
81
+
{
82
+
[DoesNotReturn]publicstaticvoidThrowInvalidTypeException(stringname)=>thrownewArgumentException("The parameter is of a type that cannot be cast to the compared type.",name);
0 commit comments