system\array.cs (109)
52throw new ArgumentOutOfRangeException("newSize", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
77throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
85throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"elementType");
95throw new ArgumentOutOfRangeException((length1 < 0 ? "length1" : "length2"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
103throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"elementType");
116throw new ArgumentOutOfRangeException("length1", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
118throw new ArgumentOutOfRangeException("length2", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
120throw new ArgumentOutOfRangeException("length3", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
129throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "elementType");
145throw new ArgumentException(Environment.GetResourceString("Arg_NeedAtLeast1Rank"));
152throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "elementType");
160throw new ArgumentOutOfRangeException("lengths["+i+']', Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
172throw new ArgumentException(Environment.GetResourceString("Arg_NeedAtLeast1Rank"));
183throw new ArgumentOutOfRangeException("len", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
201throw new ArgumentException(Environment.GetResourceString("Arg_RanksAndBounds"));
203throw new ArgumentException(Environment.GetResourceString("Arg_NeedAtLeast1Rank"));
210throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "elementType");
218throw new ArgumentOutOfRangeException("lengths["+i+']', Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
323throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
332throw new ArgumentOutOfRangeException("sourceIndex", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
334throw new ArgumentOutOfRangeException("destinationIndex", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
336throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
358throw new ArgumentException(Environment.GetResourceString("Arg_RankIndices"));
371throw new ArgumentException(Environment.GetResourceString("Arg_Need1DArray"));
383throw new ArgumentException(Environment.GetResourceString("Arg_Need2DArray"));
399throw new ArgumentException(Environment.GetResourceString("Arg_Need3DArray"));
416throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
426throw new ArgumentOutOfRangeException("index1", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
428throw new ArgumentOutOfRangeException("index2", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
438throw new ArgumentOutOfRangeException("index1", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
440throw new ArgumentOutOfRangeException("index2", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
442throw new ArgumentOutOfRangeException("index3", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
454throw new ArgumentException(Environment.GetResourceString("Arg_RankIndices"));
463throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
475throw new ArgumentException(Environment.GetResourceString("Arg_Need1DArray"));
487throw new ArgumentException(Environment.GetResourceString("Arg_Need2DArray"));
503throw new ArgumentException(Environment.GetResourceString("Arg_Need3DArray"));
522throw new ArgumentException(Environment.GetResourceString("Arg_RankIndices"));
535throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
545throw new ArgumentOutOfRangeException("index1", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
547throw new ArgumentOutOfRangeException("index2", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
557throw new ArgumentOutOfRangeException("index1", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
559throw new ArgumentOutOfRangeException("index2", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
561throw new ArgumentOutOfRangeException("index3", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
573throw new ArgumentException(Environment.GetResourceString("Arg_RankIndices"));
582throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
712throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
732throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
737throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
742throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
760throw new ArgumentException(Environment.GetResourceString("ArgumentException_OtherNotArrayOfCorrectLength"), "other");
917throw new ArgumentOutOfRangeException((index<lb ? "index" : "length"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
919throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
921throw new RankException(Environment.GetResourceString("Rank_MultiDimNotSupported"));
944throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
964throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
1015throw new ArgumentOutOfRangeException((index<0 ? "index" : "length"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1017throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1061throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
1072throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_HugeArrayNotSupported"));
1156throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1160throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1225throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1231throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1237throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1319throw new RankException(Environment.GetResourceString("Rank_MultiDimNotSupported"));
1325throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1327throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1397throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1401throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1465throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1467throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1469throw new ArgumentOutOfRangeException("endIndex", Environment.GetResourceString("ArgumentOutOfRange_EndIndexStartIndex"));
1471throw new RankException(Environment.GetResourceString("Rank_MultiDimNotSupported"));
1542throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1547throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1554throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1559throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1598throw new ArgumentOutOfRangeException((index<0 ? "index" : "length"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1600throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1602throw new RankException(Environment.GetResourceString("Rank_MultiDimNotSupported"));
1739throw new RankException(Environment.GetResourceString("Rank_MultiDimNotSupported"));
1741throw new ArgumentException(Environment.GetResourceString("Arg_LowerBoundsMustMatch"));
1743throw new ArgumentOutOfRangeException((length<0 ? "length" : "index"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1745throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1826throw new ArgumentOutOfRangeException((length<0 ? "length" : "index"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1828throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1859throw new ArgumentOutOfRangeException((length<0 ? "length" : "index"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1861throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2021throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2043throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2061throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2114throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2340throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2359throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2378throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2431throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2599if (_index < 0) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
2600if (_index >= _endIndex) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
2677if (index < startIndex) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
2678if (_complete) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
2762throw new ArgumentException(Environment.GetResourceString("Rank_MultiDimNotSupported"));
2806throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
2824throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2837throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
2842throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
2847throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
2880if (_index < 0) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
2881if (_index >= _endIndex) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
system\collections\arraylist.cs (147)
88throw new ArgumentNullException("c", Environment.GetResourceString("ArgumentNull_Collection"));
113throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
171if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
176if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
241throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
243throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
245throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
321throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
333throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
335throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
395throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
397throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
399throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
430throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
447throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
448if (count <0 || startIndex > _size - count) throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
460if (index < 0 || index > _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_ArrayListInsert"));
480throw new ArgumentNullException("c", Environment.GetResourceString("ArgumentNull_Collection"));
481if (index < 0 || index > _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
527throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
544throw new ArgumentOutOfRangeException((startIndex<0 ? "startIndex" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
552throw new ArgumentOutOfRangeException((startIndex>=_size ? "startIndex" : "count"), Environment.GetResourceString("ArgumentOutOfRange_BiggerThanCollection"));
596if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
613throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
615throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
617throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
637throw new ArgumentOutOfRangeException("count",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
662throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
664throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
666throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
676if (c==null) throw new ArgumentNullException("c", Environment.GetResourceString("ArgumentNull_Collection"));
679if (index < 0 || index > _size - count) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
689throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
691throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
721throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
723throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
725throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
809if (value < Count) throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
859throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
861throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
888throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
913throw new ArgumentOutOfRangeException((index < 0) ? "index" : "arrayIndex", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
915throw new ArgumentOutOfRangeException( "count" , Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
917throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
919throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
923throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
935throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
938throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
953if (startIndex < 0 || startIndex > this.Count) throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
954if (count < 0 || startIndex > this.Count - count) throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
978throw new ArgumentNullException("c", Environment.GetResourceString("ArgumentNull_Collection"));
979if (index < 0 || index > this.Count) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1014if (startIndex < 0 || startIndex >= _list.Count) throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1015if (count < 0 || count > startIndex + 1) throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1044throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1047throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1060throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1063throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1078throw new ArgumentNullException("c", Environment.GetResourceString("ArgumentNull_Collection"));
1083throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1097throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1100throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1106throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1109throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1193throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
1195throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
1626throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1630throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1650throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1654throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1658throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1703throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1707throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1718set { throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection")); }
1722throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1768throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1773throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1791throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1795throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1800throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1811throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1813throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1841throw new NotSupportedException(Environment.GetResourceString("NotSupported_FixedSizeCollection"));
1875throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1884throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1888throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1908throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1912throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1916throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1950throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1959throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1963throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
1975set { throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection")); }
1979throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2025throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2030throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2048throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2052throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2057throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2062throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2067throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2069throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2077throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2082throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2095throw new NotSupportedException(Environment.GetResourceString("NotSupported_ReadOnlyCollection"));
2127if (version != list._version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
2142throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
2144throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
2151if (version != list._version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
2179throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnderlyingArrayListChanged"));
2212throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2214throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2229if (value < Count) throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
2272throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
2274throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2276throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2287throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
2289throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2291throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2293throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2325throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2327throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2336throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2338throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2361throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2363throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2374throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2377throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
2387if (index < 0 || index > _baseSize) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2397if (index < 0 || index > _baseSize) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2431throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2433throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2443if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2454throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2456throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2471throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2473throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2484if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2493throw new ArgumentOutOfRangeException((index<0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2495throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2506if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2511if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2537throw new NotSupportedException(Environment.GetResourceString("NotSupported_RangeCollection"));
2566throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
2598throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
2601throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
2611throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
system\collections\hashtable.cs (38)
183throw new ArgumentException(Environment.GetResourceString("Arg_CannotMixComparisonInfrastructure"));
196throw new ArgumentException(Environment.GetResourceString("Arg_CannotMixComparisonInfrastructure"));
214throw new ArgumentException(Environment.GetResourceString("Arg_CannotMixComparisonInfrastructure"));
227throw new ArgumentException(Environment.GetResourceString("Arg_CannotMixComparisonInfrastructure"));
274throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
284throw new ArgumentException(Environment.GetResourceString("Arg_HTCapacityOverflow"));
378throw new ArgumentNullException("d", Environment.GetResourceString("ArgumentNull_Dictionary"));
388throw new ArgumentNullException("d", Environment.GetResourceString("ArgumentNull_Dictionary"));
504throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
593throw new ArgumentNullException("array", Environment.GetResourceString("ArgumentNull_Array"));
595throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
597throw new ArgumentOutOfRangeException("arrayIndex", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
599throw new ArgumentException(Environment.GetResourceString("Arg_ArrayPlusOffTooSmall"));
646throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
878throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
1042throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HashInsertFailed"));
1076throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
1203throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
1220throw new SerializationException(Environment.GetResourceString("Serialization_InvalidOnDeser"));
1275throw new SerializationException(Environment.GetResourceString("Serialization_MissingKeys"));
1278throw new SerializationException(Environment.GetResourceString("Serialization_MissingValues"));
1281throw new SerializationException(Environment.GetResourceString("Serialization_KeyValueDifferentSizes"));
1285throw new SerializationException(Environment.GetResourceString("Serialization_NullKey"));
1311throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
1313throw new ArgumentOutOfRangeException("arrayIndex", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1316throw new ArgumentException(Environment.GetResourceString("Arg_ArrayPlusOffTooSmall"));
1352throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
1354throw new ArgumentOutOfRangeException("arrayIndex", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1357throw new ArgumentException(Environment.GetResourceString("Arg_ArrayPlusOffTooSmall"));
1391throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState"));
1468throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
1573if (current == false) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
1579if (version != hashtable.version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
1596if (current == false) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumOpCantHappen));
1604if (current == false) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumOpCantHappen));
1617if (current == false) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumOpCantHappen));
1623if (version != hashtable.version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
1720throw new ArgumentException(Environment.GetResourceString("Arg_HTCapacityOverflow"));
system\collections\listdictionaryinternal.cs (23)
37throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
52throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
58throw new ArgumentException(Environment.GetResourceString("Argument_NotSerializable"), "key");
61throw new ArgumentException(Environment.GetResourceString("Argument_NotSerializable"), "value");
139throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
145throw new ArgumentException(Environment.GetResourceString("Argument_NotSerializable"), "key" );
148throw new ArgumentException(Environment.GetResourceString("Argument_NotSerializable"), "value");
186throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
202throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
205throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
208throw new ArgumentException( Environment.GetResourceString("ArgumentOutOfRange_Index"), "index");
227throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
273throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
282throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
291throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
299throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion"));
315throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion"));
337throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
339throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
342throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_Index"), "index");
394throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
402throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion"));
418throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion"));
system\collections\sortedlist.cs (39)
112throw new ArgumentOutOfRangeException("initialCapacity", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
169throw new ArgumentNullException("d", Environment.GetResourceString("ArgumentNull_Dictionary"));
181if (key == null) throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
201throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
330throw new ArgumentNullException("array", Environment.GetResourceString("ArgumentNull_Array"));
332throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
334throw new ArgumentOutOfRangeException("arrayIndex", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
336throw new ArgumentException(Environment.GetResourceString("Arg_ArrayPlusOffTooSmall"));
373throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
399if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
447if (key == null) throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
468throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
501if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
527if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
682throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
764if (version != sortedList.version) throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion"));
765if (current == false) throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
771if (version != sortedList.version) throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion"));
787if (version != sortedList.version) throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion"));
788if (current == false) throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
795if (current == false) throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
808if (version != sortedList.version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
809if (current == false) throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
815if (version != sortedList.version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
853throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
858throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
867throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
875throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
883throw new NotSupportedException(Environment.GetResourceString("NotSupported_KeyCollectionSet"));
893throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
903throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
907throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
941throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
945throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
954throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported"));
962throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
970throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
983throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
987throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_SortedListNestedWrite));
system\console.cs (34)
666throw new ArgumentOutOfRangeException("duration", duration, Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
686throw new IOException(Environment.GetResourceString("IO.IO_NoConsole"));
721throw new ArgumentException(Environment.GetResourceString("Arg_InvalidConsoleColor"));
862throw new ArgumentException(Environment.GetResourceString("Arg_InvalidConsoleColor"), "sourceForeColor");
864throw new ArgumentException(Environment.GetResourceString("Arg_InvalidConsoleColor"), "sourceBackColor");
870throw new ArgumentOutOfRangeException("sourceLeft", sourceLeft, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
872throw new ArgumentOutOfRangeException("sourceTop", sourceTop, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
874throw new ArgumentOutOfRangeException("sourceWidth", sourceWidth, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
876throw new ArgumentOutOfRangeException("sourceHeight", sourceHeight, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
881throw new ArgumentOutOfRangeException("targetLeft", targetLeft, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
883throw new ArgumentOutOfRangeException("targetTop", targetTop, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
973throw new IOException(Environment.GetResourceString("IO.IO_NoConsole"));
1045throw new ArgumentOutOfRangeException("width", width, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferLessThanWindowSize"));
1047throw new ArgumentOutOfRangeException("height", height, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferLessThanWindowSize"));
1094throw new ArgumentOutOfRangeException("width", width, Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
1096throw new ArgumentOutOfRangeException("height", height, Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
1113throw new ArgumentOutOfRangeException("width", Environment.GetResourceString("ArgumentOutOfRange_ConsoleWindowBufferSize"));
1119throw new ArgumentOutOfRangeException("height", Environment.GetResourceString("ArgumentOutOfRange_ConsoleWindowBufferSize"));
1223throw new ArgumentOutOfRangeException("left", left, Environment.GetResourceString("ArgumentOutOfRange_ConsoleWindowPos"));
1226throw new ArgumentOutOfRangeException("top", top, Environment.GetResourceString("ArgumentOutOfRange_ConsoleWindowPos"));
1278throw new ArgumentOutOfRangeException("left", left, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
1280throw new ArgumentOutOfRangeException("top", top, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
1295throw new ArgumentOutOfRangeException("left", left, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
1297throw new ArgumentOutOfRangeException("top", top, Environment.GetResourceString("ArgumentOutOfRange_ConsoleBufferBoundaries"));
1322throw new ArgumentOutOfRangeException("value", value, Environment.GetResourceString("ArgumentOutOfRange_CursorSize"));
1394throw new InvalidOperationException(Environment.GetResourceString("ArgumentOutOfRange_ConsoleTitleTooLong"));
1408throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_ConsoleTitleTooLong"));
1502throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ConsoleReadKeyOnFile"));
1577throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ConsoleKeyAvailableOnFile"));
1632throw new IOException(Environment.GetResourceString("IO.IO_NoConsole"));
1647throw new IOException(Environment.GetResourceString("IO.IO_NoConsole"));
1851throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1872throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1893throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
system\convert.cs (91)
213throw new InvalidCastException(Environment.GetResourceString("InvalidCast_IConvertible"));
253throw new InvalidCastException(Environment.GetResourceString("InvalidCast_DBNull"));
255throw new InvalidCastException(Environment.GetResourceString("InvalidCast_Empty"));
257throw new ArgumentException(Environment.GetResourceString("Arg_UnknownTypeCode"));
313throw new InvalidCastException(Environment.GetResourceString("InvalidCast_DBNull"));
315throw new InvalidCastException(Environment.GetResourceString("InvalidCast_Empty"));
333throw new InvalidCastException(Environment.GetResourceString("InvalidCast_CannotCastNullToValueType"));
343throw new InvalidCastException(Environment.GetResourceString("InvalidCast_IConvertible"));
497if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
507if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
518if (value < 0 || value > Char.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
525if (value > Char.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
531if (value < 0 || value > Char.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
538if (value > Char.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
557throw new FormatException(Environment.GetResourceString(ResId.Format_NeedSingleChar));
616if (value > SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
623if (value > SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
630if (value < SByte.MinValue || value > SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
637if (value > SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
644if (value < SByte.MinValue || value > SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
651if (value > SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
658if (value < SByte.MinValue || value > SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
665if (value > (ulong)SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
725if (value > Byte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
732if (value < Byte.MinValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
738if (value < Byte.MinValue || value > Byte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
745if (value > Byte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
751if (value < Byte.MinValue || value > Byte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
758if (value > Byte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
764if (value < Byte.MinValue || value > Byte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
771if (value > Byte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
824if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
840if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
846if (value < Int16.MinValue || value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
853if (value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
863if (value < Int16.MinValue || value > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
870if (value > (ulong)Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
933if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"));
945if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"));
952if (value < 0 || value > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"));
964if (value > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"));
972if (value < 0 || value > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"));
979if (value > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"));
1061if (value > Int32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int32"));
1071if (value < Int32.MinValue || value > Int32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int32"));
1078if (value > Int32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int32"));
1104throw new OverflowException(Environment.GetResourceString("Overflow_Int32"));
1158if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
1170if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
1182if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
1194if (value < 0 || value > UInt32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
1201if (value > UInt32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
1219throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
1298if (value > Int64.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int64"));
1365if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt64"));
1377if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt64"));
1389if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt64"));
1401if (value < 0) throw new OverflowException(Environment.GetResourceString("Overflow_UInt64"));
1979throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
1984throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
1995throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2003throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
2013throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2021throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
2032throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2037throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"));
2047throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2060throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2072throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2085throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2095throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2105throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2115throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2125throw new ArgumentException(Environment.GetResourceString("Arg_InvalidBase"));
2161throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2163throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
2174throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_OffsetLength"));
2210throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2212throw new ArgumentOutOfRangeException("offsetIn", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
2214throw new ArgumentOutOfRangeException("offsetOut", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
2233throw new ArgumentOutOfRangeException("offsetIn", Environment.GetResourceString("ArgumentOutOfRange_OffsetLength"));
2246throw new ArgumentOutOfRangeException("offsetOut", Environment.GetResourceString("ArgumentOutOfRange_OffsetOut"));
2388throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2391throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
2394throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_OffsetLength"));
2550throw new FormatException(Environment.GetResourceString("Format_BadBase64Char"));
2590throw new FormatException(Environment.GetResourceString("Format_BadBase64CharArrayLength"));
2620throw new FormatException(Environment.GetResourceString("Format_BadBase64CharArrayLength"));
2631throw new FormatException(Environment.GetResourceString("Format_BadBase64Char"));
2640throw new FormatException(Environment.GetResourceString("Format_BadBase64CharArrayLength"));
2697throw new FormatException(Environment.GetResourceString("Format_BadBase64Char"));
system\datetime.cs (40)
148throw new ArgumentOutOfRangeException("ticks", Environment.GetResourceString("ArgumentOutOfRange_DateTimeBadTicks"));
159throw new ArgumentOutOfRangeException("ticks", Environment.GetResourceString("ArgumentOutOfRange_DateTimeBadTicks"));
162throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDateTimeKind"), "kind");
170throw new ArgumentOutOfRangeException("ticks", Environment.GetResourceString("ArgumentOutOfRange_DateTimeBadTicks"));
209throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDateTimeKind"), "kind");
248throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
274throw new ArgumentException(Environment.GetResourceString("Arg_DateTimeRange"));
283throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDateTimeKind"), "kind");
299throw new ArgumentException(Environment.GetResourceString("Arg_DateTimeRange"));
324throw new ArgumentException(Environment.GetResourceString("Arg_DateTimeRange"));
332throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
344throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDateTimeKind"), "kind");
358throw new ArgumentException(Environment.GetResourceString("Arg_DateTimeRange"));
367throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
407throw new SerializationException(Environment.GetResourceString("Serialization_MissingDateTimeData"));
411throw new SerializationException(Environment.GetResourceString("Serialization_DateTimeTicksOutOfRange"));
441throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_AddValue"));
503if (months < -120000 || months > 120000) throw new ArgumentOutOfRangeException("months", Environment.GetResourceString("ArgumentOutOfRange_DateTimeBadMonths"));
519throw new ArgumentOutOfRangeException("months", Environment.GetResourceString("ArgumentOutOfRange_DateArithmetic"));
543throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_DateArithmetic"));
557if (value < -10000 || value > 10000) throw new ArgumentOutOfRangeException("years", Environment.GetResourceString("ArgumentOutOfRange_DateTimeBadYears"));
582throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDateTime"));
611throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
624throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
631if (month < 1 || month > 12) throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month"));
643throw new ArgumentException(Environment.GetResourceString("Arg_OleAutDateInvalid"));
656if (millis < 0 || millis >= MaxMillis) throw new ArgumentException(Environment.GetResourceString("Arg_OleAutDateScale"));
735throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeBadBinaryData"), "dateData");
749throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeBadBinaryData"), "dateData");
763throw new ArgumentOutOfRangeException("fileTime", Environment.GetResourceString("ArgumentOutOfRange_FileTimeInvalid"));
1185throw new ArgumentOutOfRangeException("fileTime", Environment.GetResourceString("ArgumentOutOfRange_DateTimeBadTicks"));
1198throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_FileTimeInvalid"));
1283throw new ArgumentOutOfRangeException("year", Environment.GetResourceString("ArgumentOutOfRange_Year"));
1340throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_DateArithmetic"));
1352throw new OverflowException(Environment.GetResourceString("Arg_OleAutDateInvalid"));
1385throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_FileTimeInvalid"));
1408throw new ArgumentException(Environment.GetResourceString("Arg_ArgumentOutOfRangeException"));
1415throw new ArgumentException(Environment.GetResourceString("Arg_ArgumentOutOfRangeException"));
1489throw new ArgumentOutOfRangeException("t", Environment.GetResourceString("ArgumentOutOfRange_DateArithmetic"));
1498throw new ArgumentOutOfRangeException("t", Environment.GetResourceString("ArgumentOutOfRange_DateArithmetic"));
system\datetimeoffset.cs (15)
88throw new ArgumentException(Environment.GetResourceString("Argument_OffsetLocalMismatch"), "offset");
93throw new ArgumentException(Environment.GetResourceString("Argument_OffsetUtcMismatch"), "offset");
116throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
137throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
159throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
458throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDateTimeOffset"));
525string.Format(Environment.GetResourceString("ArgumentOutOfRange_Range"), MinSeconds, MaxSeconds));
538string.Format(Environment.GetResourceString("ArgumentOutOfRange_Range"), MinMilliseconds, MaxMilliseconds));
554throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
786throw new ArgumentException(Environment.GetResourceString("Argument_OffsetPrecision"), "offset");
789throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("Argument_OffsetOutOfRange"));
803throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("Argument_UTCOutOfRange"));
812throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDateTimeStyles"), parameterName);
815throw new ArgumentException(Environment.GetResourceString("Argument_ConflictingDateTimeStyles"), parameterName);
818throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeOffsetInvalidDateTimeStyles"), parameterName);
system\delegate.cs (27)
65throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTargMeth"));
78throw new ArgumentException(Environment.GetResourceString("Arg_UnboundGenParam"), "target");
86throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "target");
306throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTypeMis"));
327throw new MulticastNotSupportedException(Environment.GetResourceString("Multicast_Combine"));
384throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "type");
386throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"),"type");
412throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTargMeth"));
440throw new ArgumentException(Environment.GetResourceString("Arg_UnboundGenParam"), "target");
448throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "type");
450throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "target");
452throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"),"type");
474throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTargMeth"));
495throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "type");
499throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"), "method");
502throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"), "type");
521throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTargMeth"));
546throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "type");
550throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"), "method");
553throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"), "type");
569throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTargMeth"));
618throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "type");
621throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"),"type");
635throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTargMeth"));
653throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"), "method");
656throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"),"type");
671throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTargMeth"));
system\diagnostics\eventing\eventsource.cs (22)
419throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeName"), "eventSourceType");
505throw new ArgumentException(Environment.GetResourceString("EventSource_InvalidCommand"), "command");
1480throw new ArgumentException(Environment.GetResourceString("TraitEven"), "traits");
1483throw new ArgumentException(Environment.GetResourceString("EventSource_NeedGuid"));
1486throw new ArgumentException(Environment.GetResourceString("EventSource_NeedName"));
1913throw new ArgumentException(Environment.GetResourceString("EventSource_NoRelatedActivityId"));
2114System.Diagnostics.Debugger.Log(0, null, Environment.GetResourceString("EventSource_VarArgsParameterMismatch") + "\r\n");
2441ReportOutOfBandMessage(errorPrefix + ": " + Environment.GetResourceString("EventSource_EventTooBig"), true);
2442if (ThrowOnEventWriteErrors) throw new EventSourceException(Environment.GetResourceString("EventSource_EventTooBig"), innerEx);
2445ReportOutOfBandMessage(errorPrefix + ": " + Environment.GetResourceString("EventSource_NoFreeBuffers"), true);
2446if (ThrowOnEventWriteErrors) throw new EventSourceException(Environment.GetResourceString("EventSource_NoFreeBuffers"), innerEx);
2449ReportOutOfBandMessage(errorPrefix + ": " + Environment.GetResourceString("EventSource_NullInput"), true);
2450if (ThrowOnEventWriteErrors) throw new EventSourceException(Environment.GetResourceString("EventSource_NullInput"), innerEx);
2453ReportOutOfBandMessage(errorPrefix + ": " + Environment.GetResourceString("EventSource_TooManyArgs"), true);
2454if (ThrowOnEventWriteErrors) throw new EventSourceException(Environment.GetResourceString("EventSource_TooManyArgs"), innerEx);
2624throw new ArgumentException(Environment.GetResourceString("EventSource_ListenerNotFound"));
3319manifest.ManifestError(Environment.GetResourceString("EventSource_TypeMustDeriveFromEventSource"));
3321manifest.ManifestError(Environment.GetResourceString("EventSource_TypeMustBeSealedOrAbstract"));
3478throw new ArgumentException(Environment.GetResourceString("EventSource_StopsFollowStarts"));
3960throw new ArgumentException(Environment.GetResourceString("EventSource_InvalidEventFormat"), "settings");
4591throw new InvalidOperationException(Environment.GetResourceString("EventSource_ListenerCreatedInsideCallback"));
6284ManifestError(Environment.GetResourceString("EventSource_MaxChannelExceeded"));
system\enum.cs (35)
130throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
237throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
315return new ArgumentException(Environment.GetResourceString(m_failureMessageID));
328return new ArgumentException(Environment.GetResourceString("Arg_EnumValueNotFound"));
375throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
378throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
552throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnumBaseTypeOrEnum"), "value");
590throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnumBaseTypeOrEnum"), "value");
612throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
623throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
647throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification"));
669throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification"));
845throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
867throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification"));
948throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
1051throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1055throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1066throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1070throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1081throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1085throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1096throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1100throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1112throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1116throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1128throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1132throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1143throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1147throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1159throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1163throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1173throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1177throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
1187throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1191throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "enumType");
system\globalization\compareinfo.cs (30)
149throw new ArgumentException(Environment.GetResourceString("Argument_OnlyMscorlib"));
177throw new ArgumentException(Environment.GetResourceString("Argument_OnlyMscorlib"));
420throw new ArgumentException(Environment.GetResourceString("Argument_CompareOptionOrdinal"), "options");
427throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
492throw new ArgumentOutOfRangeException((length1 < 0) ? "length1" : "length2", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
496throw new ArgumentOutOfRangeException((offset1 < 0) ? "offset1" : "offset2", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
500throw new ArgumentOutOfRangeException("string1", Environment.GetResourceString("ArgumentOutOfRange_OffsetLength"));
504throw new ArgumentOutOfRangeException("string2", Environment.GetResourceString("ArgumentOutOfRange_OffsetLength"));
510throw new ArgumentException(Environment.GetResourceString("Argument_CompareOptionOrdinal"),
516throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
573Environment.GetResourceString("ArgumentNull_String"));
594throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
628Environment.GetResourceString("ArgumentNull_String"));
647throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
779throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
782throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
794throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
816throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
833throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
837throw new ArgumentOutOfRangeException("count",Environment.GetResourceString("ArgumentOutOfRange_Count"));
847throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
969throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
977throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
989throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1021throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
1029throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1045throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
1096throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
1117throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "source");
1251throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "options");
system\globalization\cultureinfo.cs (17)
332Environment.GetResourceString("ArgumentNull_String"));
354throw new CultureNotFoundException("name", name, Environment.GetResourceString("Argument_CultureNotSupported"));
389Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
408"culture", culture, Environment.GetResourceString("Argument_CultureNotSupported"));
432Environment.GetResourceString("InvalidOperation_SubclassedObject"),
466"m_name", m_name, Environment.GetResourceString("Argument_CultureNotSupported"));
583Environment.GetResourceString("ArgumentNull_String"));
590"cultureName", cultureName, Environment.GetResourceString("Argument_CultureNotSupported"));
1424Environment.GetResourceString("ArgumentNull_Obj"));
1460Environment.GetResourceString("ArgumentNull_Obj"));
1715throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1894Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
1902"culture", culture, Environment.GetResourceString("Argument_CultureNotSupported"));
1924"name", name, Environment.GetResourceString("Argument_CultureNotSupported"));
1953Environment.GetResourceString("Argument_OneOfCulturesNotSupported"),
1972String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_CultureIetfNotSupported"), name)
1983String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_CultureIetfNotSupported"), name)
system\globalization\datetimeformatinfo.cs (56)
425"m_name", m_name, Environment.GetResourceString("Argument_CultureNotSupported"));
593throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
597Environment.GetResourceString("ArgumentNull_String"));
616throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
619Environment.GetResourceString("ArgumentNull_Obj"));
708throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("Argument_InvalidCalendar"));
733Environment.GetResourceString("ArgumentNull_String"));
809throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
837throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
873throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
876Environment.GetResourceString("ArgumentNull_String"));
903throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
931throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
957throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
960Environment.GetResourceString("ArgumentNull_String"));
989throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
992Environment.GetResourceString("ArgumentNull_String"));
1028throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1031Environment.GetResourceString("ArgumentNull_String"));
1065throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1068Environment.GetResourceString("ArgumentNull_String"));
1096throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1099Environment.GetResourceString("ArgumentNull_String"));
1140throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1143Environment.GetResourceString("ArgumentNull_String"));
1180throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1183Environment.GetResourceString("ArgumentNull_String"));
1318throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1321Environment.GetResourceString("ArgumentNull_String"));
1360throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1363Environment.GetResourceString("ArgumentNull_String"));
1384Environment.GetResourceString("ArgumentNull_ArrayValue"));
1399throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1402Environment.GetResourceString("ArgumentNull_Array"));
1427throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1430Environment.GetResourceString("ArgumentNull_Array"));
1452throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1455Environment.GetResourceString("ArgumentNull_Array"));
1477throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1480Environment.GetResourceString("ArgumentNull_Array"));
1503throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1506Environment.GetResourceString("ArgumentNull_Array"));
1753throw new ArgumentException(Environment.GetResourceString("Format_BadFormatSpecifier"), "format");
1991Environment.GetResourceString("ArgumentNull_Obj"));
2049throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
2052Environment.GetResourceString("ArgumentNull_Array"));
2057throw new ArgumentException(Environment.GetResourceString("Arg_ArrayZeroError"), "patterns");
2065throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_ArrayValue"));
2099throw new ArgumentException(Environment.GetResourceString("Format_BadFormatSpecifier"), "format");
2119throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
2123Environment.GetResourceString("ArgumentNull_Array"));
2147throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
2151Environment.GetResourceString("ArgumentNull_Array"));
2229throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDateTimeStyles"), parameterName);
2232throw new ArgumentException(Environment.GetResourceString("Argument_ConflictingDateTimeStyles"), parameterName);
2237throw new ArgumentException(Environment.GetResourceString("Argument_ConflictingDateTimeRoundtripStyles"), parameterName);
system\globalization\gregoriancalendar.cs (21)
73Environment.GetResourceString(
163throw new ArgumentOutOfRangeException("m_type", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
258throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
292Environment.GetResourceString("ArgumentOutOfRange_Range"),
380throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month"));
385throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
401Environment.GetResourceString("ArgumentOutOfRange_Range"),
405throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
445Environment.GetResourceString("ArgumentOutOfRange_Range"),
449throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
475throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
505throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
512Environment.GetResourceString("ArgumentOutOfRange_Range"), 1, MaxYear));
525throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
533Environment.GetResourceString("ArgumentOutOfRange_Range"), 1, MaxYear));
559Environment.GetResourceString("ArgumentOutOfRange_Range"), 1, MaxYear));
561throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
572throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
602Environment.GetResourceString("ArgumentOutOfRange_Range"),
615Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
624Environment.GetResourceString("ArgumentOutOfRange_Range"), 1, MaxYear));
system\globalization\gregoriancalendarhelper.cs (16)
158throw new ArgumentOutOfRangeException("year", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
205throw new ArgumentOutOfRangeException("year", String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("ArgumentOutOfRange_Range"),
215throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
321throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
343Environment.GetResourceString("ArgumentOutOfRange_Range"),
349throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
359Environment.GetResourceString("ArgumentOutOfRange_CalendarRange"),
390Environment.GetResourceString("ArgumentOutOfRange_Range"),
473throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month"));
501throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Era"));
544throw new ArgumentException(Environment.GetResourceString("Argument_NoEra"));
558throw new ArgumentException(Environment.GetResourceString("Argument_NoEra"));
572Environment.GetResourceString("ArgumentOutOfRange_Range"),
609Environment.GetResourceString("ArgumentOutOfRange_Range"),
644Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
658Environment.GetResourceString("ArgumentOutOfRange_Range"), m_minYear, m_maxYear));
system\globalization\hijricalendar.cs (14)
231Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper"),
350Environment.GetResourceString("ArgumentOutOfRange_CalendarRange"),
358throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
369Environment.GetResourceString("ArgumentOutOfRange_Range"),
383Environment.GetResourceString("ArgumentOutOfRange_Range"),
390throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month"));
479throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DateTimeParsing"));
506Environment.GetResourceString("ArgumentOutOfRange_Range"),
643Environment.GetResourceString("ArgumentOutOfRange_Day"),
691Environment.GetResourceString("ArgumentOutOfRange_Day"),
701throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
724Environment.GetResourceString("ArgumentOutOfRange_Range"),
737Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
750Environment.GetResourceString("ArgumentOutOfRange_Range"),
system\globalization\numberformatinfo.cs (36)
165Environment.GetResourceString("ArgumentNull_String"));
169throw new ArgumentException(Environment.GetResourceString("Argument_EmptyDecString"));
178Environment.GetResourceString("ArgumentNull_String"));
186Environment.GetResourceString("ArgumentNull_Array"));
191throw new ArgumentException(Environment.GetResourceString("Argument_InvalidNativeDigitCount"), propertyName);
200Environment.GetResourceString("ArgumentNull_ArrayValue"));
207throw new ArgumentException(Environment.GetResourceString("Argument_InvalidNativeDigitValue"), propertyName);
210throw new ArgumentException(Environment.GetResourceString("Argument_InvalidNativeDigitValue"), propertyName);
218throw new ArgumentException(Environment.GetResourceString("Argument_InvalidNativeDigitValue"), propertyName);
234throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDigitSubstitution"), propertyName);
261throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
329Environment.GetResourceString("ArgumentOutOfRange_Range"),
370throw new ArgumentException(Environment.GetResourceString("Argument_InvalidGroupSize"), propName);
374throw new ArgumentException(Environment.GetResourceString("Argument_InvalidGroupSize"), propName);
387Environment.GetResourceString("ArgumentNull_Obj"));
408Environment.GetResourceString("ArgumentNull_Obj"));
427Environment.GetResourceString("ArgumentNull_Obj"));
454Environment.GetResourceString("ArgumentNull_String"));
486Environment.GetResourceString("ArgumentNull_String"));
504Environment.GetResourceString("ArgumentOutOfRange_Range"),
526Environment.GetResourceString("ArgumentOutOfRange_Range"),
548Environment.GetResourceString("ArgumentOutOfRange_Range"),
570Environment.GetResourceString("ArgumentOutOfRange_Range"),
588Environment.GetResourceString("ArgumentNull_String"));
602Environment.GetResourceString("ArgumentNull_String"));
619Environment.GetResourceString("ArgumentOutOfRange_Range"),
658Environment.GetResourceString("ArgumentOutOfRange_Range"),
676Environment.GetResourceString("ArgumentNull_String"));
690Environment.GetResourceString("ArgumentNull_String"));
707Environment.GetResourceString("ArgumentOutOfRange_Range"),
745Environment.GetResourceString("ArgumentNull_String"));
759Environment.GetResourceString("ArgumentNull_String"));
821throw new ArgumentException(Environment.GetResourceString("Argument_InvalidNumberStyles"), "style");
826throw new ArgumentException(Environment.GetResourceString("Arg_InvalidHexStyle"));
834throw new ArgumentException(Environment.GetResourceString("Argument_InvalidNumberStyles"), "style");
838throw new ArgumentException(Environment.GetResourceString("Arg_HexStyleNotSupported"));
system\globalization\Persiancalendar.cs (14)
134throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
143Environment.GetResourceString("ArgumentOutOfRange_CalendarRange"),
151throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
162Environment.GetResourceString("ArgumentOutOfRange_Range"),
176Environment.GetResourceString("ArgumentOutOfRange_Range"),
183throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month"));
269throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DateTimeParsing"));
297Environment.GetResourceString("ArgumentOutOfRange_Range"),
457Environment.GetResourceString("ArgumentOutOfRange_Day"),
513Environment.GetResourceString("ArgumentOutOfRange_Day"),
523throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
545Environment.GetResourceString("ArgumentOutOfRange_Range"),
558Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
571Environment.GetResourceString("ArgumentOutOfRange_Range"),
system\globalization\umalquracalendar.cs (12)
386Environment.GetResourceString("ArgumentOutOfRange_CalendarRange"),
394throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
405Environment.GetResourceString("ArgumentOutOfRange_Range"),
414throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month"));
505throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DateTimeParsing"));
533Environment.GetResourceString("ArgumentOutOfRange_Range"),
717Environment.GetResourceString("ArgumentOutOfRange_Day"),
779Environment.GetResourceString("ArgumentOutOfRange_Day"),
789throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
811Environment.GetResourceString("ArgumentOutOfRange_Range"),
827Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
840Environment.GetResourceString("ArgumentOutOfRange_Range"),
system\io\binaryreader.cs (14)
59throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotReadable"));
240throw new IOException(Environment.GetResourceString("Arg_DecBitCtor"), e);
302throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
305throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
308throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
311throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
479throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
506throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
508throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
510throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
512throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
522if (count < 0) throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
555throw new ArgumentOutOfRangeException("numBytes", Environment.GetResourceString("ArgumentOutOfRange_BinaryReaderFillBuffer"));
592throw new FormatException(Environment.GetResourceString("Format_Bad7BitInt32"));
system\io\bufferedstream.cs (27)
252throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
432throw new NotSupportedException(Environment.GetResourceString("NotSupported_CannotWriteToBufferedStreamIfReadBufferCannotBeFlushed"));
503throw new ArgumentNullException("array", Environment.GetResourceString("ArgumentNull_Buffer"));
505throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
507throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
509throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
569throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
571throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
573throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
575throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
668throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
670throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
672throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
674throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
858throw new ArgumentNullException("array", Environment.GetResourceString("ArgumentNull_Buffer"));
860throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
862throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
864throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
998throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
1000throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1002throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1004throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1080throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
1082throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1084throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1086throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1326throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NegFileSize"));
system\io\file.cs (42)
87throw new ArgumentNullException("sourceFileName", Environment.GetResourceString("ArgumentNull_FileName"));
89throw new ArgumentNullException("destFileName", Environment.GetResourceString("ArgumentNull_FileName"));
91throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "sourceFileName");
93throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destFileName");
112throw new ArgumentNullException("sourceFileName", Environment.GetResourceString("ArgumentNull_FileName"));
114throw new ArgumentNullException("destFileName", Environment.GetResourceString("ArgumentNull_FileName"));
116throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "sourceFileName");
118throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destFileName");
129throw new ArgumentNullException("sourceFileName", Environment.GetResourceString("ArgumentNull_FileName"));
131throw new ArgumentNullException("destFileName", Environment.GetResourceString("ArgumentNull_FileName"));
133throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "sourceFileName");
135throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destFileName");
338throw new NotSupportedException(Environment.GetResourceString("NotSupported_EncryptionNeedsNTFS"));
369throw new NotSupportedException(Environment.GetResourceString("NotSupported_EncryptionNeedsNTFS"));
713throw new ArgumentException(Environment.GetResourceString("Arg_InvalidFileAttrs"));
788throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
804throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
818throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
845throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
861throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
875throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
923throw new IOException(Environment.GetResourceString("IO.IO_FileTooLong2GB"));
943throw new ArgumentNullException("path", Environment.GetResourceString("ArgumentNull_Path"));
945throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
959throw new ArgumentNullException("path", Environment.GetResourceString("ArgumentNull_Path"));
961throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
992throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1007throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1038throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "path");
1053throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "path");
1068throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1085throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1100throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1117throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1146throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1161throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1188throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1205throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
1238throw new ArgumentNullException("sourceFileName", Environment.GetResourceString("ArgumentNull_FileName"));
1240throw new ArgumentNullException("destFileName", Environment.GetResourceString("ArgumentNull_FileName"));
1242throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "sourceFileName");
1244throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destFileName");
system\io\filestream.cs (49)
623throw new ArgumentNullException("path", Environment.GetResourceString("ArgumentNull_Path"));
625throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
656throw new ArgumentOutOfRangeException(badArg, Environment.GetResourceString("ArgumentOutOfRange_Enum"));
660throw new ArgumentOutOfRangeException("options", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
663throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
729throw new ArgumentException(Environment.GetResourceString("Arg_DevicesNotSupported"));
740throw new ArgumentException(Environment.GetResourceString("Argument_InvalidAppendMode"));
896throw new NotSupportedException(Environment.GetResourceString("NotSupported_FileStreamOnNonFiles"));
924throw new IOException(Environment.GetResourceString("IO.IO_BindHandleFailed"));
1012throw new ArgumentException(Environment.GetResourceString("Arg_InvalidHandle"), "handle");
1020throw new ArgumentOutOfRangeException("access", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
1022throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
1055throw new ArgumentException(Environment.GetResourceString("Arg_HandleNotAsync"));
1058throw new IOException(Environment.GetResourceString("IO.IO_BindHandleFailed"));
1149throw new ArgumentException(Environment.GetResourceString("Arg_HandleNotSync"));
1202return Environment.GetResourceString("IO_UnknownFileName");
1239if (value < 0) throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1446throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1464throw new IOException(Environment.GetResourceString("IO.IO_SetLengthAppendTruncate"));
1484throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_FileLengthTooBig"));
1499throw new ArgumentNullException("array", Environment.GetResourceString("ArgumentNull_Buffer"));
1501throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1503throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1505throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1597throw new ArgumentException(Environment.GetResourceString("Arg_HandleNotSync"));
1611throw new ArgumentException(Environment.GetResourceString("Argument_InvalidSeekOrigin"));
1644throw new IOException(Environment.GetResourceString("IO.IO_SeekAppendOverwrite"));
1745throw new IOException(Environment.GetResourceString("IO.IO_FileStreamHandlePosition"));
1753throw new ArgumentNullException("array", Environment.GetResourceString("ArgumentNull_Buffer"));
1755throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1757throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1759throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1858throw new IOException(Environment.GetResourceString("IO.IO_FileTooLongOrHandleNotSync"));
1875throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1877throw new ArgumentOutOfRangeException("numBytes", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1879throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2187throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2189throw new ArgumentOutOfRangeException("numBytes", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2191throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2435throw new ArgumentOutOfRangeException((position < 0 ? "position" : "length"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2451throw new ArgumentOutOfRangeException((position < 0 ? "position" : "length"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2495throw new IndexOutOfRangeException(Environment.GetResourceString("IndexOutOfRange_IORaceCondition"));
2552throw new IndexOutOfRangeException(Environment.GetResourceString("IndexOutOfRange_IORaceCondition"));
2608throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2610throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2612throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
2660throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2662throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
2664throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\io\isolatedstorage\isolatedstoragefile.cs (86)
125throw new NotSupportedException(Environment.GetResourceString("IsolatedStorage_NotValidOnDesktop"));
176throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
179throw new InvalidOperationException(Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
272Environment.GetResourceString(
276throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
280Environment.GetResourceString(
302Environment.GetResourceString(
307throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
311Environment.GetResourceString(
337throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
341Environment.GetResourceString(
412throw new ArgumentException(Environment.GetResourceString("IsolatedStorage_OldQuotaLarger"));
417throw new NotSupportedException(Environment.GetResourceString("IsolatedStorage_OnlyIncreaseUserApplicationStore"));
446throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
450Environment.GetResourceString(
483throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
487Environment.GetResourceString(
522Environment.GetResourceString(
549throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
553Environment.GetResourceString(
593throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
597Environment.GetResourceString(
650throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_CreateDirectory"));
660throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_CreateDirectory"));
678throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_CreateDirectory"));
695throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "path");
701throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
705Environment.GetResourceString(
736throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "path");
742throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
746Environment.GetResourceString(
777throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "path");
783throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
787Environment.GetResourceString(
819throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "sourceFileName");
823throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "destinationFileName");
841throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "sourceFileName");
845throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "destinationFileName");
851throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
855Environment.GetResourceString(
871throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
894throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
908throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
943throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
973throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "sourceFileName");
977throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "destinationFileName");
983throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
987Environment.GetResourceString(
1003throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
1017throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
1039throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "sourceDirectoryName");
1043throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"), "destinationDirectoryName");
1049throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
1053Environment.GetResourceString(
1069throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
1083throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
1150Environment.GetResourceString(
1158throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_DeleteDirectory"));
1201throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
1205Environment.GetResourceString(
1234throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
1238Environment.GetResourceString(
1391throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_DeleteDirectories"));
1422throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_DeleteDirectories"));
1570throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_DeleteDirectories"));
1631Environment.GetResourceString(
1683throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
1722throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
1748throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
1776throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
2000throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
2018throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
2059throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
2117throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
2152throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Init"));
2257throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
2261Environment.GetResourceString(
2283throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen"));
2287Environment.GetResourceString(
2360Environment.GetResourceString(
2411throw new ArgumentNullException("path", Environment.GetResourceString("ArgumentNull_Path"));
2454Environment.GetResourceString(
2726Environment.GetResourceString(
2732Environment.GetResourceString(
2909Environment.GetResourceString(
2915Environment.GetResourceString(
system\io\memorystream.cs (41)
72throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_NegativeCapacity"));
90if (buffer == null) throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
110throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
112throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
114throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
116throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
170throw new IOException(Environment.GetResourceString("IO.IO_StreamTooLong"));
216throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_MemStreamBuffer"));
291if (value < Length) throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
327throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
334throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_StreamLength"));
341throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
343throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
345throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
347throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
378throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
380throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
382throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
384throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
430throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
433throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_StreamClosed"));
436throw new ObjectDisposedException("destination", Environment.GetResourceString("ObjectDisposed_StreamClosed"));
439throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream"));
442throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnwritableStream"));
486throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_StreamLength"));
491throw new IOException(Environment.GetResourceString("IO.IO_SeekBeforeBegin"));
498throw new IOException(Environment.GetResourceString("IO.IO_SeekBeforeBegin"));
505throw new IOException(Environment.GetResourceString("IO.IO_SeekBeforeBegin"));
510throw new ArgumentException(Environment.GetResourceString("Argument_InvalidSeekOrigin"));
529throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_StreamLength"));
538throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_StreamLength"));
559throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
561throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
563throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
565throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
574throw new IOException(Environment.GetResourceString("IO.IO_StreamTooLong"));
605throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
607throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
609throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
611throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
657throw new ArgumentNullException("stream", Environment.GetResourceString("ArgumentNull_Stream"));
system\io\streamreader.cs (17)
121throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_AsyncIOInProgress"));
168throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotReadable"));
170throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
235throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
237throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
387throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
389throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
391throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
448throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
450throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
452throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
907throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
909throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
911throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
1095throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
1097throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1099throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\io\streamwriter.cs (18)
91throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_AsyncIOInProgress"));
146throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotWritable"));
147if (bufferSize <= 0) throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
188throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath"));
189if (bufferSize <= 0) throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum"));
395throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
397throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
399throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
401throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
601throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
603throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
605throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
607throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
758throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
760throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
762throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
764throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
888callStack = Environment.GetResourceString("IO_StreamWriterBufferedDataLostCaptureAllocatedFromCallstackNotEnabled");
system\io\textreader.cs (16)
120throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
122throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
124throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
126throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
222throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
224throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
226throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
248throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
250throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
252throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
396throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
398throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
400throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
412throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
414throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
416throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\io\unmanagedmemoryaccessor.cs (36)
70throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
73throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
76throw new ArgumentException(Environment.GetResourceString("Argument_OffsetAndCapacityOutOfBounds"));
84throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CalledTwice"));
93throw new ArgumentException(Environment.GetResourceString("Argument_UnmanagedMemAccessorWrapAround"));
548throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
553throw new ObjectDisposedException("UnmanagedMemoryAccessor", Environment.GetResourceString("ObjectDisposed_ViewAccessorClosed"));
556throw new NotSupportedException(Environment.GetResourceString("NotSupported_Reading"));
562throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_PositionLessThanCapacityRequired"));
584throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
587throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
590throw new ArgumentException(Environment.GetResourceString("Argument_OffsetAndLengthOutOfBounds"));
595throw new ObjectDisposedException("UnmanagedMemoryAccessor", Environment.GetResourceString("ObjectDisposed_ViewAccessorClosed"));
598throw new NotSupportedException(Environment.GetResourceString("NotSupported_Reading"));
602throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
609throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_PositionLessThanCapacityRequired"));
1032throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1037throw new ObjectDisposedException("UnmanagedMemoryAccessor", Environment.GetResourceString("ObjectDisposed_ViewAccessorClosed"));
1040throw new NotSupportedException(Environment.GetResourceString("NotSupported_Writing"));
1046throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_PositionLessThanCapacityRequired"));
1065throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1068throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1071throw new ArgumentException(Environment.GetResourceString("Argument_OffsetAndLengthOutOfBounds"));
1074throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1077throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_PositionLessThanCapacityRequired"));
1082throw new ObjectDisposedException("UnmanagedMemoryAccessor", Environment.GetResourceString("ObjectDisposed_ViewAccessorClosed"));
1085throw new NotSupportedException(Environment.GetResourceString("NotSupported_Writing"));
1137throw new ObjectDisposedException("UnmanagedMemoryAccessor", Environment.GetResourceString("ObjectDisposed_ViewAccessorClosed"));
1140throw new NotSupportedException(Environment.GetResourceString("NotSupported_Reading"));
1143throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1148throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_PositionLessThanCapacityRequired"));
1151throw new ArgumentException(Environment.GetResourceString("Argument_NotEnoughBytesToRead"), "position");
1158throw new ObjectDisposedException("UnmanagedMemoryAccessor", Environment.GetResourceString("ObjectDisposed_ViewAccessorClosed"));
1161throw new NotSupportedException(Environment.GetResourceString("NotSupported_Writing"));
1164throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1169throw new ArgumentOutOfRangeException("position", Environment.GetResourceString("ArgumentOutOfRange_PositionLessThanCapacityRequired"));
system\io\unmanagedmemorystream.cs (47)
150throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
153throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
156throw new ArgumentException(Environment.GetResourceString("Argument_InvalidSafeBufferOffLen"));
164throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CalledTwice"));
179throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_UnmanagedMemStreamWrapAround"));
233throw new ArgumentOutOfRangeException((length < 0) ? "length" : "capacity", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
235throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_LengthGreaterThanCapacity"));
239throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_UnmanagedMemStreamWrapAround"));
241throw new ArgumentOutOfRangeException("access", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
243throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CalledTwice"));
333throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
341throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_StreamLength"));
353throw new NotSupportedException(Environment.GetResourceString("NotSupported_UmsSafeBuffer"));
359throw new IndexOutOfRangeException(Environment.GetResourceString("IndexOutOfRange_UMSPosition"));
367throw new NotSupportedException(Environment.GetResourceString("NotSupported_UmsSafeBuffer"));
373throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_UnmanagedMemStreamLength"));
375throw new IOException(Environment.GetResourceString("IO.IO_SeekBeforeBegin"));
385throw new NotSupportedException(Environment.GetResourceString("NotSupported_UmsSafeBuffer"));
394throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
396throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
398throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
400throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
450throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
452throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
454throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
456throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
513throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_UnmanagedMemStreamLength"));
517throw new IOException(Environment.GetResourceString("IO.IO_SeekBeforeBegin"));
524throw new IOException(Environment.GetResourceString("IO.IO_SeekBeforeBegin"));
531throw new IOException(Environment.GetResourceString("IO.IO_SeekBeforeBegin"));
536throw new ArgumentException(Environment.GetResourceString("Argument_InvalidSeekOrigin"));
547throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
550throw new NotSupportedException(Environment.GetResourceString("NotSupported_UmsSafeBuffer"));
555throw new IOException(Environment.GetResourceString("IO.IO_FixedCapacity"));
573throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
575throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
577throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
579throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
590throw new IOException(Environment.GetResourceString("IO.IO_StreamTooLong"));
593throw new NotSupportedException(Environment.GetResourceString("IO.IO_FixedCapacity"));
615throw new ArgumentException(Environment.GetResourceString("Arg_BufferTooSmall"));
647throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer"));
649throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
651throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
653throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
684throw new IOException(Environment.GetResourceString("IO.IO_StreamTooLong"));
687throw new NotSupportedException(Environment.GetResourceString("IO.IO_FixedCapacity"));
system\reflection\emit\assemblybuilder.cs (34)
100throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
108throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
116throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
121throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
126throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
131throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
141throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
152throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
158throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicAssembly"));
562throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
638throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
640throw new ArgumentException(Environment.GetResourceString("Argument_InvalidName"), "name");
855throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
857throw new ArgumentException(Environment.GetResourceString("Argument_InvalidName"), "name");
862throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "fileName");
864throw new ArgumentException(Environment.GetResourceString("Argument_NotSimpleFileName"), "fileName");
872throw new NotSupportedException(Environment.GetResourceString("Argument_BadPersistableModuleInTransientAssembly"));
878throw new InvalidOperationException(Environment.GetResourceString(
978throw new ArgumentException(Environment.GetResourceString("Argument_TypeNotValid"));
1037throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), name);
1041throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "fileName");
1043throw new ArgumentException(Environment.GetResourceString("Argument_NotSimpleFileName"), "fileName");
1127throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), name);
1131throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), fileName);
1133throw new ArgumentException(Environment.GetResourceString("Argument_NotSimpleFileName"), "fileName");
1447throw new ArgumentException(Environment.GetResourceString("Argument_NativeResourceAlreadyDefined"));
1474throw new ArgumentException(Environment.GetResourceString("Argument_NativeResourceAlreadyDefined"));
1497throw new ArgumentException(Environment.GetResourceString("Argument_NativeResourceAlreadyDefined"));
1526throw new ArgumentException(Environment.GetResourceString("Argument_NativeResourceAlreadyDefined"));
1573throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
1629throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EntryMethodNotDefinedInAssembly"));
1771throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "assemblyFileName");
1773throw new ArgumentException(Environment.GetResourceString("Argument_NotSimpleFileName"), "assemblyFileName");
1808throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CantSaveTransientAssembly"));
system\reflection\emit\dynamicilgenerator.cs (25)
73throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
106throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"), "meth");
119throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOpCodeOnDynamicMethod"));
158throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"), "con");
187throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
203throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeFieldInfo"), "field");
245throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAVarArgCallingConvention"));
319throw new ArgumentException(Environment.GetResourceString("Argument_NotMethodCallOpcode"), "opcode");
322throw new ArgumentException(Environment.GetResourceString("Argument_GenericsInvalid"), "methodInfo");
325throw new ArgumentException(Environment.GetResourceString("Argument_GenericsInvalid"), "methodInfo");
400throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod"));
406throw new NotSupportedException(Environment.GetResourceString("Argument_NotInExceptionBlock"));
417throw new ArgumentException(Environment.GetResourceString("Argument_ShouldNotSpecifyExceptionType"));
429throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
448throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod"));
464throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod"));
474throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod"));
479throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod"));
484throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod"));
493throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAVarArgCallingConvention"));
499throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"), "methodInfo");
1074throw new ArgumentOutOfRangeException("codeSize", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
1100throw new ArgumentOutOfRangeException("exceptionsSize", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
1125throw new ArgumentOutOfRangeException("signatureSize", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
1243CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_MethodDeclaringTypeGenericLcg"), m, t));
system\reflection\emit\methodbuilder.cs (35)
98throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
101throw new ArgumentException(Environment.GetResourceString("Argument_IllegalName"), "name");
138throw new ArgumentException(Environment.GetResourceString("Arg_NoStaticVirtual"));
149throw new ArgumentException(Environment.GetResourceString("Argument_BadAttributeOnInterfaceMethod"));
227throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MethodHasBody"));
236throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadILGeneratorUsage"));
244throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_OpenLocalVariableScope"));
579throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
599get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); }
604get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); }
609get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); }
614get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); }
636throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_TypeNotCreated"));
648throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TypeNotCreated"));
661throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
667throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
673throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
701throw new ArgumentException(Environment.GetResourceString("Arg_EmptyArray"), "names");
705throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_GenericParametersAlreadySet"));
712throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MethodBuilderBaked"));
850throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_ParamSequence"));
857throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_ParamSequence"));
911throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotADebugModule"));
964throw new ArgumentNullException("il", Environment.GetResourceString("ArgumentNull_Array"));
968throw new ArgumentOutOfRangeException("maxStack", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
974throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MethodBaked"));
1073throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MethodBaked"));
1080throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1144throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ShouldNotHaveMethodBody"));
1473throw new ArgumentOutOfRangeException("tryOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1478throw new ArgumentOutOfRangeException("tryLength", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1483throw new ArgumentOutOfRangeException("filterOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1488throw new ArgumentOutOfRangeException("handlerOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1493throw new ArgumentOutOfRangeException("handlerLength", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1517throw new ArgumentOutOfRangeException("kind", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
system\reflection\emit\typebuilder.cs (79)
100throw new ArgumentException(Environment.GetResourceString("Argument_MustBeTypeBuilder"));
110throw new ArgumentException(Environment.GetResourceString("Argument_NeedGenericMethodDefinition"), "method");
113throw new ArgumentException(Environment.GetResourceString("Argument_MethodNeedGenericDeclaringType"), "method");
116throw new ArgumentException(Environment.GetResourceString("Argument_InvalidMethodDeclaringType"), "type");
126throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "type");
133throw new ArgumentException(Environment.GetResourceString("Argument_MustBeTypeBuilder"));
136throw new ArgumentException(Environment.GetResourceString("Argument_ConstructorNeedGenericDeclaringType"), "constructor");
140throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "type");
147throw new ArgumentException(Environment.GetResourceString("Argument_InvalidConstructorDeclaringType"), "type");
154throw new ArgumentException(Environment.GetResourceString("Argument_MustBeTypeBuilder"));
157throw new ArgumentException(Environment.GetResourceString("Argument_FieldNeedGenericDeclaringType"), "field");
161throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "type");
168throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFieldDeclaringType"), "type");
445throw new ArgumentException(Environment.GetResourceString("Argument_ConstantDoesntMatch"));
454throw new ArgumentException(Environment.GetResourceString("Argument_ConstantDoesntMatch"));
464throw new ArgumentException(Environment.GetResourceString("Argument_ConstantDoesntMatch"));
473throw new ArgumentException(Environment.GetResourceString("Argument_ConstantDoesntMatch"));
521throw new ArgumentException(Environment.GetResourceString("Argument_ConstantNull"));
623throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "fullname");
626throw new ArgumentException(Environment.GetResourceString("Argument_IllegalName"), "fullname");
630throw new ArgumentException(Environment.GetResourceString("Argument_TypeNameTooLong"), "fullname");
646throw new ArgumentException(Environment.GetResourceString("Argument_BadNestedTypeFlags"), "attr");
769throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
775throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "dllName");
781throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "importName");
784throw new ArgumentException(Environment.GetResourceString("Argument_BadPInvokeMethod"));
788throw new ArgumentException(Environment.GetResourceString("Argument_BadPInvokeOnInterface"));
805throw new ArgumentException(Environment.GetResourceString("Argument_MethodRedefined"));
868throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
871throw new ArgumentException(Environment.GetResourceString("Argument_BadSizeForData"));
907throw new ArgumentException(Environment.GetResourceString("Argument_BadTypeAttrNestedVisibilityOnNonNestedType"));
915throw new ArgumentException(Environment.GetResourceString("Argument_BadTypeAttrNonNestedVisibilityNestedType"));
922throw new ArgumentException(Environment.GetResourceString("Argument_BadTypeAttrInvalidLayout"));
928throw new ArgumentException(Environment.GetResourceString("Argument_BadTypeAttrReservedBitsSet"));
966throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TypeHasBeenCreated"));
1068throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1079throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1093get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); }
1129throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1139throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1149throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1165throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1174throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1183throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1192throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1216throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1225throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1234throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
1240throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1249throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1258throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1267throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1277throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1286throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1295throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1381throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
1394throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1406throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1418throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1457throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NoUnderlyingTypeOnEnum"));
1511throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1521throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1530throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");
1539throw new NotSupportedException(Environment.GetResourceString("NotSupported_TypeNotYetCreated"));
1548throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"caType");
1640throw new ArgumentException(Environment.GetResourceString("ArgumentException_BadMethodImplBody"));
1702throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
1726throw new ArgumentException(Environment.GetResourceString("Argument_BadAttributeOnInterfaceMethod"));
1782throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ConstructorNotAllowedOnInterface"));
1811throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
1829throw new NotSupportedException(Environment.GetResourceString("NotSupported_NoParentDefaultConstructor"));
1858throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ConstructorNotAllowedOnInterface"));
2169throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
2226throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
2228throw new ArgumentException(Environment.GetResourceString("Argument_IllegalName"), "name");
2395throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadTypeAttributesNotAbstract"));
2410throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadMethodBody"));
2493throw new ArgumentException(Environment.GetResourceString("Argument_CannotSetParentToInterface"));
2506throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadInterfaceNotAbstract"));
system\reflection\module.cs (12)
654throw new ArgumentException(Environment.GetResourceString("Argument_InvalidGenericInstArray"));
657throw new ArgumentException(Environment.GetResourceString("Argument_InvalidGenericInstArray"));
659throw new ArgumentException(Environment.GetResourceString("Argument_InvalidGenericInstArray"));
739throw new ArgumentException(Environment.GetResourceString("Argument_BadImageFormatExceptionResolve"), e);
826throw new ArgumentException(Environment.GetResourceString("Argument_BadImageFormatExceptionResolve"), e);
859throw new ArgumentException(Environment.GetResourceString("Argument_BadImageFormatExceptionResolve"), e);
869throw new ArgumentException(Environment.GetResourceString("InvalidOperation_PropertyInfoNotAvailable"));
872throw new ArgumentException(Environment.GetResourceString("InvalidOperation_EventInfoNotAvailable"));
914String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_ResolveString"), metadataToken, ToString()));
924String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_ResolveString"), metadataToken, ToString()));
1026throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");
1041throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");
system\rttype.cs (58)
2050CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2078CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2100CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2170CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveFieldHandle"),
3152throw new InvalidOperationException(Environment.GetResourceString("Arg_GenericParameter"));
3161throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "ifaceType");
3172throw new ArgumentException(Environment.GetResourceString("Argument_ArrayGetInterfaceMap"));
3234throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException"));
3307throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException"));
3341throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException"));
3373throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException"));
3385throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException"));
3417throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException"));
3448throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException"));
3655throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericParameter"));
4004throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericParameter"));
4047throw new ArgumentException(Environment.GetResourceString("Argument_HasToBeArrayClass"));
4062throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
4079throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
4100throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
4155throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
4168throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnumBaseTypeOrEnum"), "value");
4214throw new ArgumentException(Environment.GetResourceString("Argument_GenericArgsCount"), "instantiation");
4269throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericParameter"));
4279throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotGenericType"));
4303throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericParameter"));
4443throw new ArgumentException(String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_ObjObjEx"), value.GetType(), this));
4485throw new ArgumentException(String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_ObjObjEx"), value.GetType(), this));
4517throw new InvalidOperationException(Environment.GetResourceString("Arg_GenericParameter"));
4523throw new ArgumentException(Environment.GetResourceString("Arg_NoAccessSpec"),"bindingFlags");
4541throw new ArgumentException(Environment.GetResourceString("Arg_NamedParamTooBig"), "namedParams");
4547throw new ArgumentException(Environment.GetResourceString("Arg_NamedParamTooBig"), "namedParams");
4558throw new ArgumentException(Environment.GetResourceString("Arg_COMAccess"), "bindingFlags");
4561throw new ArgumentException(Environment.GetResourceString("Arg_PropSetGet"), "bindingFlags");
4564throw new ArgumentException(Environment.GetResourceString("Arg_PropSetInvoke"), "bindingFlags");
4567throw new ArgumentException(Environment.GetResourceString("Arg_COMPropSetPut"), "bindingFlags");
4570throw new ArgumentException(Environment.GetResourceString("Arg_COMPropSetPut"), "bindingFlags");
4573throw new ArgumentException(Environment.GetResourceString("Arg_COMPropSetPut"), "bindingFlags");
4607throw new ArgumentException(Environment.GetResourceString("Arg_NamedParamNull"),"namedParams");
4624throw new ArgumentException(Environment.GetResourceString("Arg_CreatInstAccess"),"bindingFlags");
4661throw new ArgumentException(Environment.GetResourceString("Arg_FldSetGet"),"bindingFlags");
4665throw new ArgumentException(Environment.GetResourceString("Arg_FldGetPropSet"),"bindingFlags");
4676throw new ArgumentException(Environment.GetResourceString("Arg_FldSetPropGet"),"bindingFlags");
4680throw new ArgumentException(Environment.GetResourceString("Arg_FldSetInvoke"),"bindingFlags");
4729throw new ArgumentException(Environment.GetResourceString("Arg_IndexMustBeInt"));
4754throw new ArgumentException(Environment.GetResourceString("Arg_FldGetArgErr"),"bindingFlags");
4763throw new ArgumentException(Environment.GetResourceString("Arg_FldSetArgErr"),"bindingFlags");
4814throw new ArgumentException(Environment.GetResourceString("Arg_PropSetGet"), "bindingFlags");
4823throw new ArgumentException(Environment.GetResourceString("Arg_PropSetInvoke"), "bindingFlags");
5043throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");
5058throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");
5162throw new ArgumentException(Environment.GetResourceString("Arg_ReflectionOnlyInvoke"));
5172throw new NotSupportedException(Environment.GetResourceString("Acc_CreateArgIterator"));
5175throw new NotSupportedException(Environment.GetResourceString("Acc_CreateVoid"));
5317Environment.GetResourceString("NotSupported_CallToVarArg")));
5504throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInReflectionOnly"));
5517throw new MissingMethodException(Environment.GetResourceString("Arg_NoDefCTor"));
5835throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInReflectionOnly"));
system\runtime\interopservices\marshal.cs (31)
220throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "t");
222throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "t");
290throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeFieldInfo"), "fieldName");
867throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"));
906throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"));
981throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "structureType");
986throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "type");
1048throw new ArgumentNullException(Environment.GetResourceString("Argument_MustBeRuntimeModule"));
1160throw new ArgumentException(Environment.GetResourceString("Argument_ArgumentZero"), "cookie");
1463throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"), "asm");
1492throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"), "inputAssembly");
1969throw new ArgumentException(Environment.GetResourceString("Argument_ObjNotComObject"), "o");
2000throw new ArgumentException(Environment.GetResourceString("Argument_ObjNotComObject"), "o");
2034throw new ArgumentException(Environment.GetResourceString("Argument_ObjNotComObject"), "obj");
2039throw new ArgumentException(Environment.GetResourceString("Argument_ObjIsWinRTObject"), "obj");
2071throw new ArgumentException(Environment.GetResourceString("Argument_ObjNotComObject"), "obj");
2076throw new ArgumentException(Environment.GetResourceString("Argument_ObjIsWinRTObject"), "obj");
2094throw new ArgumentException(Environment.GetResourceString("Argument_TypeNotComObject"), "t");
2096throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "t");
2100throw new ArgumentException(Environment.GetResourceString("Argument_TypeIsWinRTType"), "t");
2108throw new ArgumentException(Environment.GetResourceString("Argument_ObjNotComObject"), "o");
2110throw new ArgumentException(Environment.GetResourceString("Argument_ObjIsWinRTObject"), "o");
2301throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"), "m");
2304throw new ArgumentException(Environment.GetResourceString("Argument_MustBeInterfaceMethod"), "m");
2306throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "m");
2347throw new ArgumentException(Environment.GetResourceString("Argument_TypeMustNotBeComImport"), "type");
2349throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "type");
2353throw new ArgumentException(Environment.GetResourceString("Argument_TypeMustBeComCreatable"), "type");
2615throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "t");
2618throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "t");
2622throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"), "t");
system\runtime\interopservices\safebuffer.cs (17)
105throw new ArgumentOutOfRangeException("numBytes", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
107throw new ArgumentOutOfRangeException("numBytes", Environment.GetResourceString("ArgumentOutOfRange_AddressSpace"));
111throw new ArgumentOutOfRangeException("numBytes", Environment.GetResourceString("ArgumentOutOfRange_UIntPtrMax-1"));
124throw new ArgumentOutOfRangeException("numElements", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
126throw new ArgumentOutOfRangeException("sizeOfEachElement", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
129throw new ArgumentOutOfRangeException("numBytes", Environment.GetResourceString("ArgumentOutOfRange_AddressSpace"));
133throw new ArgumentOutOfRangeException("numElements", Environment.GetResourceString("ArgumentOutOfRange_UIntPtrMax-1"));
249throw new ArgumentNullException("array", Environment.GetResourceString("ArgumentNull_Buffer"));
251throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
253throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
255throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
321throw new ArgumentNullException("array", Environment.GetResourceString("ArgumentNull_Buffer"));
323throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
325throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
327throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
384throw new ArgumentException(Environment.GetResourceString("Arg_BufferTooSmall"));
391return new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MustCallInitialize"));
system\runtime\remoting\configuration.cs (19)
219Environment.GetResourceString(
231CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_AppNameSet"),
264throw new RemotingException(Environment.GetResourceString("Remoting_Config_ErrorsModeSet"));
373CultureInfo.CurrentCulture, Environment.GetResourceString(
425CultureInfo.CurrentCulture, Environment.GetResourceString(
497CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_InvalidChannelType"),
528CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_ChannelMissingCtor"),
602CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_InvalidSinkProviderType"),
614CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_InvalidSinkProviderType"),
628CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_SinkProviderNotFormatter"),
651CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_SinkProviderMissingCtor"),
1135CultureInfo.CurrentCulture, Environment.GetResourceString(
1298CultureInfo.CurrentCulture, Environment.GetResourceString(
1380CultureInfo.CurrentCulture, Environment.GetResourceString(
1389CultureInfo.CurrentCulture, Environment.GetResourceString(
1418CultureInfo.CurrentCulture, Environment.GetResourceString(
1427CultureInfo.CurrentCulture, Environment.GetResourceString(
1470CultureInfo.CurrentCulture, Environment.GetResourceString(
1633CultureInfo.CurrentCulture, Environment.GetResourceString(
system\runtime\remoting\message.cs (70)
432Environment.GetResourceString("NotSupported_Method"));
522CultureInfo.CurrentCulture, Environment.GetResourceString(
556CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Message_MissingArgValue"),
572CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Message_MissingArgValue"),
634CultureInfo.CurrentCulture, Environment.GetResourceString(
761CultureInfo.CurrentCulture, Environment.GetResourceString(
806CultureInfo.CurrentCulture, Environment.GetResourceString(
1016Environment.GetResourceString(
1087Environment.GetResourceString(
1101Environment.GetResourceString(
1120Environment.GetResourceString(
1138Environment.GetResourceString(
1156Environment.GetResourceString(
1174Environment.GetResourceString(
1232Environment.GetResourceString(
1248Environment.GetResourceString(
1263Environment.GetResourceString(
1280Environment.GetResourceString(
1298Environment.GetResourceString(
1360Environment.GetResourceString(
1375Environment.GetResourceString(
1449Environment.GetResourceString(
1470Environment.GetResourceString(
1490Environment.GetResourceString(
1551Environment.GetResourceString(
1573Environment.GetResourceString(
1603Environment.GetResourceString(
1623Environment.GetResourceString(
1630Environment.GetResourceString(
1682Environment.GetResourceString(
1704Environment.GetResourceString(
1729Environment.GetResourceString(
1742Environment.GetResourceString(
1749Environment.GetResourceString(
1815Environment.GetResourceString(
1844Environment.GetResourceString(
1876Environment.GetResourceString(
1896Environment.GetResourceString(
1904Environment.GetResourceString(
2037Environment.GetResourceString(
2069Environment.GetResourceString(
2098Environment.GetResourceString(
2213Environment.GetResourceString(
2239Environment.GetResourceString(
2266Environment.GetResourceString(
2574_e = IsCustomErrorEnabled()? new RemotingException(Environment.GetResourceString("Remoting_InternalError")):e;
3119CultureInfo.CurrentCulture, Environment.GetResourceString(
3275CultureInfo.CurrentCulture, Environment.GetResourceString(
3317throw new RemotingException(Environment.GetResourceString("Remoting_AmbiguousMethod"));
3378throw new RemotingException(Environment.GetResourceString("Remoting_AmbiguousMethod"));
3391Environment.GetResourceString("NotSupported_Method"));
3428CultureInfo.CurrentCulture, Environment.GetResourceString(
3439CultureInfo.CurrentCulture, Environment.GetResourceString(
3493Environment.GetResourceString(
3501Environment.GetResourceString(
4142CultureInfo.CurrentCulture, Environment.GetResourceString(
4339Environment.GetResourceString(
4357Environment.GetResourceString("NotSupported_Method"));
4469Environment.GetResourceString(
4480Environment.GetResourceString(
4863Environment.GetResourceString(
5101Environment.GetResourceString(
5118Environment.GetResourceString(
5128Environment.GetResourceString(
5136Environment.GetResourceString(
5144Environment.GetResourceString(
5284Environment.GetResourceString(
5299Environment.GetResourceString(
5746Environment.GetResourceString("Remoting_Default"));
5970Environment.GetResourceString("Remoting_Default"));
system\runtime\remoting\remotingconfigparser.cs (13)
704CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_NodeMustBeUnique"),
714CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_UnknownValue"),
730CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_RequiredXmlAttribute"),
740CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_MissingTypeAttribute"),
750CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_MissingXmlTypeAttribute"),
760CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_InvalidTimeFormat"),
772CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_NonTemplateIdAttribute"),
783CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_TemplateCannotReferenceTemplate"),
794CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_UnableToResolveTemplate"),
806CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Config_VersionPresent"),
1095Environment.GetResourceString("Remoting_Config_MissingWellKnownModeAttribute"),
1363Environment.GetResourceString("Remoting_Config_PreloadRequiresTypeOrAssembly"),
1589Environment.GetResourceString("Remoting_Config_ProviderNeedsElementName"),
system\runtime\remoting\remotingservices.cs (25)
215CultureInfo.CurrentCulture, Environment.GetResourceString(
254CultureInfo.CurrentCulture, Environment.GetResourceString(
282CultureInfo.CurrentCulture, Environment.GetResourceString(
408Environment.GetResourceString(
416Environment.GetResourceString(
445Environment.GetResourceString(
556throw new ArgumentException(Environment.GetResourceString("Argument_InvalidMarshalByRefObject"), "Obj");
743Environment.GetResourceString(
769Environment.GetResourceString(
904Environment.GetResourceString("Remoting_CantDisconnectClientProxy"));
944Environment.GetResourceString(
980Environment.GetResourceString(
1003CultureInfo.CurrentCulture, Environment.GetResourceString(
1012Environment.GetResourceString(
1186CultureInfo.CurrentCulture, Environment.GetResourceString(
1257CultureInfo.CurrentCulture, Environment.GetResourceString(
1390CultureInfo.CurrentCulture, Environment.GetResourceString(
1413throw new RemotingException(Environment.GetResourceString("Remoting_UnexpectedNullTP"));
1461CultureInfo.CurrentCulture, Environment.GetResourceString(
1713CultureInfo.CurrentCulture, Environment.GetResourceString(
1890CultureInfo.CurrentCulture, Environment.GetResourceString(
1938Environment.GetResourceString(
2480Environment.GetResourceString("Remoting_Proxy_WrongContext"));
2808throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeReflectionObject"));
2832throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeReflectionObject"));
system\runtime\remoting\soapinteroptypes.cs (12)
219CultureInfo.CurrentCulture, Environment.GetResourceString(
386CultureInfo.CurrentCulture, Environment.GetResourceString(
959CultureInfo.CurrentCulture, Environment.GetResourceString(
1050CultureInfo.CurrentCulture, Environment.GetResourceString(
1139CultureInfo.CurrentCulture, Environment.GetResourceString(
1152CultureInfo.CurrentCulture, Environment.GetResourceString(
1201CultureInfo.CurrentCulture, Environment.GetResourceString(
1214CultureInfo.CurrentCulture, Environment.GetResourceString(
1263CultureInfo.CurrentCulture, Environment.GetResourceString(
1276CultureInfo.CurrentCulture, Environment.GetResourceString(
1325CultureInfo.CurrentCulture, Environment.GetResourceString(
1338CultureInfo.CurrentCulture, Environment.GetResourceString(
system\security\accesscontrol\ace.cs (14)
124Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" ));
134Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ));
193Environment.GetResourceString( "Arg_EnumAtLeastOneFlag" ),
252Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" ));
262Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ));
273Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ));
410Environment.GetResourceString( "ArgumentException_InvalidAceBinaryForm" ),
791Environment.GetResourceString( "ArgumentOutOfRange_InvalidUserDefinedAceType" ));
856string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "ArgumentOutOfRange_ArrayLength" ), 0, MaxOpaqueLength ));
862string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "ArgumentOutOfRange_ArrayLengthMultiple" ), 4 ));
1303string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "ArgumentOutOfRange_ArrayLength" ), 0, MaxOpaqueLengthInternal ));
1309string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "ArgumentOutOfRange_ArrayLengthMultiple" ), 4 ));
1425Environment.GetResourceString( "ArgumentOutOfRange_Enum" ));
1807Environment.GetResourceString( "ArgumentOutOfRange_Enum" ));
system\security\accesscontrol\acl.cs (35)
63throw new InvalidOperationException( Environment.GetResourceString( "Arg_InvalidOperationException" ));
180throw new RankException( Environment.GetResourceString( "Rank_MultiDimNotSupported" ));
188Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" ));
194Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ));
265Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" ));
297Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ));
310Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" ));
314throw new InvalidOperationException( Environment.GetResourceString( "AccessControl_AclTooLong" ));
320Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ));
367Environment.GetResourceString( "ArgumentException_InvalidAclBinaryForm" ),
416Environment.GetResourceString( "ArgumentException_InvalidAclBinaryForm" ),
563throw new OverflowException( Environment.GetResourceString( "AccessControl_AclTooLong" ));
584throw new OverflowException( Environment.GetResourceString( "AccessControl_AclTooLong" ));
1850throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_ModificationOfNonCanonicalAcl" ));
1968Environment.GetResourceString( "ArgumentOutOfRange_Enum" ));
1984Environment.GetResourceString( "Argument_InvalidAnyFlag" ),
1991Environment.GetResourceString("Argument_InvalidAnyFlag"),
1997Environment.GetResourceString( "Argument_InvalidAnyFlag" ),
2024Environment.GetResourceString( "Arg_EnumAtLeastOneFlag" ),
2031Environment.GetResourceString( "Argument_ArgumentZero" ),
2103Environment.GetResourceString( "Arg_EnumAtLeastOneFlag" ),
2110Environment.GetResourceString( "Argument_ArgumentZero" ),
2208Environment.GetResourceString( "Argument_ArgumentZero" ),
2216Environment.GetResourceString( "Arg_EnumAtLeastOneFlag" ),
2653Environment.GetResourceString( "Argument_ArgumentZero" ),
2661Environment.GetResourceString( "Arg_EnumAtLeastOneFlag" ),
2858throw new NotSupportedException( Environment.GetResourceString( "NotSupported_SetMethod" ));
3007Environment.GetResourceString( "InvalidOperation_OnlyValidForDS" ));
3028Environment.GetResourceString( "InvalidOperation_OnlyValidForDS" ));
3049Environment.GetResourceString( "InvalidOperation_OnlyValidForDS" ));
3069Environment.GetResourceString( "InvalidOperation_OnlyValidForDS" ));
3170Environment.GetResourceString( "InvalidOperation_OnlyValidForDS" ));
3193Environment.GetResourceString( "InvalidOperation_OnlyValidForDS" ));
3216Environment.GetResourceString( "InvalidOperation_OnlyValidForDS" ));
3238Environment.GetResourceString( "InvalidOperation_OnlyValidForDS" ));
system\security\cryptography\cryptostream.cs (25)
62if (!(_stream.CanRead)) throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotReadable"),"stream");
66if (!(_stream.CanWrite)) throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotWritable"),"stream");
70throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue"));
93get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream")); }
97get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream")); }
98set { throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream")); }
119throw new NotSupportedException(Environment.GetResourceString("Cryptography_CryptoStream_FlushFinalBlockTwice"));
172throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream"));
176throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream"));
182throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream"));
184throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
186throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
188throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
310throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream"));
312throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
314throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
316throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
494throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnwritableStream"));
496throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
498throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
500throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
574throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnwritableStream"));
576throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
578throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
580throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\security\framesecuritydescriptor.cs (6)
332throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
347throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
360throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
372throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic"), demand.GetType().AssemblyQualifiedName), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demand, demand);
492throw new SecurityException(Environment.GetResourceString("Security_GenericNoType"), null, permSet, SecurityRuntime.GetMethodInfo(rmh), demandSet, permFailed);
516throw new SecurityException(Environment.GetResourceString("Security_GenericNoType"), permSet, null, SecurityRuntime.GetMethodInfo(rmh), demandSet, permFailed);
system\security\principal\ntaccount.cs (10)
49throw new ArgumentException( Environment.GetResourceString( "Argument_StringZeroLength" ), "accountName" );
54throw new ArgumentException( Environment.GetResourceString( "IdentityReference_AccountNameTooLong" ), "accountName");
59throw new ArgumentException( Environment.GetResourceString( "IdentityReference_DomainNameTooLong" ), "domainName");
82throw new ArgumentException( Environment.GetResourceString( "Argument_StringZeroLength" ), "name" );
87throw new ArgumentException( Environment.GetResourceString( "IdentityReference_AccountNameTooLong" ), "name");
144throw new ArgumentException( Environment.GetResourceString( "IdentityReference_MustBeIdentityReference" ), "targetType" );
195throw new IdentityNotMappedException(Environment.GetResourceString("IdentityReference_IdentityNotMapped"), UnmappedIdentities);
215throw new ArgumentException( Environment.GetResourceString( "IdentityReference_MustBeIdentityReference" ), "targetType" );
260throw new ArgumentException( Environment.GetResourceString( "Arg_EmptyCollection" ), "sourceAccounts" );
283throw new ArgumentException( Environment.GetResourceString( "Argument_ImproperType" ), "sourceAccounts" );
system\security\principal\sid.cs (16)
223Environment.GetResourceString( "IdentityReference_IdentifierAuthorityTooLarge" ));
298Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" ));
309Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ));
327Environment.GetResourceString( "IdentityReference_InvalidSidRevision" ),
351Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ),
416throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidValue" ), "sddlForm" );
473throw new ArgumentException(Environment.GetResourceString("IdentityReference_CannotCreateLogonIdsSid"), "sidType");
484throw new PlatformNotSupportedException( Environment.GetResourceString( "PlatformNotSupported_RequiresW2kSP3" ));
493throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidValue" ), "sidType" );
522throw new ArgumentException( Environment.GetResourceString( "IdentityReference_NotAWindowsDomain" ), "domainSid" );
535throw new ArgumentException( Environment.GetResourceString( "IdentityReference_NotAWindowsDomain" ), "domainSid" );
805throw new ArgumentException( Environment.GetResourceString( "IdentityReference_MustBeIdentityReference" ), "targetType" );
930throw new ArgumentException(Environment.GetResourceString("Arg_EmptyCollection"), "sourceSids");
953throw new ArgumentException( Environment.GetResourceString( "Argument_ImproperType" ), "sourceSids" );
1100throw new IdentityNotMappedException(Environment.GetResourceString("IdentityReference_IdentityNotMapped"), UnmappedIdentities);
1121throw new ArgumentException( Environment.GetResourceString( "IdentityReference_MustBeIdentityReference" ), "targetType" );
system\security\securityelement.cs (11)
117throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), tag ) );
130throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), tag ) );
133throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementText" ), text ) );
156throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), value ) );
205throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementName" ), (String)enumerator.Current ) );
208throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementValue" ), (String)enumerator.Value ) );
235throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementTag" ), value ) );
259throw new ArgumentException( Environment.GetResourceString( "ArgumentNull_Child" ) );
308throw new ArgumentException( Environment.GetResourceString( "Argument_AttributeNamesMustBeUnique" ) );
325throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementName" ), name ) );
328throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidElementValue" ), value ) );
system\security\securitymanager.cs (17)
173throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
178throw new ArgumentException( Environment.GetResourceString("Argument_PolicyFileDoesNotExist"));
217throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "configuration" ) );
221throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "mscorlib" ) );
225throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "security" ) );
229throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "policy" ) );
235throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "PolicyLevel" ) );
247throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
263throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
275throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
292throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
356throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
373throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
385throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
398throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
489throw new PolicyException(Environment.GetResourceString("Policy_NoExecutionPermission"),
503throw new PolicyException(Environment.GetResourceString( "Policy_NoRequiredPermission" ),
system\string.cs (61)
210throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
212throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NegativeCount"));
215throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer"));
590throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
631throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
657throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
701throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
735throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NegativeCount"));
737throw new ArgumentOutOfRangeException("sourceIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
739throw new ArgumentOutOfRangeException("sourceIndex", Environment.GetResourceString("ArgumentOutOfRange_IndexCount"));
741throw new ArgumentOutOfRangeException("destinationIndex", Environment.GetResourceString("ArgumentOutOfRange_IndexCount"));
776throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
778throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1014Environment.GetResourceString("ArgumentOutOfRange_NegativeCount"));
1058Environment.GetResourceString("ArgumentOutOfRange_NegativeCount"));
1274throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
1278throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndexLargerThanLength"));
1282throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NegativeLength"));
1286throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_IndexLength"));
1376throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
1378throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
1381throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_PartialWCHAR"));
1393Environment.GetResourceString("ArgumentOutOfRange_PartialWCHAR"));
1466throw new ArgumentException(Environment.GetResourceString("Interop_Marshal_Unmappable_Char"));
1600throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
1603throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NegativeLength"));
1606throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1705throw new ArgumentException(Environment.GetResourceString("Arg_MustBeStringPtrNotAtom"));
1721throw new ArgumentOutOfRangeException("ptr", Environment.GetResourceString("ArgumentOutOfRange_PartialWCHAR"));
1729throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NegativeLength"));
1733throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
1741throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_PartialWCHAR"));
1755throw new ArgumentOutOfRangeException("ptr", Environment.GetResourceString("ArgumentOutOfRange_PartialWCHAR"));
1804throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
1852throw new NotSupportedException(Environment.GetResourceString("NotSupported_StringComparison"));
2011throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
2026Environment.GetResourceString("ArgumentOutOfRange_NegativeLength"));
2031Environment.GetResourceString("ArgumentOutOfRange_Index"));
2036Environment.GetResourceString("ArgumentOutOfRange_Index"));
2041Environment.GetResourceString("ArgumentOutOfRange_Index"));
2046Environment.GetResourceString("ArgumentOutOfRange_Index"));
2090throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"));
2109throw new ArgumentException(Environment.GetResourceString("Arg_MustBeString"));
2195throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
2227throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
2327throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2331throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
2356throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2359throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
2385throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
2453throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
2483throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
2499throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
2523throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
2575throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
2614throw new ArgumentException(Environment.GetResourceString("NotSupported_StringComparison"), "comparisonType");
2914Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
2917Environment.GetResourceString("ArgumentOutOfRange_NegativeCount"));
2920Environment.GetResourceString("ArgumentOutOfRange_IndexCount"));
2946Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
2951Environment.GetResourceString("ArgumentOutOfRange_StartIndexLessThanLength"));
system\text\stringbuilder.cs (56)
129throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
137throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_IndexLength"));
159throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_Capacity"));
162throw new ArgumentOutOfRangeException("maxCapacity", Environment.GetResourceString("ArgumentOutOfRange_SmallMaxCapacity"));
216throw new SerializationException(Environment.GetResourceString("Serialization_StringBuilderMaxCapacity"));
230throw new SerializationException(Environment.GetResourceString("Serialization_StringBuilderCapacity"));
290throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NegativeCapacity"));
293throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_Capacity"));
296throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
320throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_NegativeCapacity"));
360throw new ArgumentOutOfRangeException("chunkLength", Environment.GetResourceString("ArgumentOutOfRange_Index"));
379throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
383throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndexLargerThanLength"));
387throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NegativeLength"));
391throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_IndexLength"));
435throw new ArgumentOutOfRangeException("chunkCount", Environment.GetResourceString("ArgumentOutOfRange_Index"));
464throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NegativeLength"));
468throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
542throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
548throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
556throw new ArgumentOutOfRangeException("repeatCount", Environment.GetResourceString("ArgumentOutOfRange_NegativeCount"));
595throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
598throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
618throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Index"));
701throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
705throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
731throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
762throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("Arg_NegativeArgCount"));
771throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_OffsetOut"));
775throw new ArgumentOutOfRangeException("sourceIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
779throw new ArgumentException(Environment.GetResourceString("Arg_LongerThanSrcString"));
822throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
830throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
867throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NegativeLength"));
871throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
875throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1039throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1116throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1136throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1145throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_String"));
1150throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
1154throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
1158throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1319throw new FormatException(Environment.GetResourceString("Format_InvalidString"));
1377if (index >= args.Length) throw new FormatException(Environment.GetResourceString("Format_IndexOutOfRange"));
1542throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1546throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1554throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "oldValue");
1628throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1632throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1669throw new ArgumentOutOfRangeException("valueCount", Environment.GetResourceString("ArgumentOutOfRange_NegativeCount"));
1710throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1860throw new ArgumentOutOfRangeException("destinationIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1878throw new ArgumentOutOfRangeException("sourceIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
1970throw new ArgumentOutOfRangeException("requiredLength", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
2031throw new ArgumentOutOfRangeException("requiredLength", Environment.GetResourceString("ArgumentOutOfRange_SmallCapacity"));
system\threading\Tasks\Task.cs (28)
626throw new InvalidOperationException(Environment.GetResourceString("Task_ctor_LRandSR"));
1080throw new InvalidOperationException(Environment.GetResourceString("Task_Start_TaskCompleted"));
1091throw new InvalidOperationException(Environment.GetResourceString("Task_Start_Promise"));
1095throw new InvalidOperationException(Environment.GetResourceString("Task_Start_ContinuationTask"));
1101throw new InvalidOperationException(Environment.GetResourceString("Task_Start_AlreadyStarted"));
1185throw new InvalidOperationException(Environment.GetResourceString("Task_RunSynchronously_Continuation"));
1191throw new InvalidOperationException(Environment.GetResourceString("Task_RunSynchronously_Promise"));
1197throw new InvalidOperationException(Environment.GetResourceString("Task_RunSynchronously_TaskCompleted"));
1203throw new InvalidOperationException(Environment.GetResourceString("Task_RunSynchronously_AlreadyStarted"));
1266throw new InvalidOperationException(Environment.GetResourceString("Task_RunSynchronously_TaskCompleted"));
1600throw new ObjectDisposedException(null, Environment.GetResourceString("Task_ThrowIfDisposed"));
1862throw new InvalidOperationException(Environment.GetResourceString("Task_Dispose_NotCompleted"));
4596throw new ArgumentOutOfRangeException("continuationOptions", Environment.GetResourceString("Task_ContinueWith_ESandLR"));
4610throw new ArgumentOutOfRangeException("continuationOptions", Environment.GetResourceString("Task_ContinueWith_NotOnAnything"));
5077throw new ArgumentException(Environment.GetResourceString("Task_WaitMulti_NullTask"), "tasks");
5479throw new ArgumentException(Environment.GetResourceString("Task_WaitMulti_NullTask"), "tasks");
5824throw new ArgumentOutOfRangeException("delay", Environment.GetResourceString("Task_Delay_InvalidDelay"));
5868throw new ArgumentOutOfRangeException("millisecondsDelay", Environment.GetResourceString("Task_Delay_InvalidMillisecondsDelay"));
6000if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks");
6011if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks");
6059if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks");
6249if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks");
6260if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks");
6311if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks");
6474throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_EmptyTaskList"), "tasks");
6485if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks");
6518if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks");
6524throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_EmptyTaskList"), "tasks");
system\threading\timer.cs (17)
568throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_Generic"));
853throw new ArgumentOutOfRangeException("dueTime", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
855throw new ArgumentOutOfRangeException("period", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
871throw new ArgumentOutOfRangeException("dueTm",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
873throw new ArgumentOutOfRangeException("dueTm",Environment.GetResourceString("ArgumentOutOfRange_TimeoutTooLarge"));
877throw new ArgumentOutOfRangeException("periodTm",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
879throw new ArgumentOutOfRangeException("periodTm",Environment.GetResourceString("ArgumentOutOfRange_PeriodTooLarge"));
905throw new ArgumentOutOfRangeException("dueTime",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
907throw new ArgumentOutOfRangeException("period",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
909throw new ArgumentOutOfRangeException("dueTime",Environment.GetResourceString("ArgumentOutOfRange_TimeoutTooLarge"));
911throw new ArgumentOutOfRangeException("period",Environment.GetResourceString("ArgumentOutOfRange_PeriodTooLarge"));
984throw new ArgumentOutOfRangeException("dueTime",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
986throw new ArgumentOutOfRangeException("period",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
1006throw new ArgumentOutOfRangeException("dueTime", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
1008throw new ArgumentOutOfRangeException("period", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
1010throw new ArgumentOutOfRangeException("dueTime", Environment.GetResourceString("ArgumentOutOfRange_TimeoutTooLarge"));
1012throw new ArgumentOutOfRangeException("period", Environment.GetResourceString("ArgumentOutOfRange_PeriodTooLarge"));
system\threading\waithandle.cs (21)
196throw new ArgumentOutOfRangeException("millisecondsTimeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
207throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
240throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_Generic"));
262throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_Generic"));
300throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_Waithandles"));
316throw new ArgumentNullException(Environment.GetResourceString("Argument_EmptyWaithandleArray"));
321throw new NotSupportedException(Environment.GetResourceString("NotSupported_MaxWaitHandles"));
325throw new ArgumentOutOfRangeException("millisecondsTimeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
334throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_ArrayElement"));
338throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WaitOnTransparentProxy"));
380throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
420throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_Waithandles"));
424throw new ArgumentException(Environment.GetResourceString("Argument_EmptyWaithandleArray"));
428throw new NotSupportedException(Environment.GetResourceString("NotSupported_MaxWaitHandles"));
432throw new ArgumentOutOfRangeException("millisecondsTimeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
441throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_ArrayElement"));
445throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WaitOnTransparentProxy"));
485throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
539throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
562throw new ArgumentOutOfRangeException("millisecondsTimeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
583throw new InvalidOperationException(Environment.GetResourceString("Threading.WaitHandleTooManyPosts"));
system\timezoneinfo.cs (59)
341throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeOffsetIsNotAmbiguous"), "dateTimeOffset");
355throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeOffsetIsNotAmbiguous"), "dateTimeOffset");
378throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeIsNotAmbiguous"), "dateTime");
403throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeIsNotAmbiguous"), "dateTime");
767throw new ArgumentException(Environment.GetResourceString("Argument_ConvertMismatch"), "sourceTimeZone");
790throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeIsInvalid"), "dateTime");
1228throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
1231throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
2944throw new ArgumentOutOfRangeException("baseUtcOffset", Environment.GetResourceString("ArgumentOutOfRange_UtcOffset"));
2948throw new ArgumentException(Environment.GetResourceString("Argument_TimeSpanHasSeconds"), "baseUtcOffset");
2969throw new InvalidTimeZoneException(Environment.GetResourceString("Argument_AdjustmentRulesNoNulls"));
2977throw new InvalidTimeZoneException(Environment.GetResourceString("ArgumentOutOfRange_UtcOffsetAndDaylightDelta"));
2983throw new InvalidTimeZoneException(Environment.GetResourceString("Argument_AdjustmentRulesOutOfOrder"));
3164throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeKindMustBeUnspecified"), "dateStart");
3168throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeKindMustBeUnspecified"), "dateEnd");
3172throw new ArgumentException(Environment.GetResourceString("Argument_TransitionTimesAreIdentical"),
3178throw new ArgumentException(Environment.GetResourceString("Argument_OutOfOrderDateTimes"), "dateStart");
3183Environment.GetResourceString("ArgumentOutOfRange_UtcOffset"));
3187throw new ArgumentException(Environment.GetResourceString("Argument_TimeSpanHasSeconds"),
3192throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeHasTimeOfDay"),
3197throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeHasTimeOfDay"),
3217throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
3435throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeKindMustBeUnspecified"), "timeOfDay");
3440throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_MonthParam"));
3445throw new ArgumentOutOfRangeException("day", Environment.GetResourceString("ArgumentOutOfRange_DayParam"));
3450throw new ArgumentOutOfRangeException("week", Environment.GetResourceString("ArgumentOutOfRange_Week"));
3455throw new ArgumentOutOfRangeException("dayOfWeek", Environment.GetResourceString("ArgumentOutOfRange_DayOfWeek"));
3463throw new ArgumentException(Environment.GetResourceString("Argument_DateTimeHasTicks"), "timeOfDay");
3476throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
3633throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), ex);
3636throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), ex);
3732throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3767throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3775throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3802throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3806throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3826throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3839throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3854throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3871throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3888throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3905throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
3919throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3946throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3949throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3968throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3973throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3983throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
3996throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
4006throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
4028throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
4057throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
4061throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
4067throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
4074throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
4091throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
4102throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
4110throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
4136throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"));
system\version.cs (14)
44throw new ArgumentOutOfRangeException("major",Environment.GetResourceString("ArgumentOutOfRange_Version"));
47throw new ArgumentOutOfRangeException("minor",Environment.GetResourceString("ArgumentOutOfRange_Version"));
50throw new ArgumentOutOfRangeException("build",Environment.GetResourceString("ArgumentOutOfRange_Version"));
53throw new ArgumentOutOfRangeException("revision",Environment.GetResourceString("ArgumentOutOfRange_Version"));
64throw new ArgumentOutOfRangeException("major",Environment.GetResourceString("ArgumentOutOfRange_Version"));
67throw new ArgumentOutOfRangeException("minor",Environment.GetResourceString("ArgumentOutOfRange_Version"));
70throw new ArgumentOutOfRangeException("build",Environment.GetResourceString("ArgumentOutOfRange_Version"));
81throw new ArgumentOutOfRangeException("major",Environment.GetResourceString("ArgumentOutOfRange_Version"));
84throw new ArgumentOutOfRangeException("minor",Environment.GetResourceString("ArgumentOutOfRange_Version"));
166throw new ArgumentException(Environment.GetResourceString("Arg_MustBeVersion"));
508return new ArgumentException(Environment.GetResourceString("Arg_VersionString"));
510return new ArgumentOutOfRangeException(m_exceptionArgument, Environment.GetResourceString("ArgumentOutOfRange_Version"));
521return new FormatException(Environment.GetResourceString("Format_InvalidString"));
524return new ArgumentException(Environment.GetResourceString("Arg_VersionString"));