152 references to ExceptionArgument
mscorlib (152)
microsoft\win32\registrykey.cs (5)
1460
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
2154
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.name);
2174
ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidRegistryKeyPermissionCheck,
ExceptionArgument
.mode);
2180
ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidRegistryOptionsCheck,
ExceptionArgument
.options);
2186
ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidRegistryViewCheck,
ExceptionArgument
.view);
system\bitconverter.cs (18)
157
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
161
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
176
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
180
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
208
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
212
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
239
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
243
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
277
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
279
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
293
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
295
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
309
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
311
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
324
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
326
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
340
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.value);
342
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
system\buffer.cs (2)
507
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.sourceBytesToCopy);
522
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.sourceBytesToCopy);
system\collections\generic\debugview.cs (4)
34
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.collection);
54
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.collection);
74
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.collection);
94
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.dictionary);
system\collections\generic\dictionary.cs (25)
92
if (capacity < 0) ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.capacity);
110
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.dictionary);
248
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
252
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
279
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.info);
299
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
322
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
469
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
530
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
542
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
629
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
631
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value,
ExceptionArgument
.value);
650
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
658
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
660
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value,
ExceptionArgument
.value);
807
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.dictionary);
818
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
822
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
871
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
883
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
994
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.dictionary);
1005
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
1009
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1058
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
1070
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
system\collections\generic\list.cs (42)
61
if (capacity < 0) ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
76
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.collection);
117
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.value, ExceptionResource.ArgumentOutOfRange_SmallCapacity);
205
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value,
ExceptionArgument
.value);
228
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(item,
ExceptionArgument
.item);
278
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
280
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
342
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.converter);
422
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
436
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
463
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
467
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_Count);
471
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
486
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
512
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
521
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
527
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
533
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_Count);
547
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
584
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
588
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
637
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_Index);
655
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_Index);
657
if (count <0 || index > _size - count) ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_Count);
672
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_ListInsert);
686
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(item,
ExceptionArgument
.item);
703
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.collection);
707
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_Index);
777
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_Index);
795
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
799
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
810
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
814
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
844
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
894
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
898
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
931
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
935
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
969
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
973
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
986
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
1025
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.match);
system\collections\objectmodel\collection.cs (7)
33
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.list);
100
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_ListInsert);
176
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
188
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
236
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value,
ExceptionArgument
.value);
273
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value,
ExceptionArgument
.value);
303
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value,
ExceptionArgument
.value);
system\collections\objectmodel\keyedcollection.cs (4)
44
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.dictionaryCreationThreshold, ExceptionResource.ArgumentOutOfRange_InvalidThreshold);
60
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
78
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
109
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
system\collections\objectmodel\readonlycollection.cs (3)
29
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.list);
121
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
133
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
system\collections\objectmodel\readonlydictionary.cs (7)
170
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
233
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
245
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
364
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.collection);
463
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.collection);
561
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.array);
573
ThrowHelper.ThrowArgumentOutOfRangeException(
ExceptionArgument
.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
system\runtime\compilerservices\ConditionalWeakTable.cs (3)
110
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
134
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
169
ThrowHelper.ThrowArgumentNullException(
ExceptionArgument
.key);
system\runtime\interopservices\windowsruntime\icustompropertyprovider.cs (1)
582
ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value,
ExceptionArgument
.value);
system\throwhelper.cs (31)
56
ThrowArgumentOutOfRangeException(
ExceptionArgument
.index, ExceptionResource.ArgumentOutOfRange_Index);
75
internal static void ThrowArgumentException(ExceptionResource resource,
ExceptionArgument
argument) {
79
internal static void ThrowArgumentNullException(
ExceptionArgument
argument) {
83
internal static void ThrowArgumentOutOfRangeException(
ExceptionArgument
argument) {
87
internal static void ThrowArgumentOutOfRangeException(
ExceptionArgument
argument, ExceptionResource resource) {
123
internal static void IfNullAndNullsAreIllegalThenThrow<T>(object value,
ExceptionArgument
argName) {
132
internal static string GetArgumentName(
ExceptionArgument
argument) {
136
case
ExceptionArgument
.array:
140
case
ExceptionArgument
.arrayIndex:
144
case
ExceptionArgument
.capacity:
148
case
ExceptionArgument
.collection:
152
case
ExceptionArgument
.list:
156
case
ExceptionArgument
.converter:
160
case
ExceptionArgument
.count:
164
case
ExceptionArgument
.dictionary:
168
case
ExceptionArgument
.dictionaryCreationThreshold:
172
case
ExceptionArgument
.index:
176
case
ExceptionArgument
.info:
180
case
ExceptionArgument
.key:
184
case
ExceptionArgument
.match:
188
case
ExceptionArgument
.obj:
192
case
ExceptionArgument
.queue:
196
case
ExceptionArgument
.stack:
200
case
ExceptionArgument
.startIndex:
204
case
ExceptionArgument
.value:
208
case
ExceptionArgument
.name:
212
case
ExceptionArgument
.mode:
216
case
ExceptionArgument
.item:
220
case
ExceptionArgument
.options:
224
case
ExceptionArgument
.view:
228
case
ExceptionArgument
.sourceBytesToCopy: