microsoft\win32\registrykey.cs (15)
687throw new ArgumentException(Environment.GetResourceString("Arg_RegKeyOutOfRange"));
698throw new ArgumentException(Environment.GetResourceString("Arg_DllInitFailure"));
705throw new ArgumentException(Environment.GetResourceString("Arg_RegKeyNoRemoteConnect", machineName));
1165throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)options), "options");
1273throw new IOException(Environment.GetResourceString("Arg_RegGetOverflowBug"), e);
1298throw new IOException(Environment.GetResourceString("Arg_RegGetOverflowBug"), e);
1315data = Environment.ExpandEnvironmentVariables((String)data);
1326throw new IOException(Environment.GetResourceString("Arg_RegGetOverflowBug"), e);
1344throw new IOException(Environment.GetResourceString("Arg_RegGetOverflowBug"), e);
1463throw new ArgumentException(Environment.GetResourceString("Arg_RegValStrLenBug"));
1467throw new ArgumentException(Environment.GetResourceString("Arg_RegBadKeyKind"), "valueKind");
1617throw new ArgumentException(Environment.GetResourceString("Arg_RegSetBadArrType", value.GetType().Name));
1667throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_RegistryKeyGeneric_Key", str));
1694throw new IOException(Environment.GetResourceString("Arg_RegKeyNotFound"), errorCode);
1706throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_RegistryKeyGeneric_Key", str));
system\appdomain.cs (46)
164throw new ArgumentException(Environment.GetResourceString("Arg_MustBeStatic"),
482throw new InvalidOperationException(Environment.GetResourceString("Argument_InvalidHandle"));
546throw new TypeLoadException(Environment.GetResourceString("Argument_NoDomainManager"), e);
550throw new TypeLoadException(Environment.GetResourceString("Argument_NoDomainManager"), e);
554throw new TypeLoadException(Environment.GetResourceString("Argument_NoDomainManager"), e);
559throw new TypeLoadException(Environment.GetResourceString("Argument_NoDomainManager"));
702throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.LoadFrom"));
715throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.LoadFile"));
728throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.ReflectionOnlyLoad"));
746throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.LoadWithPartialName"));
762throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "DefinePInvokeMethod"));
775throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.Load(byte[], ...)"));
794throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "AppDomain.CreateDomain"));
1040throw new PolicyException(Environment.GetResourceString("Policy_NoExecutionPermission"),
1690throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit"));
1777throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit"));
1900throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit"));
1960throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit"));
1996throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit"));
2051throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit"));
2081throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit"));
2219sb.Append(Environment.GetResourceString("Loader_Name") + fn);
2220sb.Append(Environment.NewLine);
2224sb.Append(Environment.GetResourceString("Loader_NoContextPolicies")
2225+ Environment.NewLine);
2227sb.Append(Environment.GetResourceString("Loader_ContextPolicies")
2228+ Environment.NewLine);
2231sb.Append(Environment.NewLine);
2386throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_SetData"));
2400throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_SetData"));
2613throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
2619throw new PolicyException(Environment.GetResourceString("Policy_PolicyAlreadySet"));
2678throw new PolicyException(Environment.GetResourceString("Policy_PrincipalTwice"));
2953throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_Constructor));
3386throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit"));
3417throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_String"));
3466throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_AppDomainSandboxAPINeedsExplicitAppBase"));
3561info.PrivateBinPath = Environment.nativeGetEnvironmentVariable(AppDomainSetup.PrivateBinPathEnvironmentVariable);
3761throw new ArgumentException( Environment.GetResourceString( "Argument_AbsolutePathRequired" ) );
3786default: throw new ArgumentException(Environment.GetResourceString("Argument_UnrecognizedLoaderOptimization"), "LOADER_OPTIMIZATION");
3937throw new ArgumentException(Environment.GetResourceString("ArgumentException_NotAllCustomSortingFuncsDefined"));
4775throw new ArgumentException(Environment.GetResourceString("Arg_MustBeTrue"));
4793throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WithoutARM"));
4809throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WithoutARM"));
4827throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WithoutARM"));
4847throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WithoutARM"));
system\array.cs (113)
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"));
2017throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer));
2021throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2043throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2057throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer));
2061throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2114throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2336throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer));
2340throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2359throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
2374throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer));
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\char.cs (14)
137throw new ArgumentException (Environment.GetResourceString("Arg_MustBeChar"));
182throw new FormatException(Environment.GetResourceString("Format_NeedSingleChar"));
435throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Boolean"));
485throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Single"));
490throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Double"));
495throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Decimal"));
500throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "DateTime"));
926throw new ArgumentOutOfRangeException("utf32", Environment.GetResourceString("ArgumentOutOfRange_InvalidUTF32"));
949throw new ArgumentOutOfRangeException("highSurrogate", Environment.GetResourceString("ArgumentOutOfRange_InvalidHighSurrogate"));
952throw new ArgumentOutOfRangeException("lowSurrogate", Environment.GetResourceString("ArgumentOutOfRange_InvalidLowSurrogate"));
972throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
987throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHighSurrogate", index), "s");
991throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHighSurrogate", index), "s");
995throw new ArgumentException(Environment.GetResourceString("Argument_InvalidLowSurrogate", index), "s");
system\collections\arraylist.cs (149)
73if (capacity < 0) throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", "capacity"));
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"));
587BCLDebug.Correctness(index >= 0 || !(obj is Int32), "You passed an Int32 to Remove that wasn't in the ArrayList." + Environment.NewLine + "Did you mean RemoveAt? int: "+obj+" Count: "+Count);
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 (40)
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"));
276throw new ArgumentOutOfRangeException("loadFactor", Environment.GetResourceString("ArgumentOutOfRange_HashtableLoadFactor", .1, 1.0));
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"));
959throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate__", buckets[bucketNumber].key, 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 (24)
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");
156throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate__", node.key, key));
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 (40)
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"));
185throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate__", GetKey(i), 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 (37)
664throw new ArgumentOutOfRangeException("frequency", frequency, Environment.GetResourceString("ArgumentOutOfRange_BeepFrequency", MinBeepFrequency, MaxBeepFrequency));
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"));
1146throw new ArgumentOutOfRangeException("width", width, Environment.GetResourceString("ArgumentOutOfRange_ConsoleWindowSize_Size", bounds.X));
1148throw new ArgumentOutOfRangeException("height", height, Environment.GetResourceString("ArgumentOutOfRange_ConsoleWindowSize_Size", bounds.Y));
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 (94)
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"));
318throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", value.GetType().FullName, targetType.FullName));
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"));
2165throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)options));
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"));
2217throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)options));
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 (57)
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"));
258throw new ArgumentOutOfRangeException("millisecond", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, MillisPerSecond - 1));
274throw new ArgumentException(Environment.GetResourceString("Arg_DateTimeRange"));
280throw new ArgumentOutOfRangeException("millisecond", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, MillisPerSecond - 1));
283throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDateTimeKind"), "kind");
299throw new ArgumentException(Environment.GetResourceString("Arg_DateTimeRange"));
310throw new ArgumentOutOfRangeException("millisecond", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, MillisPerSecond - 1));
324throw new ArgumentException(Environment.GetResourceString("Arg_DateTimeRange"));
332throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
341throw new ArgumentOutOfRangeException("millisecond", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, MillisPerSecond - 1));
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"));
1580throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Boolean"));
1585throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Char"));
1590throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "SByte"));
1595throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Byte"));
1600throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Int16"));
1605throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "UInt16"));
1610throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Int32"));
1615throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "UInt32"));
1620throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Int64"));
1625throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "UInt64"));
1630throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Single"));
1635throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Double"));
1640throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Decimal"));
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\decimal.cs (23)
293throw new ArgumentException(Environment.GetResourceString("Arg_DecBitCtor"));
300throw new ArgumentOutOfRangeException("scale", Environment.GetResourceString("ArgumentOutOfRange_DecimalScale"));
317throw new SerializationException(Environment.GetResourceString("Overflow_Decimal"), e);
327throw new SerializationException(Environment.GetResourceString("Overflow_Decimal"), e);
341throw new ArgumentException(Environment.GetResourceString("Arg_DecBitCtor"));
409throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDecimal"));
789throw new ArgumentOutOfRangeException("decimals", Environment.GetResourceString("ArgumentOutOfRange_DecimalRound"));
791throw new ArgumentException(Environment.GetResourceString("Argument_InvalidEnumValue", mode, "MidpointRounding"), "mode");
828throw new OverflowException(Environment.GetResourceString("Overflow_Byte"), e);
830if (temp < Byte.MinValue || temp > Byte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
846throw new OverflowException(Environment.GetResourceString("Overflow_SByte"), e);
848if (temp < SByte.MinValue || temp > SByte.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte"));
862throw new OverflowException(Environment.GetResourceString("Overflow_Int16"), e);
864if (temp < Int16.MinValue || temp > Int16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16"));
916throw new OverflowException(Environment.GetResourceString("Overflow_Int32"));
936throw new OverflowException(Environment.GetResourceString("Overflow_Int64"));
950throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"), e);
952if (temp < UInt16.MinValue || temp > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"));
969throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
985throw new OverflowException(Environment.GetResourceString("Overflow_UInt64"));
1078throw new OverflowException(Environment.GetResourceString("Overflow_Char"), e);
1208throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Decimal", "Char"));
1268throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Decimal", "DateTime"));
system\delegate.cs (28)
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"));
695Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext",
system\diagnostics\contracts\contractsbcl.cs (10)
82System.Runtime.CompilerServices.ContractHelper.TriggerFailure(kind, Environment.GetResourceString("MustUseCCRewrite", contractKind, simpleName), null, null, null);
105throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", failureKind), "failureKind");
343throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", failureKind), "failureKind");
374if (Environment.IsCLRHosted)
418if (Environment.IsCLRHosted)
427if (!Environment.UserInteractive) {
432String windowTitle = Environment.GetResourceString(GetResourceNameForFailure(kind));
490failureMessage = Environment.GetResourceString(resourceName, conditionText);
493failureMessage = Environment.GetResourceString(resourceName);
525Environment.TriggerCodeContractFailure(failureKind, message, conditionText, exceptionAsString);
system\diagnostics\eventing\eventsource.cs (60)
419throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeName"), "eventSourceType");
505throw new ArgumentException(Environment.GetResourceString("EventSource_InvalidCommand"), "command");
682public override string ToString() { return Environment.GetResourceString("EventSource_ToString", Name, Guid); }
1480throw new ArgumentException(Environment.GetResourceString("TraitEven"), "traits");
1483throw new ArgumentException(Environment.GetResourceString("EventSource_NeedGuid"));
1486throw new ArgumentException(Environment.GetResourceString("EventSource_NeedName"));
1520var osVer = Environment.OSVersion.Version.Major * 10 + Environment.OSVersion.Version.Minor;
1913throw new ArgumentException(Environment.GetResourceString("EventSource_NoRelatedActivityId"));
2114System.Diagnostics.Debugger.Log(0, null, Environment.GetResourceString("EventSource_VarArgsParameterMismatch") + "\r\n");
2147ReportOutOfBandMessage(Environment.GetResourceString("EventSource_EventParametersMismatch", eventId, eventDataCount, paramCount), true);
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"));
2702throw new ArgumentException(Environment.GetResourceString("EventSource_SessionIdError",
3032throw new ArgumentException(Environment.GetResourceString("EventSource_EventSourceGuidInUse", m_guid));
3319manifest.ManifestError(Environment.GetResourceString("EventSource_TypeMustDeriveFromEventSource"));
3321manifest.ManifestError(Environment.GetResourceString("EventSource_TypeMustBeSealedOrAbstract"));
3336manifest.ManifestError(Environment.GetResourceString("EventSource_AbstractMustNotDeclareKTOC", nestedType.Name));
3392manifest.ManifestError(Environment.GetResourceString("EventSource_AbstractMustNotDeclareEventMethods", method.Name, eventAttribute.EventId));
3420manifest.ManifestError(Environment.GetResourceString("EventSource_NeedPositiveId", method.Name), true);
3424manifest.ManifestError(Environment.GetResourceString("EventSource_EventMustNotBeExplicitImplementation", method.Name, eventAttribute.EventId));
3478throw new ArgumentException(Environment.GetResourceString("EventSource_StopsFollowStarts"));
3566msg += Environment.NewLine;
3630manifest.ManifestError(Environment.GetResourceString("EventSource_EnumKindMismatch", staticField.Name, staticField.FieldType.Name, providerEnumKind));
3712manifest.ManifestError(Environment.GetResourceString("EventSource_MismatchIdToWriteEvent", evtName, evtId, eventArg), true);
3717manifest.ManifestError(Environment.GetResourceString("EventSource_EventIdReused", evtName, evtId, eventData[evtId].Name), true);
3730manifest.ManifestError(Environment.GetResourceString("EventSource_TaskOpcodePairReused",
3755manifest.ManifestError(Environment.GetResourceString("EventSource_EventMustHaveTaskIfNonDefaultOpcode", evtName, evtId));
3771manifest.ManifestError(Environment.GetResourceString("EventSource_EventNameReused", evtName), true);
3960throw new ArgumentException(Environment.GetResourceString("EventSource_InvalidEventFormat"), "settings");
4591throw new InvalidOperationException(Environment.GetResourceString("EventSource_ListenerCreatedInsideCallback"));
5453af.m_activeActivities[currentActivityId] = Environment.TickCount;
5530activeActivities[EventSource.InternalCurrentThreadActivityId] = Environment.TickCount;
5533activeActivities[*childActivityID] = Environment.TickCount;
5703var tickNow = Environment.TickCount;
6065ManifestError(Environment.GetResourceString("EventSource_IllegalOpcodeValue", name, value));
6068ManifestError(Environment.GetResourceString("EventSource_OpcodeCollision", name, prevName, value));
6077ManifestError(Environment.GetResourceString("EventSource_IllegalTaskValue", name, value));
6080ManifestError(Environment.GetResourceString("EventSource_TaskCollision", name, prevName, value));
6089ManifestError(Environment.GetResourceString("EventSource_KeywordNeedPowerOfTwo", "0x" + value.ToString("x", CultureInfo.CurrentCulture), name), true);
6093ManifestError(Environment.GetResourceString("EventSource_IllegalKeywordsValue", name, "0x" + value.ToString("x", CultureInfo.CurrentCulture)));
6096ManifestError(Environment.GetResourceString("EventSource_KeywordCollision", name, prevName, "0x" + value.ToString("x", CultureInfo.CurrentCulture)));
6111ManifestError(Environment.GetResourceString("EventSource_EventChannelOutOfRange", name, value));
6117ManifestError(Environment.GetResourceString("EventSource_ChannelTypeDoesNotMatchEventChannelValue",
6284ManifestError(Environment.GetResourceString("EventSource_MaxChannelExceeded"));
6564ManifestError(Environment.GetResourceString("EventSource_DuplicateStringKey", key), true);
6626ManifestError(Environment.GetResourceString("EventSource_UndefinedChannel", channel, eventName));
6639ManifestError(Environment.GetResourceString("EventSource_UndefinedChannel", channel, eventName));
6645ManifestError(Environment.GetResourceString("EventSource_EventWithAdminChannelMustHaveMessage", eventName, info.Name));
6692ManifestError(Environment.GetResourceString("EventSource_UndefinedOpcode", opcode, eventName), true);
6714ManifestError(Environment.GetResourceString("EventSource_UndefinedKeyword", "0x" + bit.ToString("x", CultureInfo.CurrentCulture), eventName), true);
6768ManifestError(Environment.GetResourceString("EventSource_UnsupportedEventTypeInManifest", type.Name), true);
6842ManifestError(Environment.GetResourceString("EventSource_UnsupportedMessageProperty", evtName, eventMessage));
system\enum.cs (41)
130throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
237throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
315return new ArgumentException(Environment.GetResourceString(m_failureMessageID));
321return new ArgumentException(Environment.GetResourceString(m_failureMessageID, m_failureMessageFormatArgument));
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");
635throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", valueType.ToString(), enumType.ToString()));
642throw new ArgumentException(Environment.GetResourceString("Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), underlyingType.ToString()));
647throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification"));
669throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification"));
837throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType",
845throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
867throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification"));
883throw new ArgumentException(Environment.GetResourceString("Argument_EnumTypeDoesNotMatch", flag.GetType(), this.GetType()));
948throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
1032throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Enum", "DateTime"));
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\calendar.cs (8)
210throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
249String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Argument_ResultCalendarRange"),
266throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_AddValue"));
655"firstDayOfWeek", Environment.GetResourceString("ArgumentOutOfRange_Range",
668"rule", Environment.GetResourceString("ArgumentOutOfRange_Range",
820Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
842Environment.GetResourceString("ArgumentOutOfRange_Range"), 0, MillisPerSecond - 1));
846throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond"));
system\globalization\compareinfo.cs (31)
149throw new ArgumentException(Environment.GetResourceString("Argument_OnlyMscorlib"));
177throw new ArgumentException(Environment.GetResourceString("Argument_OnlyMscorlib"));
200throw new ArgumentException(Environment.GetResourceString("Argument_CustomCultureCannotBePassedByNumber", "culture"));
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 (18)
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"));
680throw new ArgumentException(Environment.GetResourceString("Argument_InvalidResourceCultureName", cultureName));
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 (71)
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"));
908"value", Environment.GetResourceString("ArgumentOutOfRange_Range",
931throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
936"value", Environment.GetResourceString("ArgumentOutOfRange_Range",
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"));
1405throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 7), "value");
1427throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1430Environment.GetResourceString("ArgumentNull_Array"));
1434throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 7), "value");
1452throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1455Environment.GetResourceString("ArgumentNull_Array"));
1459throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 7), "value");
1477throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1480Environment.GetResourceString("ArgumentNull_Array"));
1484throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 13), "value");
1503throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
1506Environment.GetResourceString("ArgumentNull_Array"));
1510throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 13), "value");
1569"month", Environment.GetResourceString("ArgumentOutOfRange_Range",
1627"dayofweek", Environment.GetResourceString("ArgumentOutOfRange_Range",
1646"dayOfWeek", Environment.GetResourceString("ArgumentOutOfRange_Range",
1753throw new ArgumentException(Environment.GetResourceString("Format_BadFormatSpecifier"), "format");
1763"dayofweek", Environment.GetResourceString("ArgumentOutOfRange_Range",
1778"month", Environment.GetResourceString("ArgumentOutOfRange_Range",
1791"month", Environment.GetResourceString("ArgumentOutOfRange_Range",
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"));
2127throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 13), "value");
2147throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
2151Environment.GetResourceString("ArgumentNull_Array"));
2155throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 13), "value");
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\eastasianlunisolarcalendar.cs (15)
70Environment.GetResourceString("ArgumentOutOfRange_Range", 1, 60));
85Environment.GetResourceString("ArgumentOutOfRange_Range", 1, 60));
125throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
148throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
160String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("ArgumentOutOfRange_CalendarRange"),
172throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
183Environment.GetResourceString("ArgumentOutOfRange_Range", MinEraCalendarYear(era), MaxEraCalendarYear(era)));
195throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month"));
199throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month"));
241Environment.GetResourceString("ArgumentOutOfRange_Day", daysInMonth, month));
249throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
404Environment.GetResourceString("ArgumentOutOfRange_Range", -120000, 120000));
566Environment.GetResourceString("ArgumentOutOfRange_Day", daysInMonth, month));
625Environment.GetResourceString("ArgumentOutOfRange_Range", 99, MaxCalendarYear));
635Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
system\globalization\gregoriancalendar.cs (27)
73Environment.GetResourceString(
137Environment.GetResourceString("ArgumentOutOfRange_Range",
163throw new ArgumentOutOfRangeException("m_type", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
258throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay"));
292Environment.GetResourceString("ArgumentOutOfRange_Range"),
376throw new ArgumentOutOfRangeException("year", Environment.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"));
468throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Range",
475throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
480Environment.GetResourceString("ArgumentOutOfRange_Range", 1, MaxYear));
484throw new ArgumentOutOfRangeException("day", Environment.GetResourceString("ArgumentOutOfRange_Range",
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));
537throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Range",
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\idnmapping.cs (54)
108Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
111Environment.GetResourceString("ArgumentOutOfRange_Index"));
114Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer"));
120if (Environment.IsWindows8OrAbove)
137Environment.GetResourceString("Argument_InvalidCharSequence", unicode.Length-1 ),
149throw new ArgumentException(Environment.GetResourceString(
169throw new ArgumentException(Environment.GetResourceString(
176Environment.GetResourceString("Argument_InvalidCharSequence", unicode.Length - 1),
190throw new ArgumentException(Environment.GetResourceString("Argument_IdnIllegalName"), "unicode");
193throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex"), "unicode");
204throw new ArgumentException(Environment.GetResourceString("Argument_IdnIllegalName"), "unicode");
207throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex"), "unicode");
231Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
234Environment.GetResourceString("ArgumentOutOfRange_Index"));
237Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer"));
244Environment.GetResourceString("Argument_IdnBadPunycode"));
250if (Environment.IsWindows8OrAbove)
260throw new ArgumentException(Environment.GetResourceString(
279throw new ArgumentException(Environment.GetResourceString("Argument_IdnIllegalName"), "ascii");
282throw new ArgumentException(Environment.GetResourceString("Argument_IdnBadPunycode"), "ascii");
293throw new ArgumentException(Environment.GetResourceString("Argument_IdnIllegalName"), "ascii");
296throw new ArgumentException(Environment.GetResourceString("Argument_IdnBadPunycode"), "ascii");
341throw new ArgumentException(Environment.GetResourceString(
354Environment.GetResourceString("Argument_InvalidCharSequence", i ),
367throw new ArgumentException(Environment.GetResourceString(
372throw new ArgumentException(Environment.GetResourceString(
393throw new ArgumentException(Environment.GetResourceString(
398throw new ArgumentException(Environment.GetResourceString(
417throw new ArgumentException(Environment.GetResourceString(
471throw new ArgumentException(Environment.GetResourceString(
563throw new ArgumentException(Environment.GetResourceString(
586throw new ArgumentException(Environment.GetResourceString(
616throw new ArgumentException(Environment.GetResourceString(
637throw new ArgumentException(Environment.GetResourceString(
646throw new ArgumentException(Environment.GetResourceString(
675throw new ArgumentException(Environment.GetResourceString(
762throw new ArgumentException(Environment.GetResourceString(
775throw new ArgumentException(Environment.GetResourceString(
811throw new ArgumentException(Environment.GetResourceString(
817throw new ArgumentException(Environment.GetResourceString(
841throw new ArgumentException(Environment.GetResourceString(
850throw new ArgumentException(Environment.GetResourceString(
884throw new ArgumentException(Environment.GetResourceString(
902throw new ArgumentException(Environment.GetResourceString(
941throw new ArgumentException(Environment.GetResourceString(
949throw new ArgumentException(Environment.GetResourceString(
958throw new ArgumentException(Environment.GetResourceString(
971throw new ArgumentException(Environment.GetResourceString(
987throw new ArgumentException(Environment.GetResourceString(
1005throw new ArgumentException(Environment.GetResourceString(
1050throw new ArgumentException(Environment.GetResourceString(
1062throw new ArgumentException(Environment.GetResourceString(
1069throw new ArgumentException(Environment.GetResourceString(
1082throw new ArgumentException(Environment.GetResourceString(
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\regioninfo.cs (8)
72throw new ArgumentException(Environment.GetResourceString("Argument_NoRegionInvariantCulture"));
89Environment.GetResourceString("Argument_InvalidCultureName"), name), "name");
94throw new ArgumentException(Environment.GetResourceString("Argument_InvalidNeutralRegionName", name), "name");
107throw new ArgumentException(Environment.GetResourceString("Argument_NoRegionInvariantCulture"));
113throw new ArgumentException(Environment.GetResourceString("Argument_CultureIsNeutral", culture), "culture");
119throw new ArgumentException(Environment.GetResourceString("Argument_CustomCultureCannotBePassedByNumber", culture), "culture");
128throw new ArgumentException(Environment.GetResourceString("Argument_CultureIsNeutral", culture), "culture");
338Environment.GetResourceString("Argument_InvalidCultureName"), m_name), "m_name");
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\__error.cs (26)
34throw new EndOfStreamException(Environment.GetResourceString("IO.EOF_ReadBeyondEOF"));
38throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_FileClosed"));
42throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_StreamClosed"));
46throw new NotSupportedException(Environment.GetResourceString("NotSupported_MemStreamNotExpandable"));
50throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_ReaderClosed"));
54throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream"));
58throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream"));
62throw new ArgumentException(Environment.GetResourceString("Arg_WrongAsyncResult"));
67throw new ArgumentException(Environment.GetResourceString("InvalidOperation_EndReadCalledMultiple"));
72throw new ArgumentException(Environment.GetResourceString("InvalidOperation_EndWriteCalledMultiple"));
115path = Environment.GetResourceString("IO.IO_NoPermissionToDirectoryName");
143throw new FileNotFoundException(Environment.GetResourceString("IO.FileNotFound"));
145throw new FileNotFoundException(Environment.GetResourceString("IO.FileNotFound_FileName", str), str);
149throw new DirectoryNotFoundException(Environment.GetResourceString("IO.PathNotFound_NoPathName"));
151throw new DirectoryNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", str));
155throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_IODenied_NoPathName"));
157throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", str));
162throw new IOException(Environment.GetResourceString("IO.IO_AlreadyExists_Name", str), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath);
165throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong"));
168throw new DriveNotFoundException(Environment.GetResourceString("IO.DriveNotFound_Drive", str));
175throw new IOException(Environment.GetResourceString("IO.IO_SharingViolation_NoFileName"), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath);
177throw new IOException(Environment.GetResourceString("IO.IO_SharingViolation_File", str), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath);
182throw new IOException(Environment.GetResourceString("IO.IO_FileExists_Name", str), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath);
205throw new DriveNotFoundException(Environment.GetResourceString("IO.DriveNotFound_Drive", driveName));
214throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnwritableStream"));
218throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_WriterClosed"));
system\io\binaryreader.cs (15)
59throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotReadable"));
240throw new IOException(Environment.GetResourceString("Arg_DecBitCtor"), e);
259throw new IOException(Environment.GetResourceString("IO.IO_InvalidStringLen_Len", stringLength));
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 (28)
106throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_MustBePositive", "bufferSize"));
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\directory.cs (23)
49throw new ArgumentException(Environment.GetResourceString("Argument_PathEmpty"), "path");
67throw new ArgumentException(Environment.GetResourceString("Argument_PathEmpty"));
96throw new ArgumentException(Environment.GetResourceString("Argument_PathEmpty"));
165throw new ArgumentException(Environment.GetResourceString("Argument_PathEmpty"));
230throw new IOException(Environment.GetResourceString("IO.IO_CannotCreateDirectory", path));
327throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong"));
631throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
703throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
777throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
871throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
923throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
977throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
1177throw new ArgumentException(Environment.GetResourceString("Argument_PathEmpty"));
1181throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong"));
1223throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "sourceDirName");
1228throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destDirName");
1235throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong"));
1241throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong"));
1256throw new IOException(Environment.GetResourceString("IO.IO_SourceDestMustBeDifferent"));
1261throw new IOException(Environment.GetResourceString("IO.IO_SourceDestMustHaveSameRoot"));
1273throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", sourceDirName), Win32Native.MakeHRFromErrorCode(hr));
1483throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", userPath));
1502throw new ArgumentException(Environment.GetResourceString("Arg_PathIsVolume"));
system\io\directoryinfo.cs (11)
246throw new ArgumentException(Environment.GetResourceString("Argument_InvalidSubPath", path, displayPath));
350throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
408throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
461throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
507throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
548throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
589throw new ArgumentOutOfRangeException("searchOption", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
644throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destDirName");
669throw new IOException(Environment.GetResourceString("IO.IO_SourceDestMustBeDifferent"));
675throw new IOException(Environment.GetResourceString("IO.IO_SourceDestMustHaveSameRoot"));
687throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", DisplayPath));
system\io\file.cs (43)
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");
185throw new IOException(Environment.GetResourceString("Arg_FileIsDirectory_Name", destFileName), Win32Native.ERROR_ACCESS_DENIED, fullDestFileName);
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 (52)
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"));
676throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFileMode&AccessCombo", mode, access));
679throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFileMode&RightsCombo", mode, fileSystemRights));
693throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFileModeTruncate&RightsCombo", mode, fileSystemRights));
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 (91)
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"));
889throw new FileNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceFileName));
891throw new DirectoryNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceFileName));
894throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
908throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
930throw new FileNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceFileName));
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"));
1014throw new FileNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceFileName));
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"));
1080throw new DirectoryNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceDirectoryName));
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 (20)
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"));
215callstack = Environment.GetStackTrace(null, false);
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");
890String message = Environment.GetResourceString("IO_StreamWriterBufferedDataLost", streamWriter.stream.GetType().FullName, fileName, callStack);
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 (39)
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"));
565throw new ArgumentException(Environment.GetResourceString("Argument_NotEnoughBytesToRead", typeof(T).FullName), "position");
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"));
1049throw new ArgumentException(Environment.GetResourceString("Argument_NotEnoughBytesToWrite", typeof(T).FullName), "position");
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"));
1172throw new ArgumentException(Environment.GetResourceString("Argument_NotEnoughBytesToWrite", "Byte"), "position");
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\ConstructorInfo.cs (15)
361throw new TargetException(Environment.GetResourceString("RFLCT.Targ_StatMethReqTarg"));
363throw new TargetException(Environment.GetResourceString("RFLCT.Targ_ITargMismatch"));
410throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");
425throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");
515throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInReflectionOnly"));
544throw new InvalidOperationException(Environment.GetResourceString("Arg_ReflectionOnlyInvoke"));
549String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Acc_CreateInterfaceEx"), declaringType));
554String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Acc_CreateAbstEx"), declaringType));
574String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Acc_CreateGenericEx"), declaringType));
579throw new MemberAccessException(Environment.GetResourceString("Access_Void"));
588throw new MemberAccessException(Environment.GetResourceString("Acc_NotClassInit"));
614throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName));
647throw new TargetParameterCountException(Environment.GetResourceString("Arg_ParmCnt"));
720throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName));
744throw new TargetParameterCountException(Environment.GetResourceString("Arg_ParmCnt"));
system\reflection\customattribute.cs (10)
284throw new ArgumentException(Environment.GetResourceString("Argument_InvalidKindOfTypeForCA"), "type");
622throw new ArgumentException(Environment.GetResourceString("Argument_InvalidMemberForNamedArgument"));
749throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)encodedType), "encodedType");
795throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)val), "val");
804String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_CATypeResolutionFailed"), typeName));
1600throw new InvalidOperationException(Environment.GetResourceString("Arg_ReflectionOnlyCA"));
1658throw new InvalidOperationException(Environment.GetResourceString("Arg_ReflectionOnlyCA"));
1791String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString(
1822String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString(
2030CultureInfo.CurrentUICulture, Environment.GetResourceString("Format_AttributeUsage"), attributeType));
system\reflection\emit\assemblybuilder.cs (47)
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"));
324throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)access), "access");
562throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
638throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
640throw new ArgumentException(Environment.GetResourceString("Argument_InvalidName"), "name");
714throw new TypeLoadException(Environment.GetResourceString(ResId.MissingType, "SymWriter"));
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(
918throw new TypeLoadException(Environment.GetResourceString("MissingType", "SymWriter"));
978throw new ArgumentException(Environment.GetResourceString("Argument_TypeNotValid"));
984throw new InvalidOperationException(Environment.GetResourceString("Arugment_EmitMixedContext1", type.AssemblyQualifiedName));
987throw new InvalidOperationException(Environment.GetResourceString("Arugment_EmitMixedContext2", type.AssemblyQualifiedName));
1037throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), name);
1041throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "fileName");
1043throw new ArgumentException(Environment.GetResourceString("Argument_NotSimpleFileName"), "fileName");
1057fullFileName = Path.Combine(Environment.CurrentDirectory, 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");
1146fullFileName = Path.Combine(Environment.CurrentDirectory, fileName);
1161throw new FileNotFoundException(Environment.GetResourceString(
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"));
1533strFullFileName = Path.Combine(Environment.CurrentDirectory, resourceFileName);
1544throw new FileNotFoundException(Environment.GetResourceString(
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");
1802throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_AssemblyHasBeenSaved,
1808throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CantSaveTransientAssembly"));
1834m_assemblyData.m_strDir = Environment.CurrentDirectory;
1838throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectory",
system\reflection\emit\dynamicilgenerator.cs (39)
73throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
77throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName));
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");
561throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName));
574throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtField.FullName));
588throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtField.FullName));
591throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName));
602throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName));
614throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName));
617throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName));
628throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName));
640throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName));
643throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName));
659throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName));
761if (!Environment.HasShutdownStarted &&
788if (!Environment.HasShutdownStarted &&
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 (45)
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"));
514sb.Append("Name: " + m_strName + " " + Environment.NewLine);
515sb.Append("Attributes: " + (int)m_iAttributes + Environment.NewLine);
516sb.Append("Method Signature: " + GetMethodSignature() + Environment.NewLine);
517sb.Append(Environment.NewLine);
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"));
1009throw new ArgumentOutOfRangeException("tokenFixups[" + i + "]", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, maxTokenOffset));
1045throw new ArgumentOutOfRangeException("exceptionHandlers[" + i + "]", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, maxOffset));
1053throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeToken", handler.ExceptionTypeToken), "exceptionHandlers[" + i + "]");
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"));
1498throw new ArgumentOutOfRangeException("tryLength", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, Int32.MaxValue - tryOffset));
1503throw new ArgumentOutOfRangeException("handlerLength", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, Int32.MaxValue - handlerOffset));
1510throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeToken", exceptionTypeToken), "exceptionTypeToken");
1517throw new ArgumentOutOfRangeException("kind", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
system\reflection\emit\modulebuilder.cs (40)
134throw new ArgumentException(Environment.GetResourceString("Argument_DuplicateTypeName"));
209throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", method.FullName));
225throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", method.FullName));
248throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtField.FullName));
402Environment.GetResourceString("InvalidOperation_ModuleHasBeenSaved"),
407throw new NotSupportedException(Environment.GetResourceString("NotSupported_GlobalFunctionNotBaked"));
426Environment.GetResourceString("NotSupported_NotAllTypesAreBaked"),
505throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName));
559throw new ArgumentException(Environment.GetResourceString("Argument_InvalidConstructorInfo"));
569throw new ArgumentException(Environment.GetResourceString("Argument_InvalidConstructorInfo"));
679throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAVarArgCallingConvention"));
1308throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadResourceContainer"));
1313throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
1332throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadResourceContainer"));
1361throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadResourceContainer"));
1368throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
1382throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadResourceContainer"));
1406throw new ArgumentException(Environment.GetResourceString("Argument_NativeResourceAlreadyDefined"));
1437throw new ArgumentException(Environment.GetResourceString("Argument_NativeResourceAlreadyDefined"));
1448throw new FileNotFoundException(Environment.GetResourceString(
1494throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_GlobalsHaveBeenCreated"));
1500throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
1503throw new ArgumentException(Environment.GetResourceString("Argument_GlobalFunctionHasToBeStatic"));
1557throw new ArgumentException(Environment.GetResourceString("Argument_GlobalFunctionHasToBeStatic"));
1582throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotADebugModule"));
1618throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_GlobalsHaveBeenCreated"));
1651throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_GlobalsHaveBeenCreated"));
1710throw new ArgumentException(Environment.GetResourceString("Argument_CannotGetTypeTokenForByRef"));
1765throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadTransientModuleReference"));
1843throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotImportGlobalFromDifferentModule"));
1867throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotImportGlobalFromDifferentModule"));
2056throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "methodName");
2059throw new ArgumentException(Environment.GetResourceString("Argument_HasToBeArrayClass"));
2149throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotImportGlobalFromDifferentModule"));
2162throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotImportGlobalFromDifferentModule"));
2346throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotADebugModule"));
2381throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotADebugModule"));
2389throw new InvalidOperationException(Environment.GetResourceString("Argument_NotInTheSameModuleBuilder"));
2401throw new InvalidOperationException(Environment.GetResourceString("Argument_NotInTheSameModuleBuilder"));
2425throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotADebugModule"));
system\reflection\emit\typebuilder.cs (83)
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"));
510throw new ArgumentException(Environment.GetResourceString("Argument_ConstantNotSupported", type.ToString()));
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");
1714throw new ArgumentException(Environment.GetResourceString("Argument_MismatchedArrays", "parameterTypeOptionalCustomModifiers", "parameterTypes"));
1717throw new ArgumentException(Environment.GetResourceString("Argument_MismatchedArrays", "parameterTypeRequiredCustomModifiers", "parameterTypes"));
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"));
2425Environment.GetResourceString("InvalidOperation_BadEmptyMethodBody", meth.Name) );
2493throw new ArgumentException(Environment.GetResourceString("Argument_CannotSetParentToInterface"));
2506throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadInterfaceNotAbstract"));
system\reflection\module.cs (29)
654throw new ArgumentException(Environment.GetResourceString("Argument_InvalidGenericInstArray"));
657throw new ArgumentException(Environment.GetResourceString("Argument_InvalidGenericInstArray"));
659throw new ArgumentException(Environment.GetResourceString("Argument_InvalidGenericInstArray"));
672Environment.GetResourceString("Argument_InvalidToken", tk, this));
675throw new ArgumentException(Environment.GetResourceString("Argument_InvalidToken", tk, this),
699Environment.GetResourceString("Argument_InvalidToken", tk, this));
710Environment.GetResourceString("Argument_ResolveMethod", tk, this));
718Environment.GetResourceString("Argument_ResolveMethod", tk, this));
739throw new ArgumentException(Environment.GetResourceString("Argument_BadImageFormatExceptionResolve"), e);
750String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_InvalidToken", tk, this)));
771throw new ArgumentException(Environment.GetResourceString("Argument_ResolveField", tk, this), "metadataToken");
782Environment.GetResourceString("Argument_InvalidToken", tk, this));
795Environment.GetResourceString("Argument_ResolveField", tk, this));
803Environment.GetResourceString("Argument_ResolveField", tk, this));
826throw new ArgumentException(Environment.GetResourceString("Argument_BadImageFormatExceptionResolve"), e);
836throw new ArgumentException(Environment.GetResourceString("Argument_ResolveModuleType", tk), "metadataToken");
840Environment.GetResourceString("Argument_InvalidToken", tk, this));
843throw new ArgumentException(Environment.GetResourceString("Argument_ResolveType", tk, this), "metadataToken");
853throw new ArgumentException(Environment.GetResourceString("Argument_ResolveType", tk, this), "metadataToken");
859throw new ArgumentException(Environment.GetResourceString("Argument_BadImageFormatExceptionResolve"), e);
869throw new ArgumentException(Environment.GetResourceString("InvalidOperation_PropertyInfoNotAvailable"));
872throw new ArgumentException(Environment.GetResourceString("InvalidOperation_EventInfoNotAvailable"));
887Environment.GetResourceString("Argument_InvalidToken", tk, this));
905Environment.GetResourceString("Argument_ResolveMember", tk, this));
914String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_ResolveString"), metadataToken, ToString()));
918String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_InvalidToken", tk, this)));
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\resources\manifestbasedresourcegroveler.cs (14)
243throw new ArgumentException(Environment.GetResourceString("Arg_InvalidNeutralResourcesLanguage_FallbackLoc", fallback));
273throw new ArgumentException(Environment.GetResourceString("Arg_InvalidNeutralResourcesLanguage_Asm_Culture", a.ToString(), cultureName), e);
327throw new NotSupportedException(Environment.GetResourceString("NotSupported_ObsoleteResourcesFile", _mediator.MainAssembly.GetSimpleName()));
424throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResMgrBadResSet_Type", _mediator.UserResourceSet.AssemblyQualifiedName), e);
486throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_MultipleBlobs", givenName, satellite.ToString()));
570Contract.Assert(false, "[This assert catches satellite assembly build/deployment problems - report this message to your build lab & loc engineer]" + Environment.NewLine + "GetSatelliteAssembly failed for culture " + lookForCulture.Name + " and version " + (_mediator.SatelliteContractVersion == null ? _mediator.MainAssembly.GetVersion().ToString() : _mediator.SatelliteContractVersion.ToString()) + " of assembly " + _mediator.MainAssembly.GetSimpleName() + " with error code 0x" + hr.ToString("X", CultureInfo.InvariantCulture) + Environment.NewLine + "Exception: " + fle);
577Contract.Assert(false, "[This assert catches satellite assembly build/deployment problems - report this message to your build lab & loc engineer]" + Environment.NewLine + "GetSatelliteAssembly failed for culture " + lookForCulture.Name + " and version " + (_mediator.SatelliteContractVersion == null ? _mediator.MainAssembly.GetVersion().ToString() : _mediator.SatelliteContractVersion.ToString()) + " of assembly " + _mediator.MainAssembly.GetSimpleName() + Environment.NewLine + "Exception: " + bife);
665throw new MissingSatelliteAssemblyException(Environment.GetResourceString("MissingSatelliteAssembly_Culture_Name", _mediator.NeutralResourcesCulture, satAssemName), missingCultureName);
675Contract.Assert(false, "Couldn't get mscorlib" + ResourceManager.ResFileExtension + " from mscorlib's assembly" + Environment.NewLine + Environment.NewLine + "Are you building the runtime on your machine? Chances are the BCL directory didn't build correctly. Type 'build -c' in the BCL directory. If you get build errors, look at buildd.log. If you then can't figure out what's wrong (and you aren't changing the assembly-related metadata code), ask a BCL dev.\n\nIf you did NOT build the runtime, you shouldn't be seeing this and you've found a bug.");
679System.Environment.FailFast(mesgFailFast);
687throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_NoNeutralAsm", resName, _mediator.MainAssembly.GetSimpleName()));
system\resources\resourcemanager.cs (12)
363throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"));
400throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"));
406throw new ArgumentException(Environment.GetResourceString("Arg_ResMgrNotResSet"), "usingResourceSet");
427throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
872throw new ArgumentNullException("a", Environment.GetResourceString("ArgumentNull_Assembly"));
910throw new ArgumentException(Environment.GetResourceString("Arg_InvalidSatelliteContract_Asm_Ver", a.ToString(), v), e);
1275throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_ResWFileNotLoaded", _PRIExceptionInfo._ResWFile, _PRIExceptionInfo._PackageSimpleName));
1277throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_NoPRIresources"));
1467throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotStream_Name", name));
1568throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTag", Path.GetFileName(fileName), assemblyNode.Name));
1571throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTagNoAttr", Path.GetFileName(fileName)));
1576throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTagBadAttr", Path.GetFileName(fileName), de.Key, de.Value));
system\resources\resourcereader.cs (58)
185throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotReadable"));
266throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_NegativeStringLength"));
295throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesNameInvalidOffset", r));
308throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
388throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataPos));
408throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_NegativeStringLength"));
415throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesNameTooLong"));
430throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceNameCorrupted"));
452throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_NegativeStringLength"));
457throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesIndexTooLong", index));
478throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataOffset));
491throw new EndOfStreamException(Environment.GetResourceString("BadImageFormat_ResourceNameCorrupted_NameIndex", index));
496throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataOffset));
515throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataPos));
540throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Type", FindType(typeIndex).FullName));
551throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Type", typeString));
594throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_TypeMismatch"), eof);
597throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_TypeMismatch"), e);
670throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_TypeMismatch"), eof);
673throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_TypeMismatch"), e);
743throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
748throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
754throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
766throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
776throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
788throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_TypeMismatch"));
847throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResType&SerBlobMismatch", type.FullName, graph.GetType().FullName));
875throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"), eof);
878throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"), e);
889throw new ArgumentException(Environment.GetResourceString("Resources_StreamNotValid"));
897throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
913throw new NotSupportedException(Environment.GetResourceString("NotSupported_WrongResourceReader_Type", readerType));
923throw new ArgumentException(Environment.GetResourceString("Arg_ResourceFileUnsupportedVersion", RuntimeResourceSet.Version, version));
948throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
960throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1009throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1034throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1045throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1061throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1069throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1081throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_InvalidType"));
1190throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
1199throw new ArgumentException(Environment.GetResourceString("Arg_ResourceNameNotExist", resourceName));
1209throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesNameInvalidOffset", numBytesToSkip));
1215throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dPos));
1231throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_InvalidType"));
1240throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourceNameCorrupted"));
1329throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResType&SerBlobMismatch", _typeToDeserialize.FullName, typeName));
1367if (_currentName == ENUM_DONE) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
1368if (!_currentIsValid) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
1369if (_reader._resCache == null) throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
1391if (_currentName == ENUM_DONE) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
1392if (!_currentIsValid) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
1393if (_reader._resCache == null) throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
1423if (_currentName == ENUM_DONE) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
1424if (!_currentIsValid) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
1425if (_reader._resCache == null) throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
1437if (_reader._resCache == null) throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
system\rttype.cs (69)
2050CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2078CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2100CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveMethodHandle"),
2170CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_ResolveFieldHandle"),
2204Environment.GetResourceString("Argument_NeverValidGenericArgument", type.ToString()));
2224Environment.GetResourceString("Argument_NotEnoughGenArguments", genericArguments.Length, genericParamters.Length));
2262Environment.GetResourceString("Argument_GenConstraintViolation",
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");
4119throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", valueType.ToString(), this.ToString()));
4140throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), underlyingType.ToString()));
4151throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), GetEnumUnderlyingType()));
4155throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
4168throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnumBaseTypeOrEnum"), "value");
4211Environment.GetResourceString("Arg_NotGenericTypeDefinition", this));
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"));
5166Environment.GetResourceString("Acc_CreateGenericEx", this));
5172throw new NotSupportedException(Environment.GetResourceString("Acc_CreateArgIterator"));
5175throw new NotSupportedException(Environment.GetResourceString("Acc_CreateVoid"));
5253throw new MissingMethodException(Environment.GetResourceString("MissingConstructor_Name", FullName));
5275throw new MissingMethodException(Environment.GetResourceString("MissingConstructor_Name", FullName));
5317Environment.GetResourceString("NotSupported_CallToVarArg")));
5467throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", this.FullName));
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 (32)
220throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "t");
222throw new ArgumentException(Environment.GetResourceString("Argument_NeedNonGenericType"), "t");
287throw new ArgumentException(Environment.GetResourceString("Argument_OffsetOfFieldNotFound", t.FullName), "fieldName");
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\registrationservices.cs (18)
106throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_AsmLoadedForReflectionOnly"));
111throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"));
116throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NoAsmName"));
124throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NoAsmCodeBase"));
169throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_AsmLoadedForReflectionOnly"));
174throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"));
230throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"), "assembly");
267throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"),"type");
269throw new ArgumentException(Environment.GetResourceString("Argument_TypeMustBeComCreatable"),"type");
323throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"),"type");
325throw new ArgumentException(Environment.GetResourceString("Argument_TypeMustBeComCreatable"),"type");
872throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_PIAMustBeStrongNamed"));
1024throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NonStaticComRegFunction",CurrentMethod.Name,currType.Name));
1026throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NonStaticComUnRegFunction",CurrentMethod.Name,currType.Name));
1037throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_InvalidComRegFunctionSig",CurrentMethod.Name,currType.Name));
1039throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_InvalidComUnRegFunctionSig",CurrentMethod.Name,currType.Name));
1046throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MultipleComRegFunctions",currType.Name));
1048throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MultipleComUnRegFunctions",currType.Name));
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\interopservices\windowsruntime\clripropertyvalueimpl.cs (25)
135throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Char16"), __HResults.TYPE_E_TYPEMISMATCH);
144throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Boolean"), __HResults.TYPE_E_TYPEMISMATCH);
159throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Inspectable"), __HResults.TYPE_E_TYPEMISMATCH);
176throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "DateTime"), __HResults.TYPE_E_TYPEMISMATCH);
185throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "TimeSpan"), __HResults.TYPE_E_TYPEMISMATCH);
195throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Point"), __HResults.TYPE_E_TYPEMISMATCH);
206throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Size"), __HResults.TYPE_E_TYPEMISMATCH);
217throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Rect"), __HResults.TYPE_E_TYPEMISMATCH);
281throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Char16[]"), __HResults.TYPE_E_TYPEMISMATCH);
290throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Boolean[]"), __HResults.TYPE_E_TYPEMISMATCH);
305throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Inspectable[]"), __HResults.TYPE_E_TYPEMISMATCH);
320throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "DateTimeOffset[]"), __HResults.TYPE_E_TYPEMISMATCH);
329throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "TimeSpan[]"), __HResults.TYPE_E_TYPEMISMATCH);
339throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Point[]"), __HResults.TYPE_E_TYPEMISMATCH);
350throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Size[]"), __HResults.TYPE_E_TYPEMISMATCH);
362throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Rect[]"), __HResults.TYPE_E_TYPEMISMATCH);
377throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, typeof(T).MakeArrayType().Name), __HResults.TYPE_E_TYPEMISMATCH);
391Exception e = new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueArrayCoersion", this.Type, typeof(T).MakeArrayType().Name, i, elementCastException.Message), elementCastException);
414throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH);
437throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH);
440throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH);
443throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueCoersion", type, value, typeof(T).Name), __HResults.DISP_E_OVERFLOW);
483throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH);
518throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", _data.GetType(), expectedBoxedType.Name), __HResults.TYPE_E_TYPEMISMATCH);
540throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", _data.GetType(), expectedArrayElementType.MakeArrayType().Name), __HResults.TYPE_E_TYPEMISMATCH);
system\runtime\remoting\configuration.cs (22)
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(
1563Environment.GetResourceString("Remoting_WellKnown_MustBeMBR",
1633CultureInfo.CurrentCulture, Environment.GetResourceString(
1711Environment.GetResourceString("Remoting_AssemblyLoadFailed",
1719Environment.GetResourceString("Remoting_BadType",
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 (15)
386Environment.GetResourceString("Remoting_AssemblyLoadFailed",
394Environment.GetResourceString("Remoting_BadType",
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 (17)
219CultureInfo.CurrentCulture, Environment.GetResourceString(
386CultureInfo.CurrentCulture, Environment.GetResourceString(
959CultureInfo.CurrentCulture, Environment.GetResourceString(
982throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:hexBinary", value));
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(
1618throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:normalizedString", value));
1676throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:token", value));
1681throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:token", value));
1686throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:token", value));
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (10)
154throw new SerializationException(Environment.GetResourceString("Serialization_NonSerType",
317throw new SecurityException(Environment.GetResourceString("Serialization_RequireFullTrust", objectType));
415throw new SerializationException(Environment.GetResourceString("Serialization_SerMemberInfo",objMember.GetType()));
430throw new SerializationException(Environment.GetResourceString("Serialization_ISerializableMemberInfo"));
656throw new SerializationException(Environment.GetResourceString("Serialization_MemberInfo",objectType+" "+name));
658throw new SerializationException(Environment.GetResourceString("Serialization_NoMemberInfo",objectType+" "+name));
681throw new SerializationException(Environment.GetResourceString("Serialization_ISerializableTypes",objectType+" "+name));
813throw new SerializationException(Environment.GetResourceString("Serialization_ISerializableTypes",objectType));
859throw new SerializationException(Environment.GetResourceString("Serialization_MissingMember", cache.memberNames[i], objectType, typeof(OptionalFieldAttribute).FullName));
887throw new SerializationException(Environment.GetResourceString("Serialization_SerMemberInfo",objMember.GetType()));
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (11)
114throw new ArgumentNullException("stream", Environment.GetResourceString("ArgumentNull_Stream"));
146throw new ArgumentNullException("serParser", Environment.GetResourceString("ArgumentNull_WithParamName", serParser));
187throw new SerializationException(Environment.GetResourceString("Serialization_TopObject"));
336throw new SerializationException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Serialization_NonSerType"),
412throw new SerializationException(Environment.GetResourceString("Serialization_XMLElement", pr.PRname));
424throw new SerializationException(Environment.GetResourceString("Serialization_ParseError",onStack.PRname+" "+((Enum)onStack.PRparseTypeEnum) + " "+processing.PRname+" "+((Enum)processing.PRparseTypeEnum)));
461throw new ArgumentException(Environment.GetResourceString("Serialization_MBRAsMBV", t.FullName));
549throw new SerializationException(Environment.GetResourceString("Serialization_TopObjectInstantiate",pr.PRdtType));
805throw new SerializationException(Environment.GetResourceString("Serialization_ArrayType",((Enum)pr.PRarrayTypeEnum)));
961throw new SerializationException(Environment.GetResourceString("Serialization_ArrayTypeObject"));
1153throw new SerializationException(Environment.GetResourceString("Serialization_TypeMissing", pr.PRname));
system\runtime\serialization\formatters\binary\binaryparser.cs (21)
181throw new SerializationException(Environment.GetResourceString("Serialization_BinaryHeader",inByte));
188throw new SerializationException(Environment.GetResourceString("Serialization_TypeExpected"));
257throw new SerializationException(Environment.GetResourceString("Serialization_StreamEnd"));
405throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError","String", crossAppDomainAssembly.assemblyIndex));
453throw new SerializationException(Environment.GetResourceString("Serialization_Map",binaryObject.mapId));
494throw new SerializationException(Environment.GetResourceString("Serialization_Map",((Enum)objectOp.objectTypeEnum).ToString()));
538throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError","BinaryObjectMap", mapObject));
570throw new SerializationException(Environment.GetResourceString("Serialization_Assembly",record.name));
575throw new SerializationException(Environment.GetResourceString("Serialization_Assembly",record.assemId+" "+record.name));
625throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
670throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyId",record.name));
674throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyId",record.assemId+" "+record.name));
720throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
760throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError","String", crossAppDomainString.value));
807throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
864throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
887throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyId",record.typeInformation));
931throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
985throw new SerializationException(Environment.GetResourceString("Serialization_ArrayType",((Enum)record.binaryArrayTypeEnum).ToString()));
1171throw new SerializationException(Environment.GetResourceString("Serialization_StreamEnd"));
1230throw new SerializationException(Environment.GetResourceString("Serialization_TypeCode",((Enum)code).ToString()));
system\runtime\serialization\formatterservices.cs (13)
98throw new SerializationException(Environment.GetResourceString("Serialization_NonSerType", type.FullName, type.Module.Assembly.FullName));
117throw new SerializationException(Environment.GetResourceString("Serialization_NonSerType", parentType.FullName, parentType.Module.Assembly.FullName));
193throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString()));
218throw new SecurityException(Environment.GetResourceString("Serialization_TypeSecurity", advancedTypes[i].FullName, t.FullName));
239throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString()));
253throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString()));
266throw new SerializationException(Environment.GetResourceString("Serialization_Security", type.FullName), e);
319throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFieldInfo"));
340throw new ArgumentException(Environment.GetResourceString("Argument_DataLengthDifferent"));
352throw new ArgumentNullException("members", Environment.GetResourceString("ArgumentNull_NullMember", i));
362throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMemberInfo"));
401throw new ArgumentNullException("members", Environment.GetResourceString("ArgumentNull_NullMember", i));
416throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMemberInfo"));
system\runtime\serialization\objectmanager.cs (32)
238throw new SerializationException(Environment.GetResourceString("Serialization_NeverSeen", fixup.m_id));
241throw new SerializationException(Environment.GetResourceString("Serialization_IORIncomplete", fixup.m_id));
243throw new SerializationException(Environment.GetResourceString("Serialization_ObjectNotSupplied", fixup.m_id));
262throw new SerializationException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Serialization_NotCyclicallyReferenceableSurrogate"), surrogate.GetType().FullName));
327throw new SerializationException(Environment.GetResourceString("Serialization_TooManyReferences"));
502throw new SerializationException(Environment.GetResourceString("Serialization_MissingObject", holder.m_id));
514throw new SerializationException(Environment.GetResourceString("Serialization_InvalidFixupDiscovered"));
565throw new SerializationException(Environment.GetResourceString("Serialization_TypeLoadFailure", holder.TypeLoadException.TypeName));
580throw new SerializationException(Environment.GetResourceString("Serialization_ValueTypeFixup"));
604throw new SerializationException(Environment.GetResourceString("Serialization_PartialValueTypeFixup"));
613throw new SerializationException(Environment.GetResourceString("Serialization_UnableToFixup"));
617throw new SerializationException(Environment.GetResourceString("Serialization_UnableToFixup"));
691throw new ArgumentOutOfRangeException("objectID", Environment.GetResourceString("ArgumentOutOfRange_ObjectID"));
745throw new ArgumentOutOfRangeException("objectID", Environment.GetResourceString("ArgumentOutOfRange_ObjectID"));
750throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMemberInfo"));
803throw new SerializationException(Environment.GetResourceString("Serialization_RegisterTwice"));
863throw new ArgumentException(Environment.GetResourceString("Serialization_NotISer"));
881throw new SerializationException(Environment.GetResourceString("Serialization_ConstructorNotFound", t), e);
899throw new SerializationException(Environment.GetResourceString("Serialization_ConstructorNotFound", t.FullName));
927throw new SerializationException(Environment.GetResourceString("Serialization_ObjectNotSupplied", temp.m_id));
954throw new SerializationException(Environment.GetResourceString("Serialization_TypeLoadFailure", ((TypeLoadExceptionHolder)TopObject).TypeName));
977throw new SerializationException(Environment.GetResourceString("Serialization_IncorrectNumberOfFixups"));
995throw new SerializationException(Environment.GetResourceString("Serialization_InvalidFixupType"));
1015Environment.GetResourceString("Serialization_IdTooSmall"));
1024throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", member.GetType().ToString()));
1047Environment.GetResourceString("Serialization_IdTooSmall"));
1082Environment.GetResourceString("Serialization_IdTooSmall"));
1196throw new SerializationException(Environment.GetResourceString("Serialization_ParentChildIdentical"));
1344throw new SerializationException(Environment.GetResourceString("Serialization_ParentChildIdentical"));
1620throw new SerializationException(Environment.GetResourceString("Serialization_TooManyElements"));
1709throw new SerializationException(Environment.GetResourceString("Serialization_TooManyElements"));
1754throw new SerializationException(Environment.GetResourceString("Serialization_TooManyElements"));
system\runtime\versioning\resourceattributes.cs (6)
119throw new ArgumentException(Environment.GetResourceString("Argument_ResourceScopeWrongDirection", fromResType, toResType), "from");
124throw new ArgumentNullException("type", Environment.GetResourceString("ArgumentNull_TypeRequiredByResourceScope"));
184throw new ArgumentException(Environment.GetResourceString("Argument_BadResourceScopeTypeBits", consumeAsScope), "consumeAsScope");
198throw new ArgumentException(Environment.GetResourceString("Argument_BadResourceScopeTypeBits", calleeScope), "calleeScope");
217throw new ArgumentException(Environment.GetResourceString("Argument_BadResourceScopeVisibilityBits", consumeAsScope), "consumeAsScope");
231throw new ArgumentException(Environment.GetResourceString("Argument_BadResourceScopeVisibilityBits", calleeScope), "calleeScope");
system\runtimehandles.cs (17)
38throw new ArgumentNullException(null, Environment.GetResourceString("Arg_InvalidHandle"));
48throw new ArgumentNullException(null, Environment.GetResourceString("Arg_InvalidHandle"));
616throw new TypeLoadException(Environment.GetResourceString("Arg_TypeLoadNullStr"));
828throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericParameter"));
891throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState"));
902throw new SerializationException(Environment.GetResourceString("Serialization_InvalidFieldState"));
1019throw new ArgumentNullException(null, Environment.GetResourceString("Arg_InvalidHandle"));
1060throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState"));
1071throw new SerializationException(Environment.GetResourceString("Serialization_InvalidFieldState"));
1606throw new ArgumentNullException(null, Environment.GetResourceString("Arg_InvalidHandle"));
1802throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState"));
1807throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState"));
1818throw new SerializationException(Environment.GetResourceString("Serialization_InvalidFieldState"));
1908throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullModuleHandle"));
1928Environment.GetResourceString("Argument_InvalidToken", typeToken, new ModuleHandle(module)));
1986Environment.GetResourceString("Argument_InvalidToken", methodToken, new ModuleHandle(module)));
2017Environment.GetResourceString("Argument_InvalidToken", fieldToken, new ModuleHandle(module)));
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\accesscontrol\rules.cs (9)
45Environment.GetResourceString( "Argument_ArgumentZero" ),
53Environment.GetResourceString( "Argument_InvalidEnumValue", inheritanceFlags, "InheritanceFlags" ));
60Environment.GetResourceString( "Argument_InvalidEnumValue", inheritanceFlags, "PropagationFlags" ));
67Environment.GetResourceString("Arg_MustBeIdentityReferenceType"),
143Environment.GetResourceString( "ArgumentOutOfRange_Enum" ));
150Environment.GetResourceString( "Argument_InvalidEnumValue", inheritanceFlags, "InheritanceFlags" ));
157Environment.GetResourceString( "Argument_InvalidEnumValue", inheritanceFlags, "PropagationFlags" ));
258Environment.GetResourceString( "Arg_EnumAtLeastOneFlag" ),
265Environment.GetResourceString( "ArgumentOutOfRange_Enum" ));
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\cryptography\dsa.cs (8)
166throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","P"));
173throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","Q"));
180throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","G"));
187throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","Y"));
207throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","Seed"));
209throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","PgenCounter"));
275return new NotImplementedException(Environment.GetResourceString("NotSupported_SubclassOverride"));
280return new ArgumentException(Environment.GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty"), "hashAlgorithm");
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\permissions\principalpermission.cs (5)
145throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState"));
260Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
277Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
379Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
457throw new SecurityException(Environment.GetResourceString("Security_PrincipalPermission"), name, null, null, null, SecurityAction.Demand, this, this, evid);
system\security\policy\policylevel.cs (59)
101if(m_label.Equals(Environment.GetResourceString("Policy_PL_User")))
103else if(m_label.Equals(Environment.GetResourceString("Policy_PL_Machine")))
105else if(m_label.Equals(Environment.GetResourceString("Policy_PL_Enterprise")))
107else if(m_label.Equals(Environment.GetResourceString("Policy_PL_AppDomain")))
110throw new ArgumentException(Environment.GetResourceString("Policy_Default"));
116return Environment.GetResourceString("Policy_PL_User");
118return Environment.GetResourceString("Policy_PL_Machine");
120return Environment.GetResourceString("Policy_PL_Enterprise");
122return Environment.GetResourceString("Policy_PL_AppDomain");
124throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)m_type));
283throw new ArgumentException(Environment.GetResourceString("Argument_AssemblyAlreadyFullTrust"));
320throw new ArgumentException(Environment.GetResourceString("Argument_AssemblyNotFullTrust"));
349throw new ArgumentException(Environment.GetResourceString("Argument_DuplicateName"));
380throw new ArgumentException(Environment.GetResourceString("Argument_ReservedNPMS", name));
396throw new ArgumentException(Environment.GetResourceString("Argument_NoNPMS"));
409throw new ArgumentException(Environment.GetResourceString("Argument_NPMSInUse", name));
437throw new ArgumentException(Environment.GetResourceString("Argument_ReservedNPMS", name));
445throw new ArgumentException(Environment.GetResourceString("Argument_NoNPMS"));
484throw new PolicyException(Environment.GetResourceString("Policy_RecoverNotFileBased"));
489throw new PolicyException(Environment.GetResourceString("Policy_RecoverNoConfigFile"));
638throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", "CodeGroup", this.GetType().FullName));
642throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", "CodeGroup", this.GetType().FullName));
842exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParseEx", Label, message));
847exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label));
853exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label));
859exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label));
865exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label));
875exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label));
880exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label));
954if (Environment.GetCompatibilityFlag(CompatibilityFlag.FullTrustListAssembliesInGac)) {
973group.Name = Environment.GetResourceString("Policy_AllCode_Name");
974group.Description = Environment.GetResourceString("Policy_AllCode_DescriptionFullTrust");
982root.Name = Environment.GetResourceString("Policy_AllCode_Name");
983root.Description = Environment.GetResourceString("Policy_AllCode_DescriptionNothing");
987myComputerCodeGroup.Name = Environment.GetResourceString("Policy_MyComputer_Name");
988myComputerCodeGroup.Description = Environment.GetResourceString("Policy_MyComputer_Description");
994microsoft.Name = Environment.GetResourceString("Policy_Microsoft_Name");
995microsoft.Description = Environment.GetResourceString("Policy_Microsoft_Description");
1003ecma.Name = Environment.GetResourceString("Policy_Ecma_Name");
1004ecma.Description = Environment.GetResourceString("Policy_Ecma_Description");
1012intranet.Name = Environment.GetResourceString("Policy_Intranet_Name");
1013intranet.Description = Environment.GetResourceString("Policy_Intranet_Description");
1016intranetNetCode.Name = Environment.GetResourceString("Policy_IntranetNet_Name");
1017intranetNetCode.Description = Environment.GetResourceString("Policy_IntranetNet_Description");
1021intranetFileCode.Name = Environment.GetResourceString("Policy_IntranetFile_Name");
1022intranetFileCode.Description = Environment.GetResourceString("Policy_IntranetFile_Description");
1029internet.Name = Environment.GetResourceString("Policy_Internet_Name");
1030internet.Description = Environment.GetResourceString("Policy_Internet_Description");
1033internetNet.Name = Environment.GetResourceString("Policy_InternetNet_Name");
1034internetNet.Description = Environment.GetResourceString("Policy_InternetNet_Description");
1041untrusted.Name = Environment.GetResourceString("Policy_Untrusted_Name");
1042untrusted.Description = Environment.GetResourceString("Policy_Untrusted_Description");
1047trusted.Name = Environment.GetResourceString("Policy_Trusted_Name");
1048trusted.Description = Environment.GetResourceString("Policy_Trusted_Description");
1050trustedNet.Name = Environment.GetResourceString("Policy_TrustedNet_Name");
1051trustedNet.Description = Environment.GetResourceString("Policy_TrustedNet_Description");
1234throw new PolicyException(Environment.GetResourceString("Policy_NonFullTrustAssembly"));
1276throw new PolicyException(Environment.GetResourceString("Policy_MultipleExclusive"));
1417throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EmptyStack"));
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 (19)
210Environment.GetResourceString( "IdentityReference_InvalidNumberOfSubauthorities", MaxSubAuthorities));
223Environment.GetResourceString( "IdentityReference_IdentifierAuthorityTooLarge" ));
298Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" ));
309Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" ));
327Environment.GetResourceString( "IdentityReference_InvalidSidRevision" ),
338Environment.GetResourceString( "IdentityReference_InvalidNumberOfSubauthorities", MaxSubAuthorities ),
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" );
503throw new ArgumentNullException( "domainSid", Environment.GetResourceString( "IdentityReference_DomainSidRequired", 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 (15)
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 ) );
700func( obj, Environment.NewLine );
728func( obj, Environment.NewLine );
746func( obj, Environment.NewLine );
766func( obj, Environment.NewLine );
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 (64)
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"));
1017throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", options));
1058Environment.GetResourceString("ArgumentOutOfRange_NegativeCount"));
1062throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)options));
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"));
1661throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", "count"));
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 (62)
122Environment.GetResourceString("ArgumentOutOfRange_MustBePositive", "capacity"));
126Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", "length"));
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"));
166Environment.GetResourceString("ArgumentOutOfRange_MustBePositive", "capacity"));
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"));
744return Append(Environment.NewLine);
751return Append(Environment.NewLine);
762throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("Arg_NegativeArgCount"));
767Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", "destinationIndex"));
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\eventwaithandle.cs (10)
61throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name));
76throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag",name));
85throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle",name));
107throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name));
136throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag",name));
147throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle",name));
187throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", name));
225throw new ArgumentNullException("name", Environment.GetResourceString("ArgumentNull_WithParamName"));
230throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name");
235throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name));
system\threading\Tasks\Task.cs (30)
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"));
3310uint startTimeTicks = infiniteWait ? 0 : (uint)Environment.TickCount;
3324uint elapsedTimeTicks = ((uint)Environment.TickCount) - startTimeTicks;
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 (20)
84if (Environment.IsWindows8OrAbove)
97return Environment.TickCount;
568throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_Generic"));
767if (Environment.HasShutdownStarted || AppDomain.CurrentDomain.IsFinalizingForUnload())
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 (70)
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");
891throw new ArgumentException(Environment.GetResourceString("Argument_InvalidSerializedString", source), "source");
1224throw new SerializationException(Environment.GetResourceString("Serialization_CorruptField", "SupportsDaylightSavingTime"));
1228throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
1231throw new SerializationException(Environment.GetResourceString("Serialization_InvalidData"), e);
1957throw new TimeZoneNotFoundException(Environment.GetResourceString("TimeZoneNotFound_MissingRegistryData", id));
1975throw new InvalidTimeZoneException(Environment.GetResourceString("InvalidTimeZone_InvalidRegistryData", id), e);
1978throw new SecurityException(Environment.GetResourceString("Security_CannotReadRegistryData", id), e);
1981throw new TimeZoneNotFoundException(Environment.GetResourceString("TimeZoneNotFound_MissingRegistryData", id), e);
2591string system32 = Environment.UnsafeGetFolderPath(Environment.SpecialFolder.System);
2939throw new ArgumentException(Environment.GetResourceString("Argument_InvalidId", id), "id");
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);
3716throw new SerializationException(Environment.GetResourceString("Serialization_InvalidEscapeSequence", c));
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"));
3867throw new SerializationException(Environment.GetResourceString("Serialization_InvalidEscapeSequence", String.Empty));
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\tuple.cs (9)
119throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
209throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
314throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
430throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
557throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
695throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
844throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
969throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleLastArgumentNotATuple"));
1008throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
system\type.cs (20)
346throw new ArgumentNullException(null, Environment.GetResourceString("Arg_InvalidHandle"));
388throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride"));
770throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride"));
1185get {throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericParameter")); }
1217throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericParameter"));
1319throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride"));
1346throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride"));
1365throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride"));
1389throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1403throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1471throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1476throw new ArgumentException(Environment.GetResourceString("Argument_InvalidEnum"), "enumType");
1487throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1497throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", valueType.ToString(), this.ToString()));
1518throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), underlyingType.ToString()));
1527throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), GetEnumUnderlyingType()));
1531throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_UnknownEnumType"));
1541throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnum"), "enumType");
1547throw new ArgumentException(Environment.GetResourceString("Arg_MustBeEnumBaseTypeOrEnum"), "value");
1833throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride"));
system\version.cs (17)
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"));
299throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper", "0", "2"), "fieldCount");
313throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper", "0", "3"), "fieldCount");
328throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper", "0", "4"), "fieldCount");
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"));
compmod\system\codedom\compiler\Executor.cs (4)
76return ExecWaitWithCapture(null, cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName, null);
94return ExecWaitWithCapture(new SafeUserTokenHandle(userToken, false), cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName, null);
103return ExecWaitWithCapture(new SafeUserTokenHandle(userToken, false), cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName, null);
201foreach ( DictionaryEntry entry in Environment.GetEnvironmentVariables () )