6258 references to Environment
ComSvcConfig (5)
ComplusEndpointConfigContainer.cs (3)
421programFiles = Environment.GetEnvironmentVariable("ProgramFiles(x86)"); 423programFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
Tool.cs (2)
917if ((Environment.OSVersion.Version.Major == 5) && (Environment.OSVersion.Version.Minor == 1))
mscorlib (5642)
microsoft\win32\registry.cs (1)
132throw new ArgumentException(Environment.GetResourceString("Arg_RegInvalidKeyName", "keyName"));
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));
microsoft\win32\win32native.cs (4)
344throw new ArgumentException(Environment.GetResourceString("Argument_InvalidREG_TZI_FORMAT"), "bytes"); 753return Environment.GetResourceString("UnknownError_Num", errorCode); 983throw new NotSupportedException(Environment.GetResourceString("NotSupported_FileStreamOnNonFiles")); 1501if (Environment.OSVersion.Version >= ThreadErrorModeMinOsVersion)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (4)
58string envVar = Environment.GetEnvironmentVariable(envVarName); 81string minEnvVar = Environment.GetEnvironmentVariable(minEnvVarName); 336int curMSec = Environment.TickCount; 550if (!Environment.HasShutdownStarted && !AppDomain.CurrentDomain.IsFinalizingForUnload())
system\__filters.cs (5)
38throw new InvalidFilterCriteriaException(Environment.GetResourceString("RFLCT.FltCritInt")); 51throw new InvalidFilterCriteriaException(Environment.GetResourceString("RFLCT.FltCritInt")); 83throw new InvalidFilterCriteriaException(Environment.GetResourceString("RFLCT.FltCritInt")); 113throw new InvalidFilterCriteriaException(Environment.GetResourceString("RFLCT.FltCritString")); 139throw new InvalidFilterCriteriaException(Environment.GetResourceString("RFLCT.FltCritString"));
system\_localdatastore.cs (3)
146throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_SlotHasBeenFreed")); 180throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_SlotHasBeenFreed")); 213throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_SlotHasBeenFreed"));
system\_localdatastoremgr.cs (1)
323throw new ArgumentException(Environment.GetResourceString("Argument_ALSInvalidSlot"));
system\accessviolationexception.cs (1)
26: base(Environment.GetResourceString("Arg_AccessViolationException"))
system\activationcontext.cs (4)
98throw new ArgumentException(Environment.GetResourceString("Argument_InvalidAppId")); 151throw new ArgumentException(Environment.GetResourceString("Argument_IllegalAppIdMismatch")); 161throw new ArgumentException(Environment.GetResourceString("Argument_IllegalAppId")); 170throw new ArgumentException(Environment.GetResourceString("Argument_InvalidAppId"));
system\activator.cs (11)
78throw new NotSupportedException(Environment.GetResourceString("NotSupported_CreateInstanceWithTypeBuilder")); 93throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonUrlAttrOnMBR")); 98throw new NotSupportedException(Environment.GetResourceString("NotSupported_ActivAttrOnNonMBR" )); 104throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"type"); 190throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "type"); 204throw new MissingMethodException(Environment.GetResourceString("Arg_NoDefCTor")); 317throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 383throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 491throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 562throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 645throw new TypeLoadException(Environment.GetResourceString( "Argument_TypeMustBeVisibleFromCom" ));
system\AggregateException.cs (10)
45: base(Environment.GetResourceString("AggregateException_ctor_DefaultMessage")) 90this(Environment.GetResourceString("AggregateException_ctor_DefaultMessage"), innerExceptions) 104this(Environment.GetResourceString("AggregateException_ctor_DefaultMessage"), innerExceptions) 168throw new ArgumentException(Environment.GetResourceString("AggregateException_ctor_InnerExceptionNull")); 187this(Environment.GetResourceString("AggregateException_ctor_DefaultMessage"), innerExceptionInfos) 247throw new ArgumentException(Environment.GetResourceString("AggregateException_ctor_InnerExceptionNull")); 275throw new SerializationException(Environment.GetResourceString("AggregateException_DeserializationFailure")); 450Environment.GetResourceString("AggregateException_ToString"), 451text, Environment.NewLine, i, m_innerExceptions[i].ToString(), "<---", Environment.NewLine);
system\AppContext\AppContext.cs (2)
100throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "switchName"); 204throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "switchName");
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\appdomainmanager.cs (1)
63throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_String"));
system\AppDomainSetup.cs (5)
356throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPathChars")); 432throw new MemberAccessException(Environment.GetResourceString("AppDomain_AppBaseNotSet")); 648throw new ArgumentException(Environment.GetResourceString("Argument_NPMSInvalidName"), "functionName"); 655throw new ArgumentException(Environment.GetResourceString("ArgumentException_MinSortingVersion", 1, functionName)); 717throw new MemberAccessException(Environment.GetResourceString("AppDomain_RequireApplicationName"));
system\appdomainunloadedexception.cs (1)
26: base(Environment.GetResourceString("Arg_AppDomainUnloadedException")) {
system\applicationactivator.cs (3)
52throw new ArgumentException(Environment.GetResourceString("Argument_NoMain")); 153throw new ArgumentException(Environment.GetResourceString("Arg_MissingActivationArguments")); 168throw new PolicyException(Environment.GetResourceString("Policy_NoExecutionPermission"),
system\applicationexception.cs (1)
35: base(Environment.GetResourceString("Arg_ApplicationException")) {
system\applicationid.cs (1)
40throw new ArgumentException(Environment.GetResourceString("Argument_EmptyApplicationName"));
system\argiterator.cs (1)
140throw new NotSupportedException(Environment.GetResourceString("NotSupported_NYI"));
system\argumentexception.cs (3)
36: base(Environment.GetResourceString("Arg_ArgumentException")) { 75String resourceString = Environment.GetResourceString("Arg_ParamName_Name", m_paramName); 76return s + Environment.NewLine + resourceString;
system\argumentnullexception.cs (2)
32: base(Environment.GetResourceString("ArgumentNull_Generic")) { 38: base(Environment.GetResourceString("ArgumentNull_Generic"), paramName) {
system\argumentoutofrangeexception.cs (3)
37_rangeMessage = Environment.GetResourceString("Arg_ArgumentOutOfRangeException"); 77String valueMessage = Environment.GetResourceString("ArgumentOutOfRange_ActualValue", m_actualValue.ToString()); 80return s + Environment.NewLine + valueMessage;
system\arithmeticexception.cs (1)
30: base(Environment.GetResourceString("Arg_ArithmeticException")) {
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\arraysegment.cs (13)
53throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 55throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 57throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 151throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullArray")); 162throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullArray")); 174throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullArray")); 202throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullArray")); 236throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullArray")); 250throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullArray")); 266throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullArray")); 277throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullArray")); 319if (_current < _start) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted)); 320if (_current >= _end) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
system\arraytypemismatchexception.cs (1)
31: base(Environment.GetResourceString("Arg_ArrayTypeMismatchException")) {
system\attribute.cs (16)
435Environment.GetResourceString("Format_AttributeUsage", type)); 464throw new ArgumentException(Environment.GetResourceString("Argument_MustHaveAttributeBaseClass")); 519throw new ArgumentException(Environment.GetResourceString("Argument_MustHaveAttributeBaseClass")); 551throw new AmbiguousMatchException(Environment.GetResourceString("RFLCT.AmbigCust")); 576throw new ArgumentException(Environment.GetResourceString("Argument_MustHaveAttributeBaseClass")); 579throw new ArgumentException(Environment.GetResourceString("Argument_InvalidParameterInfo"), "element"); 596throw new ArgumentException(Environment.GetResourceString("Argument_InvalidParameterInfo"), "element"); 622throw new ArgumentException(Environment.GetResourceString("Argument_MustHaveAttributeBaseClass")); 640throw new ArgumentException(Environment.GetResourceString("Argument_InvalidParamInfo")); 664throw new AmbiguousMatchException(Environment.GetResourceString("RFLCT.AmbigCust")); 698throw new ArgumentException(Environment.GetResourceString("Argument_MustHaveAttributeBaseClass")); 719throw new ArgumentException(Environment.GetResourceString("Argument_MustHaveAttributeBaseClass")); 742throw new AmbiguousMatchException(Environment.GetResourceString("RFLCT.AmbigCust")); 762throw new ArgumentException(Environment.GetResourceString("Argument_MustHaveAttributeBaseClass")); 797throw new ArgumentException(Environment.GetResourceString("Argument_MustHaveAttributeBaseClass")); 820throw new AmbiguousMatchException(Environment.GetResourceString("RFLCT.AmbigCust"));
system\badimageformatexception.cs (7)
34: base(Environment.GetResourceString("Arg_BadImageFormatException")) { 73_message = Environment.GetResourceString("Arg_BadImageFormatException"); 89s += Environment.NewLine + Environment.GetResourceString("IO.FileName_Name", _fileName); 95s += Environment.NewLine + StackTrace; 103s+=Environment.NewLine; 104s+=Environment.NewLine;
system\bcldebug.cs (7)
128System.Diagnostics.Log.Trace(Environment.NewLine); 146System.Diagnostics.Log.Trace(ls,Environment.NewLine); 149System.Diagnostics.Log.Trace("Exception thrown in logging." + Environment.NewLine); 150System.Diagnostics.Log.Trace("Switch was: " + ((switchName==null)?"<null>":switchName) + Environment.NewLine); 151System.Diagnostics.Log.Trace("Message was: " + ((message==null)?"<null>":message) + Environment.NewLine); 304sb.Append(Environment.NewLine); 323sb.Append(Environment.NewLine);
system\bitconverter.cs (6)
367throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex")); 371throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive")); 375throw new ArgumentException(Environment.GetResourceString("Arg_ArrayPlusOffTooSmall")); 385throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_LengthTooLarge", (Int32.MaxValue / 3))); 435throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 437throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index"));
system\boolean.cs (4)
132throw new ArgumentException (Environment.GetResourceString("Arg_MustBeBoolean")); 163throw new FormatException(Environment.GetResourceString("Format_BadBoolean")); 242throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Boolean", "Char")); 302throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Boolean", "DateTime"));
system\buffer.cs (3)
170throw new ArgumentException(Environment.GetResourceString("Arg_MustBePrimArray"), "array"); 199throw new ArgumentException(Environment.GetResourceString("Arg_MustBePrimArray"), "array"); 230throw new ArgumentException(Environment.GetResourceString("Arg_MustBePrimArray"), "array");
system\byte.cs (4)
61throw new ArgumentException(Environment.GetResourceString("Arg_MustBeByte")); 122throw new OverflowException(Environment.GetResourceString("Overflow_Byte"), e); 125if (i < MinValue || i > MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Byte")); 255throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Byte", "DateTime"));
system\cannotunloadappdomainexception.cs (1)
26: base(Environment.GetResourceString("Arg_CannotUnloadAppDomainException")) {
system\cfgparser.cs (1)
490return Environment.GetResourceString("XML_Syntax_InvalidSyntaxInFile", fileName, lastProcessedTag);
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\charenumerator.cs (4)
61throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted)); 63throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded)); 72throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted)); 74throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
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\bitarray.cs (18)
47throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 79throw new ArgumentException(Environment.GetResourceString("Argument_ArrayTooLarge", BitsPerByte), "bytes"); 148throw new ArgumentException(Environment.GetResourceString("Argument_ArrayTooLarge", BitsPerInt32), "values"); 196throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 211throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 247throw new ArgumentException(Environment.GetResourceString("Arg_ArrayLengthsDiffer")); 269throw new ArgumentException(Environment.GetResourceString("Arg_ArrayLengthsDiffer")); 291throw new ArgumentException(Environment.GetResourceString("Arg_ArrayLengthsDiffer")); 325throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 361throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 364throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported")); 376throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 385throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 392throw new ArgumentException(Environment.GetResourceString("Arg_BitArrayTypeUnsupported")); 492if (version != bitarray._version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion)); 507throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted)); 509throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded)); 515if (version != bitarray._version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
system\collections\collectionbase.cs (5)
67throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 106throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 112throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 150if (index < 0) throw new ArgumentException(Environment.GetResourceString("Arg_RemoveArgNotFound")); 168throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
system\collections\comparer.cs (1)
85throw new ArgumentException(Environment.GetResourceString("Argument_ImplementIComparable"));
system\collections\compatiblecomparer.cs (1)
35throw new ArgumentException(Environment.GetResourceString("Argument_ImplementIComparable"));
system\Collections\Concurrent\ConcurrentDictionary.cs (2)
1756throw new NotSupportedException(Environment.GetResourceString("ConcurrentCollection_SyncRoot_NotSupported")); 2122return Environment.GetResourceString(key);
system\Collections\Concurrent\ConcurrentQueue.cs (1)
202throw new NotSupportedException(Environment.GetResourceString("ConcurrentCollection_SyncRoot_NotSupported"));
system\Collections\Concurrent\ConcurrentStack.cs (5)
253throw new NotSupportedException(Environment.GetResourceString("ConcurrentCollection_SyncRoot_NotSupported")); 481throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ConcurrentStack_PushPopRange_CountOutOfRange")); 486throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ConcurrentStack_PushPopRange_StartOutOfRange")); 490throw new ArgumentException(Environment.GetResourceString("ConcurrentStack_PushPopRange_InvalidCount")); 682Random r = new Random(Environment.TickCount & Int32.MaxValue); // avoid the case where TickCount could return Int32.MinValue
system\collections\concurrent\OrderablePartitioner.cs (1)
135throw new NotSupportedException(Environment.GetResourceString("Partitioner_DynamicPartitionsNotSupported"));
system\collections\concurrent\Partitioner.cs (1)
102throw new NotSupportedException(Environment.GetResourceString("Partitioner_DynamicPartitionsNotSupported"));
system\collections\concurrent\PartitionerStatic.cs (6)
630throw new ObjectDisposedException(Environment.GetResourceString("PartitionerStatic_CanNotCallGetEnumeratorAfterSourceHasBeenDisposed")); 994throw new InvalidOperationException(Environment.GetResourceString("PartitionerStatic_CurrentCalledBeforeMoveNext")); 1273throw new InvalidOperationException(Environment.GetResourceString("PartitionerStatic_CurrentCalledBeforeMoveNext")); 1357throw new InvalidOperationException(Environment.GetResourceString("PartitionerStatic_CurrentCalledBeforeMoveNext")); 1584throw new InvalidOperationException(Environment.GetResourceString("PartitionerStatic_CurrentCalledBeforeMoveNext")); 1641throw new InvalidOperationException(Environment.GetResourceString("PartitionerStatic_CurrentCalledBeforeMoveNext"));
system\collections\emptyreadonlydictionaryinternal.cs (18)
44throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported")); 47throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 50throw new ArgumentException( Environment.GetResourceString("ArgumentOutOfRange_Index"), "index"); 79throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key")); 86throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key")); 90throw new ArgumentException(Environment.GetResourceString("Argument_NotSerializable"), "key"); 93throw new ArgumentException(Environment.GetResourceString("Argument_NotSerializable"), "value"); 96throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly")); 118throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key")); 122throw new ArgumentException(Environment.GetResourceString("Argument_NotSerializable"), "key" ); 125throw new ArgumentException(Environment.GetResourceString("Argument_NotSerializable"), "value"); 128throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly")); 132throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly")); 152throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly")); 168throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen")); 179throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen")); 185throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen")); 191throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
system\collections\generic\arraysorthelper.cs (7)
88throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer)); 165throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e); 182throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e); 529throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e); 551throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e); 941throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e); 1292throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_IComparerFailed"), e);
system\collections\generic\equalitycomparer.cs (3)
352throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_Index")); 354throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count")); 356throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\collections\generic\keynotfoundexception.cs (1)
29: base(Environment.GetResourceString("Arg_KeyNotFound")) {
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\queue.cs (11)
60throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 62throw new ArgumentOutOfRangeException("growFactor", Environment.GetResourceString("ArgumentOutOfRange_QueueGrowFactor", 1, 10)); 141throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported")); 143throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 147throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 188throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EmptyQueue")); 204throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EmptyQueue")); 415if (_version != _q._version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion)); 435throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted)); 437throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded)); 444if (_version != _q._version) throw new InvalidOperationException(Environment.GetResourceString(ResId.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\collections\stack.cs (10)
49throw new ArgumentOutOfRangeException("initialCapacity", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 128throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported")); 130throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 132throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 161throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EmptyStack")); 170throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EmptyStack")); 328if (_version != _stack._version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion)); 350if (_index == -2) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted)); 351if (_index == -1) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded)); 357if (_version != _stack._version) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumFailedVersion));
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\consolekeyinfo.cs (1)
31throw new ArgumentOutOfRangeException("key", Environment.GetResourceString("ArgumentOutOfRange_ConsoleKey"));
system\contextmarshalexception.cs (1)
28: base(Environment.GetResourceString("Arg_ContextMarshalException")) {
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\currenttimezone.cs (1)
174throw new ArgumentOutOfRangeException("year", Environment.GetResourceString("ArgumentOutOfRange_Range", 1, 9999));
system\datamisalignedexception.cs (1)
24: base(Environment.GetResourceString("Arg_DataMisalignedException"))
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\dbnull.cs (15)
25throw new NotSupportedException(Environment.GetResourceString("NotSupported_DBNullSerial")); 49throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 54throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 59throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 64throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 69throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 74throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 79throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 84throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 89throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 94throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 99throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 104throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 109throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull")); 114throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromDBNull"));
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\defaultbinder.cs (13)
43throw new ArgumentException(Environment.GetResourceString("Arg_EmptyArray"), "match"); 295throw new MissingMethodException(Environment.GetResourceString("MissingMember")); 378throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException")); 491throw new MissingFieldException(Environment.GetResourceString("MissingField")); 511throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException")); 528throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"types"); 534throw new ArgumentException(Environment.GetResourceString("Arg_EmptyArray"), "match"); 588throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException")); 610throw new ArgumentException(Environment.GetResourceString("Arg_EmptyArray"), "match"); 699throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException")); 708throw new NotSupportedException(Environment.GetResourceString("NotSupported_ChangeType")); 804throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException")); 1079throw new AmbiguousMatchException(Environment.GetResourceString("Arg_AmbiguousMatchException"));
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\delegateserializationholder.cs (4)
37throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"),"type"); 40throw new NotSupportedException(Environment.GetResourceString("NotSupported_GlobalMethodSerialization")); 180Environment.GetResourceString("Serialization_InsufficientDeserializationState", field)); 296throw new NotSupportedException(Environment.GetResourceString("NotSupported_DelegateSerHolderSerial"));
system\deployment\cmsutils.cs (2)
27throw new ArgumentException(Environment.GetResourceString("Argument_NoMain")); 120throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)versionMatch), "versionMatch");
system\diagnostics\assert.cs (3)
91Environment.GetResourceString("InvalidOperation_DebuggerLaunchFailed")); 113Environment._Exit(exitCode); 115Environment.FailFast(message, unchecked((uint) exitCode));
system\diagnostics\contracts\contracts.cs (2)
657throw new ArgumentException(Environment.GetResourceString("Argument_ToExclusiveLessThanFromExclusive")); 719throw new ArgumentException(Environment.GetResourceString("Argument_ToExclusiveLessThanFromExclusive"));
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\eventdescriptor.cs (4)
78throw new ArgumentOutOfRangeException("id", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 83throw new ArgumentOutOfRangeException("id", Environment.GetResourceString("ArgumentOutOfRange_NeedValidId", 1, ushort.MaxValue)); 96throw new ArgumentOutOfRangeException("task", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 101throw new ArgumentOutOfRangeException("task", Environment.GetResourceString("ArgumentOutOfRange_NeedValidId", 1, ushort.MaxValue));
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\diagnostics\eventing\eventsourceexception.cs (2)
35public EventSourceException() : base(Environment.GetResourceString("EventSource_ListenerWriteFailure")) { } 55internal EventSourceException(Exception innerException) : base(Environment.GetResourceString("EventSource_ListenerWriteFailure"), innerException) { }
system\diagnostics\eventing\StubEnvironment.cs (2)
19public static readonly string NewLine = System.Environment.NewLine; 22{ get { return System.Environment.TickCount; } }
System\Diagnostics\Eventing\TraceLogging\DataCollector.cs (4)
85throw new IndexOutOfRangeException(Environment.GetResourceString("EventSource_AddScalarOutOfRange")); 272throw new IndexOutOfRangeException(Environment.GetResourceString("EventSource_PinArrayOutOfRange")); 278throw new IndexOutOfRangeException(Environment.GetResourceString("EventSource_DataDescriptorsOutOfRange")); 296throw new IndexOutOfRangeException(Environment.GetResourceString("EventSource_DataDescriptorsOutOfRange"));
System\Diagnostics\Eventing\TraceLogging\FieldMetadata.cs (4)
127throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedArrayOfNil")); 131throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedArrayOfBinary")); 137throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedArrayOfNullTerminatedString")); 159throw new NotSupportedException(Environment.GetResourceString("EventSource_TooManyFields"));
System\Diagnostics\Eventing\TraceLogging\Statics.cs (3)
586throw new NotSupportedException(Environment.GetResourceString("EventSource_RecursiveTypeDefinition")); 706throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedEnumType", dataType.Name, underlyingType.Name)); 818throw new ArgumentException(Environment.GetResourceString("EventSource_NonCompliantTypeError", dataType.Name));
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (4)
751throw new ArgumentException(Environment.GetResourceString("UnknownEtwTrait", etwTrait), "traits"); 791throw new ArgumentException(Environment.GetResourceString("EvenHexDigits"), "traits"); 800throw new ArgumentException(Environment.GetResourceString("IllegalValue", value), "traits"); 816throw new ArgumentException(Environment.GetResourceString("BadHexDigit", c), "traits");
System\Diagnostics\Eventing\TraceLogging\TraceLoggingMetadataCollector.cs (4)
231throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedNestedArraysEnums")); 243throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedNestedArraysEnums")); 254throw new InvalidOperationException(Environment.GetResourceString("EventSource_IncorrentlyAuthoredTypeInfo")); 273throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedCustomSerializedData"));
system\diagnostics\log.cs (1)
146throw new ArgumentOutOfRangeException("level", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
system\diagnostics\logswitch.cs (1)
41throw new ArgumentOutOfRangeException("Name", Environment.GetResourceString("Argument_StringZeroLength"));
system\diagnostics\stackframe.cs (1)
318sb.Append(Environment.NewLine);
system\diagnostics\stacktrace.cs (10)
351Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 371Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 422Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 444Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 646word_At = Environment.GetResourceString("Word_At"); 647inFileLineNum = Environment.GetResourceString("StackTrace_InFileLineNumber"); 662sb.Append(Environment.NewLine); 754sb.Append(Environment.NewLine); 755sb.Append(Environment.GetResourceString("Exception_EndStackTraceFromPreviousThrow")); 762sb.Append(Environment.NewLine);
system\dividebyzeroexception.cs (1)
24: base(Environment.GetResourceString("Arg_DivideByZero")) {
system\dllnotfoundexception.cs (1)
24: base(Environment.GetResourceString("Arg_DllNotFoundException")) {
system\double.cs (3)
130throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDouble")); 309throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Double", "Char")); 369throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Double", "DateTime"));
system\duplicatewaitobjectexception.cs (1)
34_duplicateWaitObjectMessage = Environment.GetResourceString("Arg_DuplicateWaitObjectException");
system\entrypointnotfoundexception.cs (1)
23: base(Environment.GetResourceString("Arg_EntryPointNotFoundException")) {
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\environment.cs (21)
178Environment.FailFast(message); 550throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ComputerName")); 698throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)target)); 883throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)target)); 903throw new ArgumentException(Environment.GetResourceString("Argument_LongEnvVarValue")); 924throw new ArgumentException(Environment.GetResourceString("Argument_LongEnvVarValue")); 937throw new ArgumentException(Environment.GetResourceString("Argument_StringZeroLength"), "variable"); 941throw new ArgumentException(Environment.GetResourceString("Argument_StringFirstCharIsZero"), "variable"); 948throw new ArgumentException(Environment.GetResourceString("Argument_LongEnvVarValue")); 952throw new ArgumentException(Environment.GetResourceString("Argument_IllegalEnvVarName")); 972throw new ArgumentException(Environment.GetResourceString("Argument_LongEnvVarName")); 998throw new ArgumentException(Environment.GetResourceString("Argument_LongEnvVarValue")); 1013throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)target)); 1128throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_GetVersion")); 1133throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_GetVersion")); 1178OperatingSystem OS = Environment.OSVersion; 1269Monitor.Enter(Environment.InternalSyncObject, ref tookLock); 1280Monitor.Exit(Environment.InternalSyncObject); 1447throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)folder)); 1458throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)folder)); 1460throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)option));
system\exception.cs (17)
114throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState")); 142return Environment.GetResourceString("Exception_WasThrown", _className); 363String tempStackTraceString = Environment.GetStackTrace(this, needFileInfo); 412throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeReflectionObject")); 450s = s + " ---> " + _innerException.ToString(needFileLineInfo, needMessage) + Environment.NewLine + 451" " + Environment.GetResourceString("Exception_EndOfInnerExceptionStack"); 458s += Environment.NewLine + stackTrace; 563tempStackTraceString = Environment.GetStackTrace(this, true); 619tmp = Environment.NewLine+ "Server stack trace: " + Environment.NewLine 621+ Environment.NewLine + Environment.NewLine 622+ "Exception rethrown at ["+_remoteStackIndex+"]: " + Environment.NewLine; 627+ Environment.NewLine + Environment.NewLine 628+ "Exception rethrown at ["+_remoteStackIndex+"]: " + Environment.NewLine; 700_remoteStackTraceString = tmpStackTraceString + Environment.NewLine;
system\executionengineexception.cs (1)
30: base(Environment.GetResourceString("Arg_ExecutionEngineException")) {
system\fieldaccessexception.cs (1)
21: base(Environment.GetResourceString("Arg_FieldAccessException")) {
system\formatexception.cs (1)
23: base(Environment.GetResourceString("Arg_FormatException")) {
system\gc.cs (16)
147Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 152Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegInt32")); 163Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 168Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegInt32")); 222throw new ArgumentOutOfRangeException("generation", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive")); 227throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum")); 260throw new ArgumentOutOfRangeException("generation", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive")); 273throw new ArgumentOutOfRangeException("generation", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive")); 438Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper"), 448Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper"), 455throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotWithConcurrentGC")); 464throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotWithConcurrentGC")); 478throw new ArgumentOutOfRangeException("millisecondsTimeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 493throw new ArgumentOutOfRangeException("millisecondsTimeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 648throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HandleIsNotInitialized")); 655throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HandleIsNotInitialized"));
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\charunicodeinfo.cs (3)
337throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 372throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 409throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
system\globalization\chineselunisolarcalendar.cs (3)
322Environment.GetResourceString("ArgumentOutOfRange_Range"), MIN_LUNISOLAR_YEAR, MAX_LUNISOLAR_YEAR )); 335throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue")); 343Environment.GetResourceString("ArgumentOutOfRange_Range"), MIN_LUNISOLAR_YEAR, MAX_LUNISOLAR_YEAR));
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\culturedata.cs (9)
498MscorlibResourceSet = new ResourceSet(typeof(Environment).Assembly.GetManifestResourceStream("mscorlib.resources")); 648return Environment.OSVersion.Platform == PlatformID.Win32NT && 649Environment.OSVersion.Version < s_win7Version; 653return Environment.OSVersion.Platform == PlatformID.Win32NT && 654Environment.OSVersion.Version < new Version(6, 2); // Win7 is 6.1.Build.Revision so we have to check for anything less than 6.2 946"culture", culture, Environment.GetResourceString("Argument_CultureNotSupported")); 978Environment.GetResourceString("ArgumentOutOfRange_Range"), CultureTypes.NeutralCultures, CultureTypes.FrameworkCultures)); 1192this.sLocalizedDisplayName = Environment.GetResourceString(resourceKey); 1517this.sLocalizedCountry = Environment.GetResourceString(resourceKey);
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\culturenotfoundexception.cs (3)
105return Environment.GetResourceString("Argument_CultureNotSupported"); 135String valueMessage = Environment.GetResourceString("Argument_CultureInvalidIdentifier", FormatedInvalidCultureId); 138return s + Environment.NewLine + valueMessage;
system\globalization\datetimeformat.cs (8)
329throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 342Environment.GetResourceString("Format_BadQuote"), quoteChar)); 510throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 674throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 697throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 860throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 890throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 1116throw new FormatException(Environment.GetResourceString("Format_InvalidString"));
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\datetimeparse.cs (5)
1092if (Environment.GetCompatibilityFlag(CompatibilityFlag.DateTimeParseIgnorePunctuation) && ((result.flags & ParseFlags.CaptureOffset) == 0)) { 4180return new ArgumentNullException(result.failureArgumentName, Environment.GetResourceString(result.failureMessageID)); 4182return new FormatException(Environment.GetResourceString(result.failureMessageID)); 4184return new FormatException(Environment.GetResourceString(result.failureMessageID, result.failureMessageFormatArgument)); 4186return new FormatException(Environment.GetResourceString(result.failureMessageID, result.calendar));
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\encodingtable.cs (2)
98Environment.GetResourceString("Argument_EncodingNotSupported"), name), "name"); 121Environment.GetResourceString("Globalization.cp_" + codePageDataPtr[i].codePage));
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\hebrewcalendar.cs (10)
381Environment.GetResourceString("ArgumentOutOfRange_Range"), 404Environment.GetResourceString("ArgumentOutOfRange_Range"), 428Environment.GetResourceString("ArgumentOutOfRange_Range"), 436throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue")); 447Environment.GetResourceString("ArgumentOutOfRange_CalendarRange"), 463throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DateTimeParsing")); 710Environment.GetResourceString("ArgumentOutOfRange_AddValue"))); 817throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month")); 1054Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1067Environment.GetResourceString("ArgumentOutOfRange_Range"),
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\japanesecalendar.cs (3)
488Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 497Environment.GetResourceString("ArgumentOutOfRange_Range"), 579Environment.GetResourceString("ArgumentOutOfRange_Range"),
system\globalization\japaneselunisolarcalendar.cs (1)
209Environment.GetResourceString("ArgumentOutOfRange_Range"),
system\globalization\juliancalendar.cs (11)
116throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue")); 127Environment.GetResourceString("ArgumentOutOfRange_Range"), 135throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Month")); 155Environment.GetResourceString("ArgumentOutOfRange_BadYearMonthDay")); 166Environment.GetResourceString("ArgumentOutOfRange_Range"), 237Environment.GetResourceString("ArgumentOutOfRange_Range"), 384Environment.GetResourceString("ArgumentOutOfRange_Range"), 394throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("ArgumentOutOfRange_BadHourMinuteSecond")); 412Environment.GetResourceString("ArgumentOutOfRange_Range"), 425Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 434Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper"),
system\globalization\koreancalendar.cs (2)
246Environment.GetResourceString("ArgumentOutOfRange_Range"), 259Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
system\globalization\koreanlunisolarcalendar.cs (3)
1255Environment.GetResourceString("ArgumentOutOfRange_Range"), 1271throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue")); 1279Environment.GetResourceString("ArgumentOutOfRange_Range"), MIN_LUNISOLAR_YEAR, MAX_LUNISOLAR_YEAR));
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\stringinfo.cs (9)
100Environment.GetResourceString("ArgumentNull_String")); 126Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 130Environment.GetResourceString("Arg_ArgumentOutOfRangeException")); 143Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 148Environment.GetResourceString("Arg_ArgumentOutOfRangeException")); 153Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 158Environment.GetResourceString("Arg_ArgumentOutOfRangeException")); 284throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 311throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
system\globalization\taiwancalendar.cs (3)
231Environment.GetResourceString("ArgumentOutOfRange_Range"), 246Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 255Environment.GetResourceString("ArgumentOutOfRange_Range"),
system\globalization\taiwanlunisolarcalendar.cs (1)
265Environment.GetResourceString("ArgumentOutOfRange_Range"),
system\globalization\textelementenumerator.cs (3)
123throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumNotStarted")); 126throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumEnded")); 142throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumNotStarted"));
system\globalization\textinfo.cs (2)
493throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly")); 529throw new ArgumentNullException("value", Environment.GetResourceString("ArgumentNull_String"));
system\globalization\thaibuddhistcalendar.cs (2)
205Environment.GetResourceString("ArgumentOutOfRange_Range"), 218Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
system\globalization\timespanformat.cs (10)
60throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 174throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 180throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 186throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 195throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 207throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 232throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 258throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 276throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 280throw new FormatException(Environment.GetResourceString("Format_InvalidString"));
system\globalization\timespanparse.cs (6)
73throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTimeSpanStyles"), parameterName); 487return new ArgumentNullException(m_failureArgumentName, Environment.GetResourceString(m_failureMessageID)); 490return new FormatException(Environment.GetResourceString(m_failureMessageID, m_failureMessageFormatArgument)); 493return new FormatException(Environment.GetResourceString(m_failureMessageID)); 496return new OverflowException(Environment.GetResourceString(m_failureMessageID)); 500return new FormatException(Environment.GetResourceString("Format_InvalidString"));
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\guid.cs (14)
55throw new ArgumentException(Environment.GetResourceString("Arg_GuidArrayCtor", "16")); 96throw new ArgumentException(Environment.GetResourceString("Arg_GuidArrayCtor", "8")); 205return new ArgumentNullException(m_failureArgumentName, Environment.GetResourceString(m_failureMessageID)); 208return new FormatException(Environment.GetResourceString(m_failureMessageID), m_innerException); 211return new FormatException(Environment.GetResourceString(m_failureMessageID, m_failureMessageFormatArgument)); 214return new FormatException(Environment.GetResourceString(m_failureMessageID)); 221return new FormatException(Environment.GetResourceString("Format_GuidUnrecognized")); 294throw new FormatException(Environment.GetResourceString("Format_InvalidGuidFormatSpecification")); 315throw new FormatException(Environment.GetResourceString("Format_InvalidGuidFormatSpecification")); 796throw new FormatException(Environment.GetResourceString("Format_GuidUnrecognized"), ex); 842throw new FormatException(Environment.GetResourceString("Format_GuidUnrecognized"), ex); 1006throw new ArgumentException(Environment.GetResourceString("Arg_MustBeGuid")); 1206throw new FormatException(Environment.GetResourceString("Format_InvalidGuidFormatSpecification")); 1247throw new FormatException(Environment.GetResourceString("Format_InvalidGuidFormatSpecification"));
system\indexoutofrangeexception.cs (1)
24: base(Environment.GetResourceString("Arg_IndexOutOfRangeException")) {
system\insufficientexecutionstackexception.cs (1)
26: base(Environment.GetResourceString("Arg_InsufficientExecutionStackException"))
system\int16.cs (5)
58throw new ArgumentException(Environment.GetResourceString("Arg_MustBeInt16")); 142throw new OverflowException(Environment.GetResourceString("Overflow_Int16"), e); 149throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 154if (i < MinValue || i > MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int16")); 268throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Int16", "DateTime"));
system\int32.cs (2)
61throw new ArgumentException (Environment.GetResourceString("Arg_MustBeInt32")); 241throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Int32", "DateTime"));
system\int64.cs (2)
60throw new ArgumentException (Environment.GetResourceString("Arg_MustBeInt64")); 220throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Int64", "DateTime"));
system\intptr.cs (1)
83throw new ArgumentException(Environment.GetResourceString("Serialization_InvalidPtrValue"));
system\invalidcastexception.cs (1)
24: base(Environment.GetResourceString("Arg_InvalidCastException")) {
system\invalidoperationexception.cs (1)
25: base(Environment.GetResourceString("Arg_InvalidOperationException")) {
system\invalidprogramexception.cs (1)
24: base(Environment.GetResourceString("InvalidProgram_Default")) {
system\io\__consolestream.cs (5)
127throw new ArgumentOutOfRangeException((offset < 0 ? "offset" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 129throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 154throw new ArgumentOutOfRangeException((offset < 0 ? "offset" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 156throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 182throw new IndexOutOfRangeException(Environment.GetResourceString("IndexOutOfRange_IORaceCondition"));
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\binarywriter.cs (2)
82throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotWritable")); 193throw new ArgumentException(Environment.GetResourceString("Arg_SurrogatesNotAllowedAsSingleChar"));
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\directorynotfoundexception.cs (1)
31: base(Environment.GetResourceString("Arg_DirectoryNotFoundException")) {
system\io\driveinfo.cs (3)
69throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDriveLetterOrRootDir")); 83throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDriveLetterOrRootDir")); 272throw new UnauthorizedAccessException(Environment.GetResourceString("InvalidOperation_SetVolumeLabelFailed"));
system\io\drivenotfoundexception.cs (1)
26: base(Environment.GetResourceString("Arg_DriveNotFoundException")) {
system\io\endofstreamexception.cs (1)
27: base(Environment.GetResourceString("Arg_EndOfStreamException")) {
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\fileinfo.cs (5)
286throw new ArgumentNullException("destFileName", Environment.GetResourceString("ArgumentNull_FileName")); 288throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destFileName"); 309throw new ArgumentNullException("destFileName", Environment.GetResourceString("ArgumentNull_FileName")); 311throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destFileName"); 461throw new ArgumentException(Environment.GetResourceString("Argument_EmptyFileName"), "destFileName");
system\io\fileloadexception.cs (6)
39: base(Environment.GetResourceString("IO.FileLoad")) { 103s += Environment.NewLine + Environment.GetResourceString("IO.FileName_Name", _fileName); 109s += Environment.NewLine + StackTrace; 118s+=Environment.NewLine; 119s+=Environment.NewLine;
system\io\filenotfoundexception.cs (7)
35: base(Environment.GetResourceString("IO.FileNotFound")) { 74_message = Environment.GetResourceString("IO.FileNotFound"); 90s += Environment.NewLine + Environment.GetResourceString("IO.FileName_Name", _fileName); 96s += Environment.NewLine + StackTrace; 105s+=Environment.NewLine; 106s+=Environment.NewLine;
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\filesysteminfo.cs (2)
319throw new ArgumentException(Environment.GetResourceString("Arg_InvalidFileAttrs")); 325throw new ArgumentException(Environment.GetResourceString("UnauthorizedAccess_IODenied_NoPathName"));
system\io\ioexception.cs (1)
39: base(Environment.GetResourceString("Arg_IOException")) {
system\io\isolatedstorage\isolatedstorage.cs (26)
377Environment.GetResourceString( 389Environment.GetResourceString( 398Environment.GetResourceString( 413Environment.GetResourceString( 428Environment.GetResourceString( 444Environment.GetResourceString( 460Environment.GetResourceString( 475Environment.GetResourceString( 525Environment.GetResourceString( 538Environment.GetResourceString( 551Environment.GetResourceString( 583Environment.GetResourceString( 599Environment.GetResourceString( 636Environment.GetResourceString( 644Environment.GetResourceString( 717Environment.GetResourceString( 820Environment.GetResourceString( 827Environment.GetResourceString( 832Environment.GetResourceString( 991Environment.GetResourceString( 995Environment.GetResourceString( 999Environment.GetResourceString( 1011Environment.GetResourceString( 1015Environment.GetResourceString( 1019Environment.GetResourceString( 1169Environment.GetResourceString(
system\io\isolatedstorage\isolatedstorageexception.cs (1)
31: base(Environment.GetResourceString("IsolatedStorage_Exception"))
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\isolatedstorage\isolatedstoragefilestream.cs (9)
130Environment.GetResourceString( 144throw new ObjectDisposedException(null, Environment.GetResourceString("IsolatedStorage_StoreNotOpen")); 157throw new ArgumentException(Environment.GetResourceString("IsolatedStorage_FileOpenMode")); 337Environment.GetResourceString( 416throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 467throw new ArgumentOutOfRangeException((position < 0 ? "position" : "length"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 476throw new ArgumentOutOfRangeException((position < 0 ? "position" : "length"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 586Environment.GetResourceString( 758NotPermittedError(Environment.GetResourceString(
system\io\isolatedstorage\isolatedstoragesecuritystate.cs (1)
204throw new IsolatedStorageException(Environment.GetResourceString("IsolatedStorage_Operation"));
system\io\longpath.cs (9)
233throw new IOException(Environment.GetResourceString("Arg_FileIsDirectory_Name", destFileName), Win32Native.ERROR_ACCESS_DENIED, fullDestFileName); 483throw new IOException(Environment.GetResourceString("IO.IO_CannotCreateDirectory", path)); 563throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 632throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 638throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 644throw new IOException(Environment.GetResourceString("IO.IO_SourceDestMustBeDifferent")); 649throw new IOException(Environment.GetResourceString("IO.IO_SourceDestMustHaveSameRoot")); 665throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", sourceDirName), Win32Native.MakeHRFromErrorCode(hr)); 886throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", userPath));
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\path.cs (26)
431throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 494throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPathChars")); 500throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 522throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPathChars")); 599throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 607throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 614throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 621throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 672throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 701throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 745throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 756throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 763throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 770throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 777throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 792throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegal")); 803throw new ArgumentException(Environment.GetResourceString("Argument_PathUriFormatNotSupported")); 868throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 896throw new ArgumentException(Environment.GetResourceString("Arg_PathIllegalUNC")); 904throw new ArgumentException(Environment.GetResourceString("Arg_PathGlobalRoot")); 910throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 1378throw new ArgumentException(Environment.GetResourceString("Arg_InvalidSearchPattern")); 1382throw new ArgumentException(Environment.GetResourceString("Arg_InvalidSearchPattern")); 1394throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPathChars")); 1405throw new ArgumentException(Environment.GetResourceString("Argument_PathEmpty"), "path2"); 1407throw new ArgumentException(Environment.GetResourceString("Arg_Path2IsRooted"), "path2");
system\io\pathhelper.cs (8)
143throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 171throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 208throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 213throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 244throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 310throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 332throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 345throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong"));
system\io\pathtoolongexception.cs (1)
29: base(Environment.GetResourceString("IO.PathTooLong")) {
system\io\stream.cs (24)
108throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TimeoutsNotSupported")); 111throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TimeoutsNotSupported")); 119throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TimeoutsNotSupported")); 122throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TimeoutsNotSupported")); 148throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 150throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_StreamClosed")); 152throw new ObjectDisposedException("destination", Environment.GetResourceString("ObjectDisposed_StreamClosed")); 154throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream")); 156throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnwritableStream")); 186throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_StreamClosed")); 188throw new ObjectDisposedException("destination", Environment.GetResourceString("ObjectDisposed_StreamClosed")); 190throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream")); 192throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnwritableStream")); 204Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 206throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_StreamClosed")); 208throw new ObjectDisposedException("destination", Environment.GetResourceString("ObjectDisposed_StreamClosed")); 210throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream")); 212throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnwritableStream")); 383throw new ArgumentException(Environment.GetResourceString("InvalidOperation_WrongAsyncResultOrEndReadCalledMultiple")); 387throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WrongAsyncResultOrEndReadCalledMultiple")); 391throw new ArgumentException(Environment.GetResourceString("InvalidOperation_WrongAsyncResultOrEndReadCalledMultiple")); 570throw new ArgumentException(Environment.GetResourceString("InvalidOperation_WrongAsyncResultOrEndWriteCalledMultiple")); 574throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WrongAsyncResultOrEndWriteCalledMultiple")); 578throw new ArgumentException(Environment.GetResourceString("InvalidOperation_WrongAsyncResultOrEndWriteCalledMultiple"));
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\stringreader.cs (10)
87throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer")); 89throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 91throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 93throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 166throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer")); 168throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 170throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 181throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer")); 183throw new ArgumentOutOfRangeException((index < 0 ? "index" : "count"), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 185throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\io\stringwriter.cs (5)
59throw new ArgumentNullException("sb", Environment.GetResourceString("ArgumentNull_Buffer")); 111throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer")); 113throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 115throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 117throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
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\textwriter.cs (4)
210throw new ArgumentNullException("buffer", Environment.GetResourceString("ArgumentNull_Buffer")); 212throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 214throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 216throw 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\io\unmanagedmemorystreamwrapper.cs (8)
66throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_MemStreamBuffer")); 80throw new IOException(Environment.GetResourceString("IO.IO_FixedCapacity")); 132throw new ArgumentNullException("stream", Environment.GetResourceString("ArgumentNull_Stream")); 160throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 163throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_StreamClosed")); 166throw new ObjectDisposedException("destination", Environment.GetResourceString("ObjectDisposed_StreamClosed")); 169throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream")); 172throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnwritableStream"));
system\Lazy.cs (4)
216throw new ArgumentOutOfRangeException("mode", Environment.GetResourceString("Lazy_ctor_ModeInvalid")); 238return IsValueCreated ? Value.ToString() : Environment.GetResourceString("Lazy_ToString_ValueNotCreated"); 425throw new InvalidOperationException(Environment.GetResourceString("Lazy_Value_RecursiveCallsToValue")); 455Exception ex = new System.MissingMemberException(Environment.GetResourceString("Lazy_CreateValue_NoParameterlessCtorForT"));
system\marshalbyrefobject.cs (2)
87throw new InvalidOperationException(Environment.GetResourceString("Arg_InvokeMember")); 190throw new RemotingException(Environment.GetResourceString(
system\math.cs (9)
136throw new ArgumentOutOfRangeException("digits", Environment.GetResourceString("ArgumentOutOfRange_RoundingDigits")); 147throw new ArgumentOutOfRangeException("digits", Environment.GetResourceString("ArgumentOutOfRange_RoundingDigits")); 149throw new ArgumentException(Environment.GetResourceString("Argument_InvalidEnumValue", mode, "MidpointRounding"), "mode"); 258throw new OverflowException(Environment.GetResourceString("Overflow_NegateTwosCompNum")); 273throw new OverflowException(Environment.GetResourceString("Overflow_NegateTwosCompNum")); 288throw new OverflowException(Environment.GetResourceString("Overflow_NegateTwosCompNum")); 303throw new OverflowException(Environment.GetResourceString("Overflow_NegateTwosCompNum")); 579throw new ArithmeticException(Environment.GetResourceString("Arithmetic_NaN")); 590throw new ArithmeticException(Environment.GetResourceString("Arithmetic_NaN"));
system\memberaccessexception.cs (1)
27: base(Environment.GetResourceString("Arg_AccessException")) {
system\methodaccessexception.cs (1)
21: base(Environment.GetResourceString("Arg_MethodAccessException")) {
system\missingfieldexception.cs (2)
25: base(Environment.GetResourceString("Arg_MissingFieldException")) { 50return Environment.GetResourceString("MissingField_Name",
system\missingmemberexception.cs (2)
30: base(Environment.GetResourceString("Arg_MissingMemberException")) { 58return Environment.GetResourceString("MissingMember_Name",
system\missingmethodexception.cs (2)
27: base(Environment.GetResourceString("Arg_MissingMethodException")) { 52return Environment.GetResourceString("MissingMethod_Name",
system\multicastdelegate.cs (5)
66throw new SerializationException(Environment.GetResourceString("Serialization_InvalidDelegateType")); 70throw new SerializationException(Environment.GetResourceString("Serialization_InvalidDelegateType")); 98throw new SerializationException(Environment.GetResourceString("Serialization_InvalidDelegateType")); 274throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTypeMis")); 608throw new ArgumentException(Environment.GetResourceString("Arg_DlgtNullInst"));
system\multicastnotsupportedexception.cs (1)
20: base(Environment.GetResourceString("Arg_MulticastNotSupportedException")) {
system\notfinitenumberexception.cs (1)
19: base(Environment.GetResourceString("Arg_NotFiniteNumberException")) {
system\notimplementedexception.cs (1)
27: base(Environment.GetResourceString("Arg_NotImplementedException")) {
system\notsupportedexception.cs (1)
25: base(Environment.GetResourceString("Arg_NotSupportedException")) {
system\nullreferenceexception.cs (1)
24: base(Environment.GetResourceString("Arg_NullReferenceException")) {
system\number.cs (15)
658throw new OverflowException(Environment.GetResourceString("Overflow_Decimal")); 687throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 691throw new OverflowException(Environment.GetResourceString("Overflow_Double")); 708throw new OverflowException(Environment.GetResourceString("Overflow_Int32")); 713throw new OverflowException(Environment.GetResourceString("Overflow_Int32")); 729throw new OverflowException(Environment.GetResourceString("Overflow_Int64")); 734throw new OverflowException(Environment.GetResourceString("Overflow_Int64")); 964throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 968throw new OverflowException(Environment.GetResourceString("Overflow_Single")); 972throw new OverflowException(Environment.GetResourceString("Overflow_Single")); 988throw new OverflowException(Environment.GetResourceString("Overflow_UInt32")); 993throw new OverflowException(Environment.GetResourceString("Overflow_UInt32")); 1009throw new OverflowException(Environment.GetResourceString("Overflow_UInt64")); 1014throw new OverflowException(Environment.GetResourceString("Overflow_UInt64")); 1032throw new FormatException(Environment.GetResourceString("Format_InvalidString"));
system\object.cs (3)
138throw new FieldAccessException(Environment.GetResourceString("FieldAccess_InitOnly")); 199CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_BadType"), 213CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_BadField"),
system\objectdisposedexception.cs (4)
23this(null ,Environment.GetResourceString("ObjectDisposed_Generic")) { 27this(objectName, Environment.GetResourceString("ObjectDisposed_Generic")) { 49String objectDisposed = Environment.GetResourceString("ObjectDisposed_ObjectName_Name", name); 50return base.Message + Environment.NewLine + objectDisposed;
system\oleautbinder.cs (1)
108throw new COMException(Environment.GetResourceString("Interop.COM_TypeMismatch"), unchecked((int)0x80020005));
system\operatingsystem.cs (2)
46Environment.GetResourceString("Arg_EnumIllegalVal", (int)platform), 76throw new SerializationException(Environment.GetResourceString("Serialization_MissField", "_version"));
system\operationcanceledexception.cs (1)
36: base(Environment.GetResourceString("OperationCanceled")) {
system\overflowexception.cs (1)
25: base(Environment.GetResourceString("Arg_OverflowException")) {
system\platformnotsupportedexception.cs (1)
26: base(Environment.GetResourceString("Arg_PlatformNotSupported")) {
system\random.cs (3)
53: this(Environment.TickCount) { 162throw new ArgumentOutOfRangeException("minValue",Environment.GetResourceString("Argument_MinMaxValue", "minValue", "maxValue")); 183throw new ArgumentOutOfRangeException("maxValue", Environment.GetResourceString("ArgumentOutOfRange_MustBePositive", "maxValue"));
system\rankexception.cs (1)
26: base(Environment.GetResourceString("Arg_RankException")) {
system\reflection\__filters.cs (2)
35throw new InvalidFilterCriteriaException(System.Environment.GetResourceString("RFLCT.FltCritString")); 55throw new InvalidFilterCriteriaException(System.Environment.GetResourceString("RFLCT.FltCritString"));
system\reflection\ambiguousmatchexception.cs (1)
28: base(Environment.GetResourceString("RFLCT.Ambiguous")) {
system\reflection\assembly.cs (12)
560throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 607throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 789throw new NotSupportedException(Environment.GetResourceString("NotSupported_NoTypeInfo", types[i].FullName)); 1660throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType"); 1674throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"caType"); 1704throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 1763throw new ArgumentException(Environment.GetResourceString("Format_StringZeroLength")); 1833throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 2016throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyImplicit")); 2525throw new NotImplementedException(Environment.GetResourceString("NotImplemented_ResourcesLongerThan2^63")); 3044throw new FileNotFoundException(String.Format(culture, Environment.GetResourceString("IO.FileNotFound_FileName"), an.Name)); 3106Environment.GetResourceString("IO.FileNotFound_FileName"),
system\reflection\assemblyname.cs (1)
392throw new ArgumentException(Environment.GetResourceString("Format_StringZeroLength"));
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\customattributeformatexception.cs (1)
26: base(Environment.GetResourceString("Arg_CustomAttributeFormatException")) {
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\assemblybuilderdata.cs (15)
52m_strDir = Environment.CurrentDirectory; 157throw new ArgumentException(Environment.GetResourceString( 173throw new ArgumentException(Environment.GetResourceString( 196throw new ArgumentException(Environment.GetResourceString( 212throw new ArgumentException(Environment.GetResourceString( 222throw new ArgumentException(Environment.GetResourceString( 232throw new ArgumentException(Environment.GetResourceString( 246throw new ArgumentException(Environment.GetResourceString( 260throw new ArgumentException(Environment.GetResourceString( 284throw new ArgumentException(Environment.GetResourceString("Argument_DuplicateResourceName")); 303throw new ArgumentException(Environment.GetResourceString("Argument_DuplicateModuleName")); 356throw new ArgumentException(Environment.GetResourceString("Argument_DuplicatedFileName")); 369throw new ArgumentException(Environment.GetResourceString("Argument_DuplicatedFileName")); 426throw new InvalidOperationException(Environment.GetResourceString( 444throw new InvalidOperationException(Environment.GetResourceString(
system\reflection\emit\constructorbuilder.cs (6)
119throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 149throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 197throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DefaultConstructorILGen")); 205throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DefaultConstructorILGen")); 217throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_DefaultConstructorDefineBody")); 243throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TypeHasBeenCreated"));
system\reflection\emit\customattributebuilder.cs (17)
120throw new ArgumentException(Environment.GetResourceString("Arg_ArrayLengthsDiffer"), "namedProperties, propertyValues"); 122throw new ArgumentException(Environment.GetResourceString("Arg_ArrayLengthsDiffer"), "namedFields, fieldValues"); 127throw new ArgumentException(Environment.GetResourceString("Argument_BadConstructor")); 130throw new ArgumentException(Environment.GetResourceString("Argument_BadConstructorCallConv")); 145throw new ArgumentException(Environment.GetResourceString("Argument_BadParameterCountsForConstructor")); 150throw new ArgumentException(Environment.GetResourceString("Argument_BadTypeInCustomAttribute")); 160throw new ArgumentException(Environment.GetResourceString("Argument_BadParameterTypeForConstructor", i)); 191throw new ArgumentException(Environment.GetResourceString("Argument_BadTypeInCustomAttribute")); 195throw new ArgumentException(Environment.GetResourceString("Argument_NotAWritableProperty")); 213throw new ArgumentException(Environment.GetResourceString("Argument_BadPropertyForConstructorBuilder")); 222throw new ArgumentException(Environment.GetResourceString("Argument_ConstantDoesntMatch")); 247throw new ArgumentException(Environment.GetResourceString("Argument_BadTypeInCustomAttribute")); 265throw new ArgumentException(Environment.GetResourceString("Argument_BadFieldForConstructorBuilder")); 274throw new ArgumentException(Environment.GetResourceString("Argument_ConstantDoesntMatch")); 435throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeForCA", 509throw new ArgumentException(Environment.GetResourceString("Argument_BadParameterTypeForCAB", ot.ToString())); 521throw new ArgumentException(Environment.GetResourceString("Argument_BadParameterTypeForCAB", typename));
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\dynamicmethod.cs (18)
275throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicMethodFlags")); 277throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicMethodFlags")); 282throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicMethodFlags")); 286throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicMethodFlags")); 362throw new ArgumentException(Environment.GetResourceString("Arg_InvalidTypeInSignature")); 365throw new ArgumentException(Environment.GetResourceString("Arg_InvalidTypeInSignature")); 375throw new NotSupportedException(Environment.GetResourceString("Arg_InvalidTypeInRetType")); 408throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeForDynamicMethod")); 456throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeModule"), "m"); 461throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue"), "m"); 495throw new ArgumentNullException("owner", Environment.GetResourceString("Argument_MustBeRuntimeType")); 588throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadEmptyMethodBody", Name)); 613public override RuntimeMethodHandle MethodHandle { get { throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod")); } } 716throw new NotSupportedException(Environment.GetResourceString("NotSupported_CallToVarArg")); 737throw new TargetParameterCountException(Environment.GetResourceString("Arg_ParmCnt")); 779throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_ParamSequence")); 897get { throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInDynamicMethod")); } 931throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"), "this");
system\reflection\emit\enumbuilder.cs (2)
196throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 412throw new ArgumentException(Environment.GetResourceString("Argument_ShouldOnlySetVisibilityFlags"), "name");
system\reflection\emit\fieldbuilder.cs (9)
42throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "fieldName"); 45throw new ArgumentException(Environment.GetResourceString("Argument_IllegalName"), "fieldName"); 51throw new ArgumentException(Environment.GetResourceString("Argument_BadFieldType")); 135throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 144throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 149get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); } 163throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 169throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 175throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
system\reflection\emit\generictypeparameterbuilder.cs (1)
197public override Type MakeGenericType(params Type[] typeArguments) { throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericTypeDefinition")); }
system\reflection\emit\ilgenerator.cs (30)
253throw new ArgumentException(Environment.GetResourceString("Argument_UnclosedExceptionBlock")); 282throw new NotSupportedException(Environment.GetResourceString("NotSupported_IllegalOneByteBranch",m_fixupData[i].m_fixupPos, updateAddr)); 309throw new NotSupportedException(Environment.GetResourceString(ResId.Argument_UnclosedExceptionBlock)); 363throw new ArgumentException(Environment.GetResourceString("Argument_BadLabel")); 366throw new ArgumentException(Environment.GetResourceString("Argument_BadLabelContent")); 528throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAVarArgCallingConvention")); 613throw new ArgumentException(Environment.GetResourceString("Argument_NotMethodCallOpcode"), "opcode"); 873throw new ArgumentException(Environment.GetResourceString("Argument_UnmatchedMethodForLocal"), "local"); 941throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadInstructionOrIndexOutOfBound")); 995throw new NotSupportedException(Environment.GetResourceString("Argument_NotInExceptionBlock")); 1011throw new InvalidOperationException(Environment.GetResourceString("Argument_BadExceptionCodeGen")); 1036throw new NotSupportedException(Environment.GetResourceString("Argument_NotInExceptionBlock")); 1051throw new NotSupportedException(Environment.GetResourceString("Argument_NotInExceptionBlock")); 1057throw new ArgumentException(Environment.GetResourceString("Argument_ShouldNotSpecifyExceptionType")); 1078throw new NotSupportedException(Environment.GetResourceString("Argument_NotInExceptionBlock")); 1092throw new NotSupportedException(Environment.GetResourceString("Argument_NotInExceptionBlock")); 1148throw new ArgumentException (Environment.GetResourceString("Argument_InvalidLabel")); 1152throw new ArgumentException (Environment.GetResourceString("Argument_RedefinedLabel")); 1170throw new ArgumentException(Environment.GetResourceString("Argument_NotExceptionType")); 1175throw new ArgumentException(Environment.GetResourceString("Argument_MissingDefaultConstructor")); 1202throw new ArgumentException(Environment.GetResourceString("InvalidOperation_BadILGeneratorUsage")); 1211throw new ArgumentException(Environment.GetResourceString("NotSupported_OutputStreamUsingTypeBuilder")); 1216throw new ArgumentException(Environment.GetResourceString("Argument_EmitWriteLineType"), "localBuilder"); 1249throw new NotSupportedException(Environment.GetResourceString("NotSupported_OutputStreamUsingTypeBuilder")); 1254throw new ArgumentException(Environment.GetResourceString("Argument_EmitWriteLineType"), "fld"); 1281throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TypeHasBeenCreated")); 1289throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MethodBaked")); 1309throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "usingNamespace"); 1531throw new ArgumentException(Environment.GetResourceString("Argument_TooManyFinallyClause")); 1717throw new ArgumentException(Environment.GetResourceString("Argument_UnmatchingSymScope"));
system\reflection\emit\localbuilder.cs (2)
85throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_TypeHasBeenCreated")); 92throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotADebugModule"));
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\methodbuilderinstantiation.cs (2)
65public override RuntimeMethodHandle MethodHandle { get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); } } 94throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericMethodDefinition"));
system\reflection\emit\methodrental.cs (4)
56throw new ArgumentException(Environment.GetResourceString("Argument_BadSizeForData"), "methodSize"); 73throw new NotSupportedException(Environment.GetResourceString("NotSupported_NotDynamicModule")); 82throw new NotSupportedException(Environment.GetResourceString("NotSupported_NotAllTypesAreBaked", typeBuilder.Name)); 94throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "cls");
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\modulebuilderdata.cs (1)
56throw new ArgumentException(Environment.GetResourceString("Argument_NoModuleFileExtension", strFileName));
system\reflection\emit\propertybuilder.cs (11)
54throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name"); 56throw new ArgumentException(Environment.GetResourceString("Argument_IllegalName"), "name"); 183throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 188throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 193throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 198throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 203throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 228throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 248throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 253throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule")); 258throw new NotSupportedException(Environment.GetResourceString("NotSupported_DynamicModule"));
system\reflection\emit\signaturehelper.cs (18)
128throw new ArgumentException(Environment.GetResourceString("Argument_UnknownUnmanagedCallConv"), "unmanagedCallConv"); 234throw new ArgumentException(Environment.GetResourceString("Argument_BadFieldSig")); 264throw new ArgumentException(Environment.GetResourceString("NotSupported_MustBeModuleBuilder")); 323throw new ArgumentException(Environment.GetResourceString("Argument_ArraysInvalid"), "optionalCustomModifiers"); 326throw new ArgumentException(Environment.GetResourceString("Argument_GenericsInvalid"), "optionalCustomModifiers"); 346throw new ArgumentException(Environment.GetResourceString("Argument_ArraysInvalid"), "requiredCustomModifiers"); 349throw new ArgumentException(Environment.GetResourceString("Argument_GenericsInvalid"), "requiredCustomModifiers"); 533throw new ArgumentException(Environment.GetResourceString("Argument_LargeInteger")); 589throw new ArgumentException(Environment.GetResourceString("Argument_LargeInteger")); 810throw new ArgumentException(Environment.GetResourceString("Argument_LargeInteger")); 840throw new ArgumentException(Environment.GetResourceString("Argument_MismatchedArrays", "requiredCustomModifiers", "arguments")); 843throw new ArgumentException(Environment.GetResourceString("Argument_MismatchedArrays", "optionalCustomModifiers", "arguments")); 860throw new ArgumentException(Environment.GetResourceString("Argument_SigIsFinalized")); 950sb.Append("Length: " + m_currSig + Environment.NewLine); 954sb.Append("Arguments: " + m_signature[m_sizeLoc] + Environment.NewLine); 958sb.Append("Field Signature" + Environment.NewLine); 961sb.Append("Signature: " + Environment.NewLine); 967sb.Append(Environment.NewLine);
system\reflection\emit\symbolmethod.cs (8)
105throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); 110throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); 115get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); } 125get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); } 146throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); 158throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); 163throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); 168throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod"));
system\reflection\emit\symboltype.cs (29)
70throw new ArgumentException(Environment.GetResourceString("Argument_BadSigFormat")); 133throw new ArgumentException(Environment.GetResourceString("Argument_BadSigFormat")); 163throw new ArgumentException(Environment.GetResourceString("Argument_BadSigFormat")); 181throw new ArgumentException(Environment.GetResourceString("Argument_BadSigFormat")); 329throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); 337get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); } 343throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 371get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); } 423throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 429throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 435throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 440throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 445throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 450throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 455throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 460throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 465throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 470throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 476throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 481throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 486throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 491throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 496throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 501throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 507throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 512throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 579throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 584throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType")); 589throw new NotSupportedException(Environment.GetResourceString("NotSupported_NonReflectedType"));
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\emit\typebuilderinstantiation.cs (1)
224public override Type MakeGenericType(params Type[] inst) { throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericTypeDefinition")); }
system\reflection\emit\unmanagedmarshal.cs (4)
34throw new ArgumentException(Environment.GetResourceString("Argument_NotASimpleNativeType")); 77throw new ArgumentException(Environment.GetResourceString("Argument_NotACustomMarshaler")); 88throw new ArgumentException(Environment.GetResourceString("Argument_NoUnmanagedElementCount")); 100throw new ArgumentException(Environment.GetResourceString("Argument_NoNestedMarshal"));
system\reflection\emit\xxxontypebuilderinstantiation.cs (1)
92throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericMethodDefinition"));
system\reflection\eventinfo.cs (7)
123throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NoPublicAddMethod")); 127throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotSupportedOnWinRTEvent")); 143throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NoPublicRemoveMethod")); 150throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotSupportedOnWinRTEvent")); 297throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NoPublicAddMethod")); 318throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType"); 333throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");
system\reflection\fieldinfo.cs (22)
41throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHandle")); 48CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_FieldDeclaringTypeGeneric"), 58throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHandle")); 117throw new NotSupportedException(Environment.GetResourceString("NotSupported_AbstractNonCLS")); 123throw new NotSupportedException(Environment.GetResourceString("NotSupported_AbstractNonCLS")); 132public virtual Object GetRawConstantValue() { throw new NotSupportedException(Environment.GetResourceString("NotSupported_AbstractNonCLS")); } 341throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType"); 356throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType"); 528throw new TargetException(Environment.GetResourceString("RFLCT.Targ_StatFldReqTarg")); 533String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Arg_FieldDeclTarget"), 562throw new InvalidOperationException(Environment.GetResourceString("Arg_UnboundGenField")); 565throw new InvalidOperationException(Environment.GetResourceString("Arg_ReflectionOnlyField")); 581throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName)); 641throw new InvalidOperationException(Environment.GetResourceString("Arg_UnboundGenField")); 644throw new InvalidOperationException(Environment.GetResourceString("Arg_ReflectionOnlyField")); 656throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName)); 748throw new ArgumentException(Environment.GetResourceString("Arg_TypedReference_Null")); 773throw new ArgumentException(Environment.GetResourceString("Arg_TypedReference_Null")); 789throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInReflectionOnly")); 906throw new FieldAccessException(Environment.GetResourceString("Acc_ReadOnly")); 926throw new NotSupportedException(Environment.GetResourceString("Arg_EnumLitValueNotFound")); 935throw new FieldAccessException(Environment.GetResourceString("Acc_ReadOnly"));
system\reflection\invalidfiltercriteriaexception.cs (1)
30: base(Environment.GetResourceString("Arg_InvalidFilterCriteriaException")) {
system\reflection\loaderallocator.cs (1)
53if (!Environment.HasShutdownStarted &&
system\reflection\mdconstant.cs (3)
75throw new FormatException(Environment.GetResourceString("Arg_BadLiteralFormat")); 101throw new FormatException(Environment.GetResourceString("Arg_BadLiteralFormat")); 164throw new FormatException(Environment.GetResourceString("Arg_BadLiteralFormat"));
system\reflection\memberinfoserializationholder.cs (12)
77throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState")); 94throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_Method)); 103throw new SerializationException(Environment.GetResourceString(ResId.Serialization_InsufficientState)); 117throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMember", m_memberName)); 129throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMember", m_memberName)); 141throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMember", m_memberName)); 163throw new SerializationException(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName)); 171throw new SerializationException(Environment.GetResourceString(ResId.Serialization_NullSignature)); 195throw new SerializationException(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName)); 205throw new SerializationException(Environment.GetResourceString(ResId.Serialization_NullSignature)); 266throw new SerializationException(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName)); 282throw new ArgumentException(Environment.GetResourceString("Serialization_MemberTypeNotRecognized"));
system\reflection\methodbase.cs (5)
65throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHandle")); 72CultureInfo.CurrentCulture, Environment.GetResourceString("Argument_MethodDeclaringTypeGeneric"), 82throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHandle")); 184public virtual Type[] GetGenericArguments() { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 355throw new ArgumentException(Environment.GetResourceString("Arg_VarMissNull"),"parameters");
system\reflection\methodbody.cs (2)
58throw new InvalidOperationException(Environment.GetResourceString("Arg_EHClauseNotFilter")); 69throw new InvalidOperationException(Environment.GetResourceString("Arg_EHClauseNotClause"));
system\reflection\methodinfo.cs (20)
88public override Type[] GetGenericArguments() { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 91public virtual MethodInfo GetGenericMethodDefinition() { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 93public virtual MethodInfo MakeGenericMethod(params Type[] typeArguments) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 95public virtual Delegate CreateDelegate(Type delegateType) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 96public virtual Delegate CreateDelegate(Type delegateType, Object target) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 493throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType"); 507throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType"); 622throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInReflectionOnly")); 661throw new TargetException(Environment.GetResourceString("RFLCT.Targ_StatMethReqTarg")); 663throw new TargetException(Environment.GetResourceString("RFLCT.Targ_ITargMismatch")); 675throw new InvalidOperationException(Environment.GetResourceString("Arg_ReflectionOnlyInvoke")); 690throw new InvalidOperationException(Environment.GetResourceString("Arg_UnboundGenParam")); 700throw new NotSupportedException(Environment.GetResourceString("NotSupported_ByRefReturn")); 723throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName)); 793throw new TargetParameterCountException(Environment.GetResourceString("Arg_ParmCnt")); 899throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "delegateType"); 902throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDelegate"), "delegateType"); 907throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTargMeth")); 927Environment.GetResourceString("Arg_NotGenericMethodDefinition", this)); 1036throw new NotSupportedException(Environment.GetResourceString("NotSupported_GlobalMethodSerialization"));
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\reflection\parameterinfo.cs (10)
224throw new SerializationException(Environment.GetResourceString(ResId.Serialization_InsufficientState)); 237throw new SerializationException(Environment.GetResourceString(ResId.Serialization_BadParameterInfo)); 246throw new SerializationException(Environment.GetResourceString(ResId.Serialization_BadParameterInfo)); 255throw new SerializationException(Environment.GetResourceString(ResId.Serialization_BadParameterInfo)); 258throw new SerializationException(Environment.GetResourceString(ResId.Serialization_NoParameterInfo)); 312throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ParameterSignatureMismatch")); 328throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ParameterSignatureMismatch")); 336throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ParameterSignatureMismatch")); 749throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "attributeType"); 767throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"), "attributeType");
system\reflection\parametermodifier.cs (1)
26throw new ArgumentException(Environment.GetResourceString("Arg_ParmArraySize"));
system\reflection\pointer.cs (3)
47throw new ArgumentException(Environment.GetResourceString("Arg_MustBePointer"),"ptr"); 52throw new ArgumentException(Environment.GetResourceString("Arg_MustBePointer"), "ptr"); 64throw new ArgumentException(Environment.GetResourceString("Arg_MustBePointer"),"ptr");
system\reflection\propertyinfo.cs (5)
387throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType"); 402throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType"); 477throw new InvalidOperationException(Environment.GetResourceString("Arg_EnumLitValueNotFound")); 629throw new ArgumentException(System.Environment.GetResourceString("Arg_GetMethNotFnd")); 653throw new ArgumentException(System.Environment.GetResourceString("Arg_SetMethNotFnd"));
system\reflection\reflectiontypeloadexception.cs (1)
34: base(Environment.GetResourceString("ReflectionTypeLoad_LoadFailed")) {
system\reflection\RuntimeReflectionExtensions.cs (3)
13if (!(t is RuntimeType)) throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 19if (!(m is RuntimeMethodInfo)) throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo")); 73if (!(typeInfo is RuntimeType)) throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
system\reflection\strongnamekeypair.cs (1)
162throw new ArgumentException(Environment.GetResourceString("Argument_StrongNameGetPublicKey"));
system\reflection\targetinvocationexception.cs (2)
32: base(Environment.GetResourceString("Arg_TargetInvocationException")) { 42: base(Environment.GetResourceString("Arg_TargetInvocationException"), inner) {
system\reflection\targetparametercountexception.cs (1)
30: base(Environment.GetResourceString("Arg_TargetParameterCountException")) {
system\resources\filebasedresourcegroveler.cs (3)
68throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_NoNeutralDisk") + Environment.NewLine + "baseName: " + _mediator.BaseNameField + " locationInfo: " + (_mediator.LocationInfo == null ? "<null>" : _mediator.LocationInfo.FullName) + " fileName: " + _mediator.GetResourceFileName(culture)); 176throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResMgrBadResSet_Type", _mediator.UserResourceSet.AssemblyQualifiedName), e);
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\missingmanifestresourceexception.cs (1)
27: base(Environment.GetResourceString("Arg_MissingManifestResourceException")) {
system\resources\missingsatelliteassemblyexception.cs (1)
31: base(Environment.GetResourceString("MissingSatelliteAssembly_Default")) {
system\resources\neutralresourceslanguageattribute.cs (1)
52throw new ArgumentException(Environment.GetResourceString("Arg_InvalidNeutralResourcesLanguage_FallbackLoc", location));
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\resources\resourceset.cs (6)
215throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_ResourceSet")); 228throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Name", name)); 243throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Name", name)); 257throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Name", name)); 304throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_ResourceSet")); 314throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_ResourceSet"));
system\resources\resourcewriter.cs (11)
119throw new ArgumentException(Environment.GetResourceString("Argument_StreamNotWritable")); 135throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceWriterSaved")); 151throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceWriterSaved")); 176throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceWriterSaved")); 191throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceWriterSaved")); 208throw new ArgumentException(Environment.GetResourceString("NotSupported_UnseekableStream")); 225throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceWriterSaved")); 242throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceWriterSaved")); 288throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceWriterSaved")); 688throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_StreamLength")); 700throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_StreamLength"));
system\resources\runtimeresourceset.cs (3)
261throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_ResourceSet")); 294throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_ResourceSet")); 302throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_ResourceSet"));
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\compilerservices\AsyncMethodBuilder.cs (3)
610throw new InvalidOperationException(Environment.GetResourceString("TaskT_TransitionToFinal_AlreadyCompleted")); 675throw new InvalidOperationException(Environment.GetResourceString("TaskT_TransitionToFinal_AlreadyCompleted")); 888if (m_stateMachine != null) throw new InvalidOperationException(Environment.GetResourceString("AsyncMethodBuilder_InstanceNotInitialized"));
system\runtime\compilerservices\ConditionalWeakTable.cs (2)
588throw new InvalidOperationException(Environment.GetResourceString("CollectionCorrupted")); 603if (Environment.HasShutdownStarted)
system\runtime\compilerservices\RuntimeWrappedException.cs (1)
27: base(Environment.GetResourceString("RuntimeWrappedException")) {
system\runtime\designerservices\windowsruntimedesignercontext.cs (2)
38throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_Path")); 42throw new ArgumentException(Environment.GetResourceString("Argument_AbsolutePathRequired"));
system\runtime\exceptionservices\exceptionservicescommon.cs (1)
106throw new ArgumentNullException("source", Environment.GetResourceString("ArgumentNull_Obj"));
system\runtime\gcsettings.cs (2)
59throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum")); 86throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum"));
system\runtime\interopservices\comexception.cs (2)
30: base(Environment.GetResourceString("Arg_COMException")) 85s += Environment.NewLine + StackTrace;
system\runtime\interopservices\currencywrapper.cs (1)
32throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDecimal"), "obj");
system\runtime\interopservices\errorwrapper.cs (1)
33throw new ArgumentException(Environment.GetResourceString("Arg_MustBeInt32"), "errorCode");
system\runtime\interopservices\externalexception.cs (2)
29: base(Environment.GetResourceString("Arg_ExternalException")) { 76s += Environment.NewLine + StackTrace;
system\runtime\interopservices\gchandle.cs (7)
66throw new ArgumentOutOfRangeException("type", Environment.GetResourceString("ArgumentOutOfRange_Enum")); 131throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HandleIsNotInitialized")); 143throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HandleIsNotInitialized")); 153throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HandleIsNotInitialized")); 169throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HandleIsNotInitialized")); 172throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HandleIsNotPinned")); 200throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HandleIsNotInitialized"));
system\runtime\interopservices\gchandlecookietable.cs (1)
95throw new OutOfMemoryException(Environment.GetResourceString("OutOfMemory_GCHandleMDA"));
system\runtime\interopservices\invalidcomobjectexception.cs (1)
25: base(Environment.GetResourceString("Arg_InvalidComObjectException")) {
system\runtime\interopservices\invalidolevarianttypeexception.cs (1)
23: base(Environment.GetResourceString("Arg_InvalidOleVariantTypeException")) {
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\marshaldirectiveexception.cs (1)
25: base(Environment.GetResourceString("Arg_MarshalDirectiveException")) {
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\safearrayrankmismatchexception.cs (1)
23: base(Environment.GetResourceString("Arg_SafeArrayRankMismatchException")) {
system\runtime\interopservices\safearraytypemismatchexception.cs (1)
24: base(Environment.GetResourceString("Arg_SafeArrayTypeMismatchException")) {
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\typelibconverter.cs (6)
103throw new ArgumentException(Environment.GetResourceString("Arg_InvalidFileName"), "asmFileName"); 105throw new ArgumentException(Environment.GetResourceString("IO.PathTooLong"), asmFileName); 107throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_PIAMustBeStrongNamed")); 321throw new ArgumentException(Environment.GetResourceString("Arg_InvalidFileExtension")); 430String strProductName = String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("TypeLibConverter_ImportedTypeLibProductName"), strTypeLibName); 537throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"));
system\runtime\interopservices\windowsruntime\bindablevectortocollectionadapter.cs (4)
45throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge")); 77throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported")); 97throw new ArgumentException(Environment.GetResourceString("Argument_InsufficientSpaceToCopyCollection")); 100throw new ArgumentException(Environment.GetResourceString("Argument_IndexOutOfArrayBounds"));
system\runtime\interopservices\windowsruntime\bindablevectortolistadapter.cs (3)
68throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge")); 122throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge")); 152throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
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\interopservices\windowsruntime\constantsplittablemap.cs (4)
68Exception e = new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingDictionaryTooLarge")); 141Exception e = new KeyNotFoundException(Environment.GetResourceString("Arg_KeyNotFound")); 267if (_current < _start) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted)); 268if (_current > _end) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));
system\runtime\interopservices\windowsruntime\custompropertyimpl.cs (3)
112throw new ArgumentException(System.Environment.GetResourceString(getValue ? "Arg_GetMethNotFnd" : "Arg_SetMethNotFnd")); 118Environment.GetResourceString("Arg_MethodAccessException_WithMethodName"), 124throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeMethodInfo"));
system\runtime\interopservices\windowsruntime\dictionarykeycollection.cs (5)
37throw new ArgumentException(Environment.GetResourceString("Arg_IndexOutOfRangeException")); 39throw new ArgumentException(Environment.GetResourceString("Argument_InsufficientSpaceToCopyCollection")); 58throw new NotSupportedException(Environment.GetResourceString("NotSupported_KeyCollectionSet")); 63throw new NotSupportedException(Environment.GetResourceString("NotSupported_KeyCollectionSet")); 73throw new NotSupportedException(Environment.GetResourceString("NotSupported_KeyCollectionSet"));
system\runtime\interopservices\windowsruntime\dictionarytomapadapter.cs (2)
47Exception e = new KeyNotFoundException(Environment.GetResourceString("Arg_KeyNotFound")); 107Exception e = new KeyNotFoundException(Environment.GetResourceString("Arg_KeyNotFound"));
system\runtime\interopservices\windowsruntime\dictionaryvaluecollection.cs (5)
40throw new ArgumentException(Environment.GetResourceString("Arg_IndexOutOfRangeException")); 42throw new ArgumentException(Environment.GetResourceString("Argument_InsufficientSpaceToCopyCollection")); 61throw new NotSupportedException(Environment.GetResourceString("NotSupported_ValueCollectionSet")); 66throw new NotSupportedException(Environment.GetResourceString("NotSupported_ValueCollectionSet")); 80throw new NotSupportedException(Environment.GetResourceString("NotSupported_ValueCollectionSet"));
system\runtime\interopservices\windowsruntime\eventregistrationtokentable.cs (1)
35throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EventTokenTableRequiresDelegate", typeof(T)));
system\runtime\interopservices\windowsruntime\imapviewtoireadonlydictionaryadapter.cs (1)
125throw new KeyNotFoundException(Environment.GetResourceString("Arg_KeyNotFound"));
system\runtime\interopservices\windowsruntime\ireadonlydictionarytoimapviewadapter.cs (1)
47Exception e = new KeyNotFoundException(Environment.GetResourceString("Arg_KeyNotFound"));
system\runtime\interopservices\windowsruntime\ireadonlylisttoivectorviewadapter.cs (1)
136Exception e = new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_IndexLargerThanMaxValue"));
system\runtime\interopservices\windowsruntime\listtobindablevectoradapter.cs (2)
160Exception e = new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotRemoveLastFromEmptyCollection")); 185Exception e = new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_IndexLargerThanMaxValue"));
system\runtime\interopservices\windowsruntime\listtobindablevectorviewadapter.cs (1)
44Exception e = new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_IndexLargerThanMaxValue"));
system\runtime\interopservices\windowsruntime\listtovectoradapter.cs (2)
169Exception e = new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotRemoveLastFromEmptyCollection")); 218Exception e = new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_IndexLargerThanMaxValue"));
system\runtime\interopservices\windowsruntime\managedactivationfactory.cs (1)
49throw new ArgumentException(Environment.GetResourceString("Argument_TypeNotActivatableViaWindowsRuntime", type), "type");
system\runtime\interopservices\windowsruntime\maptocollectionadapter.cs (5)
52throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingDictionaryTooLarge")); 64throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge")); 151throw new ArgumentException(Environment.GetResourceString("Argument_IndexOutOfArrayBounds")); 154throw new ArgumentException(Environment.GetResourceString("Argument_InsufficientSpaceToCopyCollection")); 187throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
system\runtime\interopservices\windowsruntime\maptodictionaryadapter.cs (2)
99throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate")); 173throw new KeyNotFoundException(Environment.GetResourceString("Arg_KeyNotFound"));
system\runtime\interopservices\windowsruntime\mapviewtoreadonlycollectionadapter.cs (2)
52throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingDictionaryTooLarge")); 64throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
system\runtime\interopservices\windowsruntime\vectortocollectionadapter.cs (4)
44throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge")); 94throw new ArgumentException(Environment.GetResourceString("Argument_IndexOutOfArrayBounds")); 97throw new ArgumentException(Environment.GetResourceString("Argument_InsufficientSpaceToCopyCollection")); 123throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
system\runtime\interopservices\windowsruntime\vectortolistadapter.cs (1)
71throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
system\runtime\interopservices\windowsruntime\vectorviewtoreadonlycollectionadapter.cs (1)
44throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (11)
1008if (i < 3 && Environment.ProcessorCount > 1) 1054Contract.Requires(Environment.IsWinRTSupported); 1078message = Environment.GetResourceString(messageResource); 1084string message = (messageResource != null ? Environment.GetResourceString(messageResource) : null); 1241AppDomain hostDomain = AppDomain.CreateDomain(Environment.GetResourceString("WinRTHostDomainName", appBase), null, hostDomainSetup); 1301if (!Environment.IsWinRTSupported) 1302throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 1319if (!Environment.IsWinRTSupported) 1321throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 1330if (!Environment.IsWinRTSupported) 1331throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT"));
system\runtime\interopservices\windowsruntime\windowsruntimemetadata.cs (1)
134throw new ArgumentException(Environment.GetResourceString("Arg_EmptyOrNullString"), "DesignerNamespaceResolveEventArgs.ResolvedAssemblyFiles");
system\runtime\memoryfailpoint.cs (7)
164throw new ArgumentOutOfRangeException("sizeInMegabytes", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 183throw new InsufficientMemoryException(Environment.GetResourceString("InsufficientMemory_MemFailPoint_TooBig")); 217long now = Environment.TickCount; // Handle wraparound. 271InsufficientMemoryException e = new InsufficientMemoryException(Environment.GetResourceString("InsufficientMemory_MemFailPoint")); 282InsufficientMemoryException e = new InsufficientMemoryException(Environment.GetResourceString("InsufficientMemory_MemFailPoint_VAFrag")); 352LastTimeCheckingAddressSpace = Environment.TickCount; 355throw new InsufficientMemoryException(Environment.GetResourceString("InsufficientMemory_MemFailPoint_VAFrag"));
system\runtime\remoting\__transparentproxy.cs (1)
25throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_Constructor));
system\runtime\remoting\activationservices.cs (16)
149CultureInfo.CurrentCulture, Environment.GetResourceString( 191CultureInfo.CurrentCulture, Environment.GetResourceString( 210throw new NotSupportedException(Environment.GetResourceString("NotSupported_ActivForCom" )); 340Environment.GetResourceString( 377Environment.GetResourceString( 420Environment.GetResourceString( 607Environment.GetResourceString( 660Environment.GetResourceString( 688Environment.GetResourceString( 740Environment.GetResourceString( 851Environment.GetResourceString( 1143throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 1287CultureInfo.CurrentCulture, Environment.GetResourceString( 1420CultureInfo.CurrentCulture, Environment.GetResourceString( 1484CultureInfo.CurrentCulture, Environment.GetResourceString( 1494CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_BadType"),
system\runtime\remoting\asyncresult.cs (3)
112_replyMsg = new ReturnMessage(new RemotingException(Environment.GetResourceString("Remoting_NullMessage")), new ErrorMessage()); 116_replyMsg = new ReturnMessage(new RemotingException(Environment.GetResourceString("Remoting_Message_BadType")), new ErrorMessage()); 140Environment.GetResourceString("NotSupported_Method"));
system\runtime\remoting\channelservices.cs (8)
146throw new RemotingException(Environment.GetResourceString("Remoting_Channel_CannotBeSecured", chnl.ChannelName??chnl.ToString())); 211throw new RemotingException(Environment.GetResourceString("Remoting_ChannelNameAlreadyRegistered", chnl.ChannelName)); 247throw new RemotingException(Environment.GetResourceString("Remoting_ChannelNotRegistered", chnl.ChannelName)); 589throw new RemotingException(Environment.GetResourceString("Remoting_ChannelNotRegistered", "")); 682Environment.GetResourceString( 697Environment.GetResourceString( 719Environment.GetResourceString( 995throw new RemotingException(Environment.GetResourceString("Remoting_Disconnected",uri));
system\runtime\remoting\channelsinkstacks.cs (10)
113Environment.GetResourceString("Remoting_Channel_PopOnEmptySinkStack")); 128Environment.GetResourceString("Remoting_Channel_PopFromSinkStackWithoutPush")); 148Environment.GetResourceString( 276Environment.GetResourceString("Remoting_Channel_PopOnEmptySinkStack")); 291Environment.GetResourceString("Remoting_Channel_PopFromSinkStackWithoutPush")); 307Environment.GetResourceString( 323Environment.GetResourceString("Remoting_Channel_StoreOnSinkStackWithoutPush")); 349Environment.GetResourceString( 370Environment.GetResourceString( 388Environment.GetResourceString(
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\context.cs (16)
141Message.DebugOut("Creating Context with ID " + _ctxID + " and flags " + flags + " " + Environment.NewLine); 252Environment.GetResourceString("InvalidOperation_AddContextFrozen")); 290Environment.GetResourceString( 340Environment.GetResourceString( 383Environment.GetResourceString( 402Message.DebugOut("Context::GetClientContextChain: IN _ctxID =" + _ctxID + Environment.NewLine); 405Message.DebugOut("Context::GetClientContextChain: _clientContextChain == null, creating chain" + Environment.NewLine); 419_ctxProps[iSink].Name + Environment.NewLine); 427_ctxProps[iSink].Name + Environment.NewLine); 433Environment.GetResourceString( 474Environment.GetResourceString( 509Environment.GetResourceString( 640Environment.GetResourceString( 878throw new ArgumentException(Environment.GetResourceString("Argument_NonNullObjAndCtx")); 907throw new ArgumentException(Environment.GetResourceString("Argument_NonNullObjAndCtx")); 991CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Contexts_NoProperty"),
system\runtime\remoting\crossappdomainchannel.cs (2)
129Environment.GetResourceString( 152Environment.GetResourceString(
system\runtime\remoting\crosscontextchannel.cs (1)
486Environment.GetResourceString("NotSupported_Method"));
system\runtime\remoting\dispatchchannelsink.cs (2)
64Environment.GetResourceString("Remoting_Channel_DispatchSinkMessageMissing")); 72Environment.GetResourceString("Remoting_Channel_DispatchSinkWantsNullRequestStream"));
system\runtime\remoting\dynamicpropertyholder.cs (2)
94CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Contexts_NoProperty"), 187Environment.GetResourceString(
system\runtime\remoting\identity.cs (2)
469Environment.GetResourceString("Remoting_SetObjectUriForMarshal__UriExists")); 539CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Contexts_NoProperty"),
system\runtime\remoting\identityholder.cs (4)
419CultureInfo.CurrentCulture, Environment.GetResourceString( 589Environment.GetResourceString("Remoting_URIClash", 795Environment.GetResourceString("Remoting_NoIdentityEntry")); 827Environment.GetResourceString("Remoting_NoIdentityEntry"));
system\runtime\remoting\lease.cs (3)
110throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_InitialStateRenewOnCall", ((Enum)state).ToString())); 128throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_InitialStateSponsorshipTimeout", ((Enum)state).ToString())); 149throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_InitialStateInitialLeaseTime", ((Enum)state).ToString()));
system\runtime\remoting\lifetimeservices.cs (4)
97throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_SetOnce", "LeaseTime")); 118throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_SetOnce", "RenewOnCallTime")); 141throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_SetOnce", "SponsorshipTimeout")); 304throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_ILeaseReturn", leaseObj));
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\objref.cs (3)
459throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 795throw new RemotingException(Environment.GetResourceString("Serialization_AssemblyNotFound", assemName)); 993CultureInfo.CurrentCulture, Environment.GetResourceString(
system\runtime\remoting\proxyattribute.cs (4)
46throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 51Environment.GetResourceString( 57Environment.GetResourceString( 101Environment.GetResourceString(
system\runtime\remoting\realproxy.cs (17)
118Environment.GetResourceString("Remoting_Proxy_ProxyTypeIsNotMBR")); 187CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Proxy_BadTypeForActivation"), 348throw new ArgumentException(Environment.GetResourceString("ArgumentNull_Generic"), "s"); 399throw new RemotingException(Environment.GetResourceString( 419throw new RemotingException(Environment.GetResourceString( 472Environment.GetResourceString("Remoting_Proxy_ExpectedOriginalMessage")); 548Environment.GetResourceString("Remoting_Proxy_ReturnValueTypeCannotBeNull")); 553Environment.GetResourceString("Remoting_Proxy_BadReturnType")); 563Environment.GetResourceString("Remoting_Proxy_BadReturnType")); 580Environment.GetResourceString( 585throw new InvalidOperationException(Environment.GetResourceString( 601Environment.GetResourceString( 765Environment.GetResourceString( 868Environment.GetResourceString("Remoting_Proxy_BadReturnTypeForActivation")); 882Environment.GetResourceString("Remoting_Activation_NullReturnValue")); 896Environment.GetResourceString("Remoting_Activation_NullFromInternalUnmarshal")); 903Environment.GetResourceString(
system\runtime\remoting\remotingattributes.cs (3)
473throw new NotSupportedException(Environment.GetResourceString("InvalidOperation_Method")); 669Environment.GetResourceString("Remoting_Attribute_UseAttributeNotsettable")); } 732Environment.GetResourceString("Remoting_Attribute_UseAttributeNotsettable")); }
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\remotingconfiguration.cs (7)
253throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 280throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 303throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 372throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly")); 431throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly")); 495throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 565throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
system\runtime\remoting\remotingexception.cs (3)
28private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); 61private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); 88private static String _nullMessage = Environment.GetResourceString("Remoting_Default");
system\runtime\remoting\remotingproxy.cs (9)
112Environment.GetResourceString( 138Environment.GetResourceString("Remoting_Message_BadType")); 216throw new RemotingException(Environment.GetResourceString("Remoting_Proxy_InvalidCall")); 247Environment.GetResourceString("Remoting_Proxy_InvalidCallType")); 261Environment.GetResourceString("Remoting_ServerObjectNotFound", reqMcmMsg.Uri)); 301Environment.GetResourceString("Remoting_Proxy_NoChannelSink")); 450Environment.GetResourceString("Remoting_Proxy_InvalidState")); 553Environment.GetResourceString( 646throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
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\remotingsurrogateselector.cs (6)
170throw new NotSupportedException(Environment.GetResourceString("NotSupported_PopulateData")); 204throw new NotSupportedException(Environment.GetResourceString("NotSupported_PopulateData")); 408throw new NotSupportedException(Environment.GetResourceString("NotSupported_PopulateData")); 479throw new RemotingException(Environment.GetResourceString("Remoting_InvalidMsg")); 538throw new RemotingException(Environment.GetResourceString("Remoting_InvalidMsg")); 545throw new NotSupportedException(Environment.GetResourceString("NotSupported_PopulateData"));
system\runtime\remoting\serveridentity.cs (2)
288CultureInfo.CurrentCulture, Environment.GetResourceString( 415throw new ArgumentException(Environment.GetResourceString("Arg_PropNotFound") );
system\runtime\remoting\soap.cs (4)
176throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); 234throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"), "assembly"); 485throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeReflectionObject")); 531throw 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\remoting\stackbuildersink.cs (4)
355CultureInfo.CurrentCulture, Environment.GetResourceString( 391CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_InvalidCallingType"), 418CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_InvalidCallingType"), 446Environment.GetResourceString("Remoting_CantInvokeIRemoteDispatch"));
system\runtime\remoting\synchronizeddispatch.cs (1)
166throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "flag");
system\runtime\remoting\terminatorsinks.cs (2)
55return new ReturnMessage(new RemotingException(Environment.GetResourceString("Remoting_Activation_AsyncUnsupported")), 85throw new ArgumentException(Environment.GetResourceString("Remoting_ServerObjectNotFound", objURI));
system\runtime\remoting\trackingservices.cs (2)
94throw new RemotingException(Environment.GetResourceString("Remoting_TrackingHandlerAlreadyRegistered", "handler")); 115throw new RemotingException(Environment.GetResourceString("Remoting_HandlerNotRegistered", handler));
system\runtime\serialization\formatter.cs (1)
63throw new SerializationException(Environment.GetResourceString("Serialization_NoID"));
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (17)
89throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyId",typeInformation)); 172throw new SerializationException(Environment.GetResourceString("Serialization_TypeWrite",((Enum)binaryTypeEnum).ToString())); 203throw new SerializationException(Environment.GetResourceString("Serialization_TypeRead",((Enum)binaryTypeEnum).ToString())); 268throw new SerializationException(Environment.GetResourceString("Serialization_TypeRead",((Enum)binaryTypeEnum).ToString())); 408throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyNotFound",assemblyString)); 464throw new SerializationException(Environment.GetResourceString("Serialization_InvalidFormat", BitConverter.ToString(headerBytes))); 825throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 832throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 839throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 846throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 853throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 1106throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 1113throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 1120throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 1127throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 1134throw new SerializationException(Environment.GetResourceString("Serialization_Method")); 2123throw new SerializationException(Environment.GetResourceString("Serialization_Assembly",objectName));
system\runtime\serialization\formatters\binary\binaryformatter.cs (3)
183throw new ArgumentNullException("serializationStream", Environment.GetResourceString("ArgumentNull_WithParamName",serializationStream)); 188throw new SerializationException(Environment.GetResourceString("Serialization_Stream")); 223throw new ArgumentNullException("serializationStream", Environment.GetResourceString("ArgumentNull_WithParamName", serializationStream));
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
768throw new SerializationException(Environment.GetResourceString("Serialization_TypeCode",((Enum)code).ToString()));
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\binaryobjectwriter.cs (4)
81throw new ArgumentNullException("graph", Environment.GetResourceString("ArgumentNull_Graph")); 84throw new ArgumentNullException("serWriter", Environment.GetResourceString("ArgumentNull_WithParamName", "serWriter")); 355throw new ArgumentNullException("objectInfo.obj", Environment.GetResourceString("ArgumentNull_Obj")); 1080throw new SerializationException(Environment.GetResourceString("Serialization_ObjNoID",realObj));
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\formatters\binary\binaryutilclasses.cs (3)
463throw new SerializationException(Environment.GetResourceString("Serialization_CorruptedStream")); 553throw new SerializationException(Environment.GetResourceString("Serialization_CorruptedStream")); 703throw new SerializationException(Environment.GetResourceString("Serialization_HeaderReflection",valueInfos.Length));
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\objectclonehelper.cs (2)
96throw new ArgumentException(Environment.GetResourceString("Arg_SerializationException")); 160throw new SerializationException(Environment.GetResourceString("Serialization_MissingMember",
system\runtime\serialization\objectidgenerator.cs (3)
95throw new ArgumentNullException("obj", Environment.GetResourceString("ArgumentNull_Obj")); 132throw new ArgumentNullException("obj", Environment.GetResourceString("ArgumentNull_Obj")); 165throw new SerializationException(Environment.GetResourceString("Serialization_TooManyElements"));
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\serialization\safeserializationmanager.cs (1)
230throw new ArgumentException(Environment.GetResourceString("Serialization_NonSerType", serializedState.GetType(), serializedState.GetType().Assembly.FullName));
system\runtime\serialization\serializationattributes.cs (1)
35throw new ArgumentException(Environment.GetResourceString("Serialization_OptionalFieldVersionValue"));
system\runtime\serialization\serializationexception.cs (1)
25private static String _nullMessage = Environment.GetResourceString("Arg_SerializationException");
system\runtime\serialization\serializationinfo.cs (3)
397throw new SerializationException(Environment.GetResourceString("Serialization_SameNameTwice")); 480throw new SerializationException(Environment.GetResourceString("Serialization_NotFound", name)); 527throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"));
system\runtime\serialization\serializationinfoenumerator.cs (5)
103throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen")); 112throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen")); 126throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen")); 134throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen")); 142throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumOpCantHappen"));
system\runtime\serialization\surrogateselector.cs (5)
96throw new SerializationException(Environment.GetResourceString("Serialization_DuplicateSelector")); 103throw new ArgumentException(Environment.GetResourceString("Serialization_SurrogateCycleInArgument"), "selector"); 117throw new ArgumentException(Environment.GetResourceString("Serialization_SurrogateCycle"), "selector"); 135throw new ArgumentException(Environment.GetResourceString("Serialization_SurrogateCycle"), "selector"); 151throw new ArgumentException(Environment.GetResourceString("Serialization_SurrogateCycle"), "selector");
system\runtime\serialization\valuetypefixupinfo.cs (3)
41throw new ArgumentException(Environment.GetResourceString("Argument_MustSupplyParent")); 57throw new ArgumentException(Environment.GetResourceString("Argument_MemberAndArray")); 61throw new ArgumentException(Environment.GetResourceString("Argument_MustSupplyContainer"));
system\runtime\versioning\binarycompatibility.cs (6)
368throw new ArgumentException(Environment.GetResourceString("Argument_StringZeroLength"), "frameworkName"); 378throw new ArgumentException(Environment.GetResourceString("Argument_FrameworkNameTooShort"), "frameworkName"); 388throw new ArgumentException(Environment.GetResourceString("Argument_FrameworkNameInvalid"), "frameworkName"); 404throw new ArgumentException(Environment.GetResourceString("SR.Argument_FrameworkNameInvalid"), "frameworkName"); 443throw new ArgumentException(Environment.GetResourceString("Argument_FrameworkNameInvalid"), "frameworkName"); 449throw new ArgumentException(Environment.GetResourceString("Argument_FrameworkNameMissingVersion"), "frameworkName");
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\sbyte.cs (5)
56throw new ArgumentException (Environment.GetResourceString("Arg_MustBeSByte")); 152throw new OverflowException(Environment.GetResourceString("Overflow_SByte"), e); 157throw new OverflowException(Environment.GetResourceString("Overflow_SByte")); 162if (i < MinValue || i > MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_SByte")); 276throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "SByte", "DateTime"));
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\commonobjectsecurity.cs (5)
54Environment.GetResourceString("Arg_MustBeIdentityReferenceType"), 280Environment.GetResourceString( "ArgumentOutOfRange_Enum" )); 321Environment.GetResourceString( "ArgumentOutOfRange_Enum" )); 327throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)rule.AccessControlType), "rule.AccessControlType" ); 407Environment.GetResourceString( "ArgumentOutOfRange_Enum" ));
system\security\accesscontrol\cryptokeysecurity.cs (1)
87throw new ArgumentException(Environment.GetResourceString("Argument_InvalidEnumValue", controlType, "controlType"), "controlType");
system\security\accesscontrol\directoryobjectsecurity.cs (6)
53throw new ArgumentException(Environment.GetResourceString("Arg_MustBeIdentityReferenceType"), "targetType"); 329Environment.GetResourceString( "ArgumentOutOfRange_Enum" )); 370Environment.GetResourceString( "ArgumentOutOfRange_Enum" )); 460Environment.GetResourceString( "ArgumentOutOfRange_Enum" )); 487Environment.GetResourceString("AccessControl_InvalidAccessRuleType"), 499Environment.GetResourceString("AccessControl_InvalidAuditRuleType"),
system\security\accesscontrol\eventwaithandlesecurity.cs (1)
145exception = new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", name));
system\security\accesscontrol\filesecurity.cs (4)
186throw new ArgumentOutOfRangeException("fileSystemRights", Environment.GetResourceString("Argument_InvalidEnumValue", fileSystemRights, "FileSystemRights")); 296throw new ArgumentOutOfRangeException("fileSystemRights", Environment.GetResourceString("Argument_InvalidEnumValue", fileSystemRights, "FileSystemRights")); 350exception = new ArgumentException(Environment.GetResourceString("Argument_InvalidName"),"name"); 354exception = new ArgumentException(Environment.GetResourceString("AccessControl_InvalidHandle"));
system\security\accesscontrol\mutexsecurity.cs (1)
145exception = new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", name));
system\security\accesscontrol\nativeobjectsecurity.cs (12)
140exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_InvalidOwner" ) ); 144exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_InvalidGroup" )); 148exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_UnexpectedError", error )); 153Environment.GetResourceString( "Argument_InvalidName" ), 162exception = new NotSupportedException( Environment.GetResourceString( "AccessControl_NoAssociatedSecurity" )); 167exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_UnexpectedError", error )); 285exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_InvalidOwner" ) ); 289exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_InvalidGroup" ) ); 294Environment.GetResourceString( "Argument_InvalidName" ), 299exception = new NotSupportedException( Environment.GetResourceString( "AccessControl_InvalidHandle" )); 307exception = new NotSupportedException(Environment.GetResourceString("AccessControl_NoAssociatedSecurity")); 312exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_UnexpectedError", error ));
system\security\accesscontrol\objectsecurity.cs (12)
180throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustLockForReadOrWrite" )); 190throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustLockForWrite" )); 203throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustLockForReadOrWrite" )); 213throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustLockForWrite" )); 226throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustLockForReadOrWrite" )); 236throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustLockForWrite" )); 249throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustLockForReadOrWrite" )); 259throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustLockForWrite" )); 615Environment.GetResourceString( "Arg_EnumAtLeastOneFlag" ), 665Environment.GetResourceString( "Arg_EnumAtLeastOneFlag" ), 699Environment.GetResourceString("AccessControl_InvalidAccessRuleType"), 726Environment.GetResourceString("AccessControl_InvalidAuditRuleType"),
system\security\accesscontrol\privilege.cs (4)
134Environment.GetResourceString( "Argument_InvalidPrivilegeName", 462throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustBeSameThread" )); 471throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustRevertPrivilege" )); 593throw new InvalidOperationException( Environment.GetResourceString( "InvalidOperation_MustBeSameThread" ));
system\security\accesscontrol\privilegenotheldexception.cs (3)
18: base( Environment.GetResourceString( "PrivilegeNotHeld_Default" )) 23: base( string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "PrivilegeNotHeld_Named" ), privilege )) 29: base( string.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "PrivilegeNotHeld_Named" ), privilege ), inner )
system\security\accesscontrol\registrysecurity.cs (3)
165exception = new IOException(Environment.GetResourceString("Arg_RegKeyNotFound", errorCode)); 169exception = new ArgumentException(Environment.GetResourceString("Arg_RegInvalidKeyName", "name")); 173exception = new ArgumentException(Environment.GetResourceString("AccessControl_InvalidHandle"));
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\accesscontrol\securitydescriptor.cs (16)
271Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" )); 278Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" )); 495Environment.GetResourceString( "ArgumentOutOfRange_NeedNonNegNum" )); 506Environment.GetResourceString( "ArgumentOutOfRange_ArrayTooSmall" )); 516Environment.GetResourceString( "AccessControl_InvalidSecurityDescriptorRevision" )); 545Environment.GetResourceString( "AccessControl_InvalidSecurityDescriptorSelfRelativeForm" ), 663Environment.GetResourceString( "ArgumentException_InvalidSDSddlForm" ), 673Environment.GetResourceString( "AccessControl_InvalidSidInSDDLString" ), 852Environment.GetResourceString( isContainer ? 862Environment.GetResourceString( isContainer ? 874Environment.GetResourceString( isDS ? 884Environment.GetResourceString( isDS ? 1080Environment.GetResourceString( this.IsContainer ? 1089Environment.GetResourceString(this.IsDS ? 1129Environment.GetResourceString( this.IsContainer ? 1138Environment.GetResourceString( this.IsDS ?
system\security\accesscontrol\win32.cs (3)
149Environment.GetResourceString( "Argument_InvalidSafeHandle" ), 169throw new InvalidOperationException(Environment.GetResourceString( "InvalidOperation_NoSecurityDescriptor" )); 327Environment.GetResourceString( "Argument_InvalidSafeHandle" ),
system\security\builtinpermissionsets.cs (7)
28Description = """ + Environment.GetResourceString("Policy_PS_Everything") + @""" 95Description = """ + Environment.GetResourceString("Policy_PS_Execution") + @"""> 106Description = """ + Environment.GetResourceString("Policy_PS_FullTrust") + @""" />"; 112Description = """ + Environment.GetResourceString("Policy_PS_Internet") + @"""> 136Description = """ + Environment.GetResourceString("Policy_PS_LocalIntranet") + @""" > 173Description = """ + Environment.GetResourceString("Policy_PS_Nothing") + @""" />"; 179Description = """ + Environment.GetResourceString("Policy_PS_SkipVerification") + @""">
system\security\claims\ClaimsIdentity.cs (4)
329throw new InvalidOperationException(Environment.GetResourceString("InvalidOperationException_ActorGraphCircular")); 476throw new InvalidOperationException(Environment.GetResourceString("InvalidOperationException_ActorGraphCircular")); 619throw new InvalidOperationException(Environment.GetResourceString("InvalidOperationException_ActorGraphCircular")); 708throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ClaimCannotBeRemoved", claim));
system\security\claims\ClaimsPrincipal.cs (1)
416throw new SerializationException(Environment.GetResourceString("Serialization_CorruptedStream"));
system\security\codeaccesspermission.cs (3)
163throw new NotSupportedException(Environment.GetResourceString( "NotSupported_SecurityPermissionUnion" )); 186throw new ArgumentException( Environment.GetResourceString( "Argument_NotAPermissionElement")); 191throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidXMLBadVersion") );
system\security\codeaccesssecurityengine.cs (14)
628System.Environment.FailFast(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 633throw new SecurityException( Environment.GetResourceString( "Security_MustRevertOverride" ) ); 646throw new NotSupportedException(Environment.GetResourceString("NotSupported_CasDeny")); 656System.Environment.FailFast(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 661throw new SecurityException( Environment.GetResourceString( "Security_MustRevertOverride" ) ); 676System.Environment.FailFast(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 681throw new SecurityException( Environment.GetResourceString( "Security_MustRevertOverride" ) ); 749throw new PolicyException(Environment.GetResourceString("Policy_NoExecutionPermission"), 782throw new PolicyException(Environment.GetResourceString("Policy_NullHostGrantSet", securityManager.GetType().FullName)); 796throw new PolicyException(Environment.GetResourceString("Policy_NoExecutionPermission")); 805throw new PolicyException(Environment.GetResourceString("Policy_GrantSetDoesNotMatchDomain", securityManager.GetType().FullName));
system\security\cryptography\asymmetricalgorithm.cs (1)
67throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize"));
system\security\cryptography\base64transforms.cs (15)
51if (inputOffset < 0) throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 52if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 53if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 60if (tempBytes.Length != 4) throw new CryptographicException(Environment.GetResourceString( "Cryptography_SSE_InvalidDataSize" )); 68if (inputOffset < 0) throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 69if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 70if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 146if (inputOffset < 0) throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 147if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 148if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 152throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_Generic")); 190if (inputOffset < 0) throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 191if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 192if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 196throw new ObjectDisposedException(null, Environment.GetResourceString("ObjectDisposed_Generic"));
system\security\cryptography\crypto.cs (1)
88: base(Environment.GetResourceString("Arg_CryptographyException")) {
system\security\cryptography\cryptoapitransform.cs (9)
115throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeyParameter"), "_rgArgIds[i]"); 204if (inputOffset < 0) throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 205if ((inputCount <= 0) || (inputCount % InputBlockSize != 0) || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 206if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 244if (inputOffset < 0) throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 245if ((inputCount < 0) || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 246if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 257throw new CryptographicException(Environment.GetResourceString("Cryptography_SSD_InvalidDataSize")); 318throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)value), "value");
system\security\cryptography\cryptoconfig.cs (6)
62if (Environment.OSVersion.Version.Major >= 6) { 546throw new ArgumentException(Environment.GetResourceString("Cryptography_AlgorithmTypesMustBeVisible"), "algorithm"); 558throw new ArgumentException(Environment.GetResourceString("Cryptography_AddNullOrEmptyName")); 703throw new ArgumentException(Environment.GetResourceString("Cryptography_AddNullOrEmptyName")); 769throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_InvalidOID")); 783throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_Config_EncodedOIDError"));
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\des.cs (5)
57throw new ArgumentException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 60throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"DES"); 63throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_SemiWeak"),"DES"); 84throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 99throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize"));
system\security\cryptography\descryptoserviceprovider.cs (8)
23throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_AlgorithmNotAvailable")); 35throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"DES"); 37throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_SemiWeak"),"DES"); 45throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"DES"); 47throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_SemiWeak"),"DES"); 79throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_OFBNotSupported")); 82throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_CFBSizeNotSupported")); 111throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidIVSize"));
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\cryptography\dsacryptoserviceprovider.cs (7)
72throw new ArgumentOutOfRangeException("dwKeySize", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 82if (!_randomKeyContainer || Environment.GetCompatibilityFlag(CompatibilityFlag.EagerlyGenerateRandomAsymmKeys)) 281throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name)); 295throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name)); 307throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_NoPrivateKey")); 311throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidHashSize", "SHA1", _sha1.HashSize / 8)); 333throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidHashSize", "SHA1", _sha1.HashSize / 8));
system\security\cryptography\dsasignaturedeformatter.cs (2)
52throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_InvalidOperation")); 63throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey"));
system\security\cryptography\dsasignatureformatter.cs (3)
52throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_InvalidOperation")); 61throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingOID")); 63throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey"));
system\security\cryptography\hashalgorithm.cs (10)
40throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_HashNotYetFinalized")); 96throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 98throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 100throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 138throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 140throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 142throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 161throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 163throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 165throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\security\cryptography\hmac.cs (2)
97throw new CryptographicException(Environment.GetResourceString("Cryptography_HashKeySet")); 107throw new CryptographicException(Environment.GetResourceString("Cryptography_HashNameSet"));
system\security\cryptography\icspasymmetricalgorithm.cs (6)
82throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_NotFound")); 106throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_NotFound")); 124throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_NotFound")); 142throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_NotFound")); 175throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_NotFound")); 197throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_NotFound"));
system\security\cryptography\keyedhashalgorithm.cs (1)
39throw new CryptographicException(Environment.GetResourceString("Cryptography_HashKeySet"));
system\security\cryptography\mactripledes.cs (7)
88throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidPaddingMode")); 194get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream")); } 198get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream")); } 199set { throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream")); } 207throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream")); 211throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnseekableStream")); 215throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnreadableStream"));
system\security\cryptography\md5cryptoserviceprovider.cs (1)
31throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NonCompliantFIPSAlgorithm"));
system\security\cryptography\passwordderivebytes.cs (9)
97throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_ValuesFixed", "HashName")); 107throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 110throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_ValuesFixed", "IterationCount")); 123throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_ValuesFixed", "Salt")); 213throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 217throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_InvalidAlgorithm")); 220throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_InvalidAlgorithm")); 224throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_InvalidIV")); 299throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_TooManyBytes"));
system\security\cryptography\randomnumbergenerator.cs (3)
55if (offset < 0) throw new ArgumentOutOfRangeException("offset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 56if (count < 0) throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 57if (offset + count > data.Length) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\security\cryptography\rc2.cs (4)
48throw new CryptographicException(Environment.GetResourceString("Cryptography_RC2_EKSKS")); 52throw new CryptographicException(Environment.GetResourceString("Cryptography_RC2_EKS40")); 57throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 65if (value < EffectiveKeySizeValue) throw new CryptographicException(Environment.GetResourceString("Cryptography_RC2_EKSKS"));
system\security\cryptography\rc2cryptoserviceprovider.cs (8)
40throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NonCompliantFIPSAlgorithm")); 43throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_AlgorithmNotAvailable")); 63throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_RC2_EKSKS2")); 114throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_OFBNotSupported")); 117throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_CFBSizeNotSupported")); 127throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 159throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidIVSize")); 174throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_AlgKeySizeNotAvailable", keySizeValue));
system\security\cryptography\rfc2898derivebytes.cs (12)
59throw new ArgumentOutOfRangeException("saltSize", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 61throw new ArgumentException(Environment.GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty"), nameof(hashAlgorithm)); 66throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name)); 100throw new ArgumentException(Environment.GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty"), nameof(hashAlgorithm)); 105throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name)); 128throw new ArgumentOutOfRangeException("value", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 141throw new ArgumentException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_FewBytesSalt")); 154throw new ArgumentOutOfRangeException("cb", Environment.GetResourceString("ArgumentOutOfRange_NeedPosNum")); 255throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 259throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_InvalidAlgorithm")); 263throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_InvalidAlgorithm")); 267throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_InvalidIV"));
system\security\cryptography\rijndaelmanaged.cs (1)
29throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NonCompliantFIPSAlgorithm"));
system\security\cryptography\rijndaelmanagedtransform.cs (23)
116throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidCipherMode")); 126throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidIVSize")); 244if (inputOffset < 0) throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 245if (inputCount <= 0 || (inputCount % InputBlockSize != 0) || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 246if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 312if (inputOffset < 0) throw new ArgumentOutOfRangeException("inputOffset", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 313if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 314if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 332throw new CryptographicException(Environment.GetResourceString("Cryptography_SSD_InvalidDataSize")); 393throw new CryptographicException(Environment.GetResourceString("Cryptography_InsufficientBuffer")); 406throw new CryptographicException(Environment.GetResourceString("Cryptography_SSE_InvalidDataSize")); 462throw new CryptographicException(Environment.GetResourceString("Cryptography_InsufficientBuffer")); 594throw new CryptographicException(Environment.GetResourceString("Cryptography_InsufficientBuffer")); 601throw new CryptographicException(Environment.GetResourceString("Cryptography_InsufficientBuffer")); 714throw new CryptographicException(Environment.GetResourceString("Cryptography_PKCS7_InvalidPadding")); 717throw new CryptographicException(Environment.GetResourceString("Cryptography_PKCS7_InvalidPadding")); 720throw new CryptographicException(Environment.GetResourceString("Cryptography_PKCS7_InvalidPadding")); 727throw new CryptographicException(Environment.GetResourceString("Cryptography_PKCS7_InvalidPadding")); 730throw new CryptographicException(Environment.GetResourceString("Cryptography_PKCS7_InvalidPadding")); 734throw new CryptographicException(Environment.GetResourceString("Cryptography_PKCS7_InvalidPadding")); 740throw new CryptographicException(Environment.GetResourceString("Cryptography_PKCS7_InvalidPadding")); 743throw new CryptographicException(Environment.GetResourceString("Cryptography_PKCS7_InvalidPadding")); 868throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize"));
system\security\cryptography\ripemd160managed.cs (1)
41throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NonCompliantFIPSAlgorithm"));
system\security\cryptography\rsa.cs (6)
202return new NotImplementedException(Environment.GetResourceString("NotSupported_SubclassOverride")); 206return new ArgumentException(Environment.GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty"), "hashAlgorithm"); 231throw new NotSupportedException(Environment.GetResourceString("NotSupported_Method")); 236throw new NotSupportedException(Environment.GetResourceString("NotSupported_Method")); 275throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","RSA","Modulus")); 282throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","RSA","Exponent"));
system\security\cryptography\rsacryptoserviceprovider.cs (8)
112throw new ArgumentOutOfRangeException("dwKeySize", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 124|| Environment.GetCompatibilityFlag(CompatibilityFlag.EagerlyGenerateRandomAsymmKeys) 344throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_NoPrivateKey")); 427throw new CryptographicException(Environment.GetResourceString("Cryptography_Padding_DecDataTooBig", KeySize / 8)); 444throw new NotSupportedException(Environment.GetResourceString("NotSupported_Method")); 448throw new NotSupportedException(Environment.GetResourceString("NotSupported_Method")); 567throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name)); 643return new CryptographicException(Environment.GetResourceString("Cryptography_InvalidPaddingMode"));
system\security\cryptography\RSAEncryptionPadding.cs (1)
62throw new ArgumentException(Environment.GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty"), "hashAlgorithm");
system\security\cryptography\rsaoaepkeyexchangedeformatter.cs (1)
44throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey"));
system\security\cryptography\rsaoaepkeyexchangeformatter.cs (1)
74throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey"));
system\security\cryptography\rsapkcs1keyexchangedeformatter.cs (2)
48throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey")); 72throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_PKCS1Decoding"));
system\security\cryptography\rsapkcs1keyexchangeformatter.cs (2)
59throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey")); 68throw new CryptographicException(Environment.GetResourceString("Cryptography_Padding_EncDataTooBig", cb-11));
system\security\cryptography\rsapkcs1signaturedeformatter.cs (2)
69throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingOID")); 71throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey"));
system\security\cryptography\rsapkcs1signatureformatter.cs (2)
60throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingOID")); 62throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_MissingKey"));
system\security\cryptography\sha1managed.cs (1)
43throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NonCompliantFIPSAlgorithm"));
system\security\cryptography\sha256managed.cs (1)
45throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NonCompliantFIPSAlgorithm"));
system\security\cryptography\sha384managed.cs (1)
43throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NonCompliantFIPSAlgorithm"));
system\security\cryptography\sha512managed.cs (1)
35throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NonCompliantFIPSAlgorithm"));
system\security\cryptography\symmetricalgorithm.cs (7)
104throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidBlockSize")); 112throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFeedbackSize")); 127throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidIVSize")); 142throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 162throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 173throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidCipherMode")); 183throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidPaddingMode"));
system\security\cryptography\tripledes.cs (7)
56throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 59throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"TripleDES"); 82throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKeySize")); 95if (start1 < 0) throw new ArgumentOutOfRangeException("start1", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 96if (start2 < 0) throw new ArgumentOutOfRangeException("start2", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 97if ((start1+count) > rgbKey.Length) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 98if ((start2+count) > rgbKey.Length) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue"));
system\security\cryptography\tripledescryptoserviceprovider.cs (6)
23throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_AlgorithmNotAvailable")); 35throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"TripleDES"); 42throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidKey_Weak"),"TripleDES"); 75throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_OFBNotSupported")); 78throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_CFBSizeNotSupported")); 107throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidIVSize"));
system\security\cryptography\utils.cs (16)
269throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NoSecurityDescriptor")); 328throw new NotSupportedException(Environment.GetResourceString("AccessControl_InvalidHandle")); 412throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_WrongKeySpec")); 479throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag")); 485if (!System.Environment.UserInteractive) 486throw new InvalidOperationException(Environment.GetResourceString("Cryptography_NotInteractive")); 527Contract.Assert(Environment.OSVersion.Version.Major < 6, "CryptGetFIPSAlgorithmMode should be used on Vista+"); 594throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 621throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 812throw new CryptographicException(String.Format(null, Environment.GetResourceString("Cryptography_Padding_EncDataTooBig"), cb-2-2*cbHash)); 867throw new CryptographicException(Environment.GetResourceString("Cryptography_OAEPDecoding")); 877throw new CryptographicException(Environment.GetResourceString("Cryptography_OAEPDecoding")); 911throw new CryptographicException(Environment.GetResourceString("Cryptography_OAEPDecoding")); 919throw new CryptographicException(Environment.GetResourceString("Cryptography_OAEPDecoding")); 923throw new CryptographicException(Environment.GetResourceString("Cryptography_OAEPDecoding")); 971throw new CryptographicUnexpectedOperationException(Environment.GetResourceString("Cryptography_InvalidOID"));
system\security\cryptography\x509certificates\x509certificate.cs (23)
191throw new ArgumentException(Environment.GetResourceString("Arg_InvalidHandle"), "handle"); 331Environment.GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty"), 423sb.Append("[Subject]" + Environment.NewLine + " "); 427sb.Append(Environment.NewLine + Environment.NewLine + "[Issuer]" + Environment.NewLine + " "); 431sb.Append(Environment.NewLine + Environment.NewLine + "[Serial Number]" + Environment.NewLine + " "); 435sb.Append(Environment.NewLine + Environment.NewLine + "[Not Before]" + Environment.NewLine + " "); 439sb.Append(Environment.NewLine + Environment.NewLine + "[Not After]" + Environment.NewLine + " "); 443sb.Append(Environment.NewLine + Environment.NewLine + "[Thumbprint]" + Environment.NewLine + " "); 446sb.Append(Environment.NewLine); 675throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidHandle"), "m_safeCertContext"); 757throw new CryptographicException(Environment.GetResourceString("Cryptography_X509_InvalidContentType")); 776throw new CryptographicException(Environment.GetResourceString("Cryptography_X509_ExportFailed")); 786throw new ArgumentException(Environment.GetResourceString("Arg_EmptyOrNullArray"), "rawData");
system\security\cryptography\x509certificates\x509utils.cs (3)
222throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidOID")); 264throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag"), "keyStorageFlags"); 274Environment.GetResourceString(
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\hostprotectionexception.cs (4)
104sb.Append(Environment.NewLine); 105sb.Append(Environment.NewLine); 106sb.Append(Environment.GetResourceString( resourceString )); 107sb.Append(Environment.NewLine);
system\security\hostsecuritymanager.cs (4)
68throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit")); 111throw new ArgumentException(Environment.GetResourceString("Policy_MissingActivationContextInAppEvidence")); 115throw new ArgumentException(Environment.GetResourceString("Policy_MissingActivationContextInAppEvidence")); 149throw new InvalidOperationException(Environment.GetResourceString("Policy_AppTrustMustGrantAppRequest"));
system\security\namedpermissionset.cs (2)
100throw new ArgumentException( Environment.GetResourceString( "Argument_NPMSInvalidName" )); 109m_description = Environment.GetResourceString(m_descrResource);
system\security\permissionlistset.cs (1)
350throw new SecurityException(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic")));
system\security\permissions\environmentpermission.cs (7)
89throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 165throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)flag)); 173throw new ArgumentException( Environment.GetResourceString("Arg_EnumNotSingleFlag") ); 178throw new ArgumentException( Environment.GetResourceString("Arg_EnumNotSingleFlag") ); 236Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 252Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 295Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\filedialogpermission.cs (5)
51throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 105throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 142throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 181throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 190throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)access));
system\security\permissions\fileiopermission.cs (11)
66throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 211throw new ArgumentException(Environment.GetResourceString("Argument_EmptyPath")); 534throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)access)); 542throw new ArgumentException(Environment.GetResourceString("Arg_EnumNotSingleFlag")); 547throw new ArgumentException(Environment.GetResourceString("Arg_EnumNotSingleFlag")); 560throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPathChars")); 643throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 669throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 721throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 1105throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPathChars")); 1110throw new NotSupportedException(Environment.GetResourceString("Argument_PathFormatNotSupported"));
system\security\permissions\gacidentitypermission.cs (4)
54throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 79throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 88throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 97throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\hostprotectionpermission.cs (6)
76throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag")); 176throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 204throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)value)); 225throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) ); 234throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) ); 244throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) );
system\security\permissions\isolatedstoragefilepermission.cs (3)
44Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 95Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 109Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\isolatedstoragepermission.cs (1)
88throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState"));
system\security\permissions\keycontainerpermission.cs (16)
91throw new ArgumentException(Environment.GetResourceString("Arg_InvalidAccessEntry")); 97throw new ArgumentException(Environment.GetResourceString("Argument_InvalidKeyStore", value), "value"); 110throw new ArgumentException(Environment.GetResourceString("Arg_InvalidAccessEntry")); 126throw new ArgumentException(Environment.GetResourceString("Arg_InvalidAccessEntry")); 139throw new ArgumentException(Environment.GetResourceString("Arg_InvalidAccessEntry")); 155throw new ArgumentException(Environment.GetResourceString("Arg_InvalidAccessEntry")); 239throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumNotStarted")); 241throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 303throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported")); 305throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 307throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 382throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 449throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 484throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 506throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 656throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)flags));
system\security\permissions\permissionattributes.cs (6)
166get { throw new NotSupportedException( Environment.GetResourceString( "NotSupported_GetMethod" ) ); } 286get { throw new NotSupportedException( Environment.GetResourceString( "NotSupported_GetMethod" ) ); } 291get { throw new NotSupportedException( Environment.GetResourceString( "NotSupported_GetMethod" ) ); } 563get { throw new NotSupportedException( Environment.GetResourceString( "NotSupported_GetMethod" ) ); } 569get { throw new NotSupportedException( Environment.GetResourceString( "NotSupported_GetMethod" ) ); } 827throw new ArgumentException( Environment.GetResourceString("ArgumentNull_Key"));
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\permissions\publisheridentitypermission.cs (6)
53throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 83throw new NotSupportedException(Environment.GetResourceString("NotSupported_AmbiguousIdentity")); 103throw new ArgumentException(Environment.GetResourceString("Argument_UninitializedCertificate")); 148throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 182throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 221throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\reflectionpermission.cs (5)
71throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 177Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 217Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 231Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 265throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)type));
system\security\permissions\registrypermission.cs (7)
61throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 201throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)access)); 208throw new ArgumentException( Environment.GetResourceString("Arg_EnumNotSingleFlag") ); 213throw new ArgumentException( Environment.GetResourceString("Arg_EnumNotSingleFlag") ); 254throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 279Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 331Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\securitypermission.cs (5)
81throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 165Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 176Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 197Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 259throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)type));
system\security\permissions\siteidentitypermission.cs (5)
106throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 136throw new NotSupportedException(Environment.GetResourceString("NotSupported_AmbiguousIdentity")); 187throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 221throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 261throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\strongnameidentitypermission.cs (9)
138throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 147throw new ArgumentException( Environment.GetResourceString( "Argument_EmptyStrongName" ) ); 183throw new NotSupportedException(Environment.GetResourceString("NotSupported_AmbiguousIdentity")); 193throw new ArgumentException( Environment.GetResourceString("Argument_EmptyName" )); 210throw new NotSupportedException(Environment.GetResourceString("NotSupported_AmbiguousIdentity")); 234throw new NotSupportedException(Environment.GetResourceString("NotSupported_AmbiguousIdentity")); 286throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 322throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 362throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\uipermission.cs (6)
90throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 164throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)flag)); 173throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)flag)); 262Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 278Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 301Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\urlidentitypermission.cs (5)
109throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 167throw new NotSupportedException(Environment.GetResourceString("NotSupported_AmbiguousIdentity")); 218throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 252throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 292throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\zoneidentitypermission.cs (5)
115throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 191throw new ArgumentException( Environment.GetResourceString("Argument_IllegalZone") ); 222throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 233throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 247throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissionset.cs (7)
212throw new ArgumentException(Environment.GetResourceString("Argument_InvalidPermissionState")); 1761throw new ArgumentException(String.Format( null, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PermissionSet", this.GetType().FullName) ); 1863throw new ArgumentException(String.Format( null, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PermissionSet", this.GetType().FullName) ); 2123throw new ArgumentException( Environment.GetResourceString( "Argument_UnableToGeneratePermissionSet")); 2395throw new NotSupportedException( Environment.GetResourceString( "NotSupported_DeclarativeUnion" ) ); 2404throw new NotSupportedException( Environment.GetResourceString( "NotSupported_DeclarativeUnion" ) ); 2437throw new ArgumentException( Environment.GetResourceString( "Argument_UnableToGeneratePermissionSet" ) );
system\security\policy\allmembershipcondition.cs (2)
49return Environment.GetResourceString( "All_ToString" ); 82throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ) );
system\security\policy\applicationdirectorymembershipcondition.cs (2)
121throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ) ); 137return Environment.GetResourceString( "ApplicationDirectory_ToString" );
system\security\policy\applicationsecuritymanager.cs (1)
80throw new PolicyException(Environment.GetResourceString("Policy_NoTrustManager"));
system\security\policy\applicationtrust.cs (10)
97throw new ArgumentException(Environment.GetResourceString("Argument_NullFullTrustAssembly")); 126throw new ArgumentNullException(Environment.GetResourceString("Argument_InvalidAppId")); 231throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXML")); 294throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXML")); 465throw new ArgumentException(Environment.GetResourceString("Argument_ApplicationTrustShouldHaveIdentity")); 537throw new ArgumentException(Environment.GetResourceString("Argument_ApplicationTrustShouldHaveIdentity")); 594throw new ArgumentException(Environment.GetResourceString("Argument_ApplicationTrustShouldHaveIdentity")); 620throw new ArgumentException(Environment.GetResourceString("Arg_RankMultiDimNotSupported")); 622throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 624throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\security\policy\assemblyevidencefactory.cs (1)
236throw new InvalidOperationException(Environment.GetResourceString("Policy_NullHostEvidence", securityManager.GetType().FullName, targetAssembly.FullName));
system\security\policy\codegroup.cs (4)
163throw new ArgumentException( Environment.GetResourceString( "Argument_CodeGroupChildrenMustBeCodeGroups" ) ); 440throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ), ex ); 450throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "IMembershipCondition", this.GetType().FullName ) ); 612throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_FailedCodeGroup" ), marker.element.Attribute( "class" ) ) );
system\security\policy\evidence.cs (8)
360throw new ArgumentException(Environment.GetResourceString("Policy_EvidenceMustBeSerializable"), "id"); 382throw new ArgumentException(Environment.GetResourceString("Policy_EvidenceMustBeSerializable"), "id"); 736throw new InvalidOperationException(Environment.GetResourceString("Policy_DuplicateEvidence", duplicate.GetType().FullName)); 1334throw new InvalidOperationException(Environment.GetResourceString("Policy_IncorrectHostEvidence", hostType, recievedType, requestedType)); 1635throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion")); 1646throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion")); 1750throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion")); 1781throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EnumFailedVersion"));
system\security\policy\evidencebase.cs (1)
40throw new InvalidOperationException(Environment.GetResourceString("Policy_EvidenceMustBeSerializable"));
system\security\policy\filecodegroup.cs (2)
162return Environment.GetResourceString("MergeLogic_Union"); 168return Environment.GetResourceString("FileCodeGroup_PermissionSet", XMLUtil.BitFieldEnumToString(typeof(FileIOPermissionAccess), m_access));
system\security\policy\firstmatchcodegroup.cs (1)
175return Environment.GetResourceString( "MergeLogic_FirstMatch" );
system\security\policy\gacmembershipcondition.cs (2)
86throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ) ); 105return Environment.GetResourceString( "GAC_ToString" );
system\security\policy\hash.cs (3)
94throw new ArgumentException(Environment.GetResourceString("Security_CannotGenerateHash"), "assembly"); 100throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"), "assembly"); 318throw new InvalidOperationException(Environment.GetResourceString("Security_CannotGenerateHash"));
system\security\policy\hashmembershipcondition.cs (3)
188throw new ArgumentException(Environment.GetResourceString("Argument_MembershipConditionElement")); 242return Environment.GetResourceString("Hash_ToString", m_hashAlg.GetType().AssemblyQualifiedName, Hex.EncodeHexString(HashValue)); 257throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", s_tagHashValue, this.GetType().FullName));
system\security\policy\netcodegroup.cs (2)
750return Environment.GetResourceString( "MergeLogic_Union" ); 758return Environment.GetResourceString( "NetCodeGroup_PermissionSet" );
system\security\policy\policyexception.cs (1)
23: base(Environment.GetResourceString( "Policy_Default" )) {
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\policy\policystatement.cs (6)
198throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidFlag" ) ); 254throw new PolicyException(Environment.GetResourceString( "Policy_MultipleExclusive" )); 368throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PolicyStatement", this.GetType().FullName ) ); 428throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidXML" ) ); 446throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_InvalidXMLElement" ), "PolicyStatement", this.GetType().FullName ) ); 504throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidXML" ) );
system\security\policy\publishermembershipcondition.cs (4)
94return Environment.GetResourceString( "Publisher_ToString" ); 99return String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Publisher_ToStringArg" ), System.Security.Util.Hex.EncodeHexString( m_certificate.GetPublicKey() ) ); 101return Environment.GetResourceString( "Publisher_ToString" ); 185throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ) );
system\security\policy\site.cs (1)
54throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidSite" ) );
system\security\policy\sitemembershipcondition.cs (4)
169throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ) ); 189throw new ArgumentException( Environment.GetResourceString( "Argument_SiteCannotBeNull" ) ); 236return String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Site_ToStringArg" ), m_site ); 238return Environment.GetResourceString( "Site_ToString" );
system\security\policy\strongname.cs (3)
50throw new ArgumentException(Environment.GetResourceString("Argument_EmptyStrongName")); 61throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeAssembly"), "assembly"); 162throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXML"));
system\security\policy\strongnamemembershipcondition.cs (7)
59throw new ArgumentException( Environment.GetResourceString( "Argument_EmptyStrongName" ) ); 108throw new ArgumentException( Environment.GetResourceString("Argument_EmptyName" )); 246throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ) ); 289throw new ArgumentException( Environment.GetResourceString( "Argument_BlobCannotBeNull" ) ); 323sName = " " + String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "StrongName_Name" ), Name ); 326sVersion = " " + String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "StrongName_Version" ), Version ); 328return String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "StrongName_ToString" ), System.Security.Util.Hex.EncodeHexString( PublicKey.PublicKey ), sName, sVersion );
system\security\policy\unioncodegroup.cs (1)
166return Environment.GetResourceString( "MergeLogic_Union" );
system\security\policy\urlmembershipcondition.cs (7)
57throw new ArgumentException(Environment.GetResourceString("Argument_RelativeUrlMembershipCondition"), "url"); 76throw new ArgumentException(Environment.GetResourceString("Argument_RelativeUrlMembershipCondition"), "value"); 172throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ) ); 193throw new ArgumentException(Environment.GetResourceString("Argument_UrlCannotBeNull")); 199throw new ArgumentException(Environment.GetResourceString("Argument_RelativeUrlMembershipCondition")); 248return String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Url_ToStringArg" ), m_url.ToString() ); 250return Environment.GetResourceString( "Url_ToString" );
system\security\policy\zone.cs (1)
40throw new ArgumentException( Environment.GetResourceString( "Argument_IllegalZone" ) );
system\security\policy\zonemembershipcondition.cs (4)
98throw new ArgumentException( Environment.GetResourceString( "Argument_IllegalZone" ) ); 184throw new ArgumentException( Environment.GetResourceString( "Argument_MembershipConditionElement" ) ); 211throw new ArgumentException( Environment.GetResourceString( "Argument_ZoneCannotBeNull" ) ); 251return String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Zone_ToString" ), s_names[(int)m_zone] );
system\security\policymanager.cs (7)
255EncodeLevel(Environment.GetResourceString("Policy_PL_Enterprise")); 256EncodeLevel(Environment.GetResourceString("Policy_PL_Machine")); 257EncodeLevel(Environment.GetResourceString("Policy_PL_User")); 283string errorMessage = Environment.GetResourceString("Policy_UnableToSave", 285Environment.GetResourceString("Policy_SaveNotFileBased")); 319throw new PolicyException(Environment.GetResourceString("Policy_UnableToSave", level.Label, extendedInformation), extendedError); 327throw new PolicyException(Environment.GetResourceString("Policy_UnableToSave", level.Label, e.Message), e);
system\security\principal\identitynotmappedexception.cs (1)
26: base( Environment.GetResourceString( "IdentityReference_IdentityNotMapped" ))
system\security\principal\ircollection.cs (2)
175throw new ArgumentException( Environment.GetResourceString( "IdentityReference_MustBeIdentityReference" ), "targetType" ); 343throw new IdentityNotMappedException( Environment.GetResourceString("IdentityReference_IdentityNotMapped"), Result);
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\principal\win32.cs (10)
57bool r = Environment.GetVersion(osvi); 61throw new SystemException( Environment.GetResourceString( "InvalidOperation_GetVersion" )); 84r = Environment.GetVersionEx(osviex); 88throw new SystemException( Environment.GetResourceString( "InvalidOperation_GetVersion" )); 170throw new ArgumentException(Environment.GetResourceString( "IdentityReference_InvalidSidRevision" ), "binaryForm"); 182throw new ArgumentException(Environment.GetResourceString( "IdentityReference_InvalidNumberOfSubauthorities", SecurityIdentifier.MaxSubAuthorities), "binaryForm"); 261throw new PlatformNotSupportedException( Environment.GetResourceString( "PlatformNotSupported_RequiresW2kSP3" )); 295throw new PlatformNotSupportedException( Environment.GetResourceString( "PlatformNotSupported_RequiresW2kSP3" )); 374throw new PlatformNotSupportedException( Environment.GetResourceString( "PlatformNotSupported_RequiresW2kSP3" )); 415throw new PlatformNotSupportedException( Environment.GetResourceString( "PlatformNotSupported_RequiresW2kSP3" ));
system\security\principal\windowsidentity.cs (9)
171throw new ArgumentException(Environment.GetResourceString("Argument_TokenZero")); 179throw new ArgumentException(Environment.GetResourceString("Argument_InvalidImpersonationToken")); 682throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_AnonymousCannotImpersonate")); 740throw new SecurityException(Environment.GetResourceString( "ExecutionEngine_MissingSecurityDescriptor" ) ); 748Environment.FailFast(Win32Native.GetMessage(hr)); 755Environment.FailFast(Win32Native.GetMessage(hr)); 759throw new SecurityException(Environment.GetResourceString("Argument_ImpersonateUser")); 968throw new ArgumentException(Environment.GetResourceString("Argument_InvalidImpersonationToken")); 1298if (Environment.IsWindows8OrAbove)
system\security\principal\windowsimpersonationcontext.cs (7)
44throw new ArgumentException(Environment.GetResourceString("Argument_InvalidImpersonationToken")); 70Environment.FailFast(Win32Native.GetMessage(hr)); 74Environment.FailFast(Win32Native.GetMessage(hr)); 103Environment.FailFast(Win32Native.GetMessage(hr)); 114Environment.FailFast(Win32Native.GetMessage(hr)); 126Environment.FailFast(Environment.GetResourceString("ExecutionContext_UndoFailed"), ex);
system\security\principal\windowsprincipal.cs (1)
209throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)role), "role");
system\security\readonlypermissionset.cs (4)
98throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ModifyROPermSet")); 112throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ModifyROPermSet")); 118throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ModifyROPermSet")); 123throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ModifyROPermSet"));
system\security\securestring.cs (8)
110throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 114throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_Length")); 193throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_IndexString")); 252throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_IndexString")); 291throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_IndexString")); 334throw new NotSupportedException(Environment.GetResourceString("Arg_PlatformSecureString")); 342throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_Capacity")); 371throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly"));
system\security\securitycontext.cs (13)
93Environment.FailFast(Environment.GetResourceString("ExecutionContext_UndoFailed"), ex); 142System.Environment.FailFast(Environment.GetResourceString("ExecutionContext_UndoFailed")); 152System.Environment.FailFast(Environment.GetResourceString("ExecutionContext_UndoFailed")); 294throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotSupressFlowMultipleTimes")); 311throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotRestoreUnsupressedFlow")); 343throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullContext")); 351throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotNewCaptureContext")); 509throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotNewCaptureContext")); 679Environment.FailFast(Win32Native.GetMessage(hr)); 688Environment.FailFast(Win32Native.GetMessage(hr));
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\securityexception.cs (3)
72return Environment.GetResourceString(sResourceName); 560sb.Append(Environment.NewLine); 562sb.Append(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\security\securityruntime.cs (19)
99throw new SecurityException(Environment.GetResourceString("Security_AnonymouslyHostedDynamicMethodCheckFailed"), ex); 119throw new SecurityException(Environment.GetResourceString("Security_AnonymouslyHostedDynamicMethodCheckFailed"), ex); 144System.Environment.FailFast(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 149throw new SecurityException( Environment.GetResourceString( "Security_MustRevertOverride" ) ); 165System.Environment.FailFast(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 170throw new SecurityException( Environment.GetResourceString( "Security_MustRevertOverride" ) ); 183throw new NotSupportedException(Environment.GetResourceString("NotSupported_CasDeny")); 194System.Environment.FailFast(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 199throw new SecurityException( Environment.GetResourceString( "Security_MustRevertOverride" ) ); 215System.Environment.FailFast(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 220throw new SecurityException( Environment.GetResourceString( "Security_MustRevertOverride" ) ); 240throw new InvalidOperationException(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 254throw new InvalidOperationException(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 268throw new InvalidOperationException(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor")); 282throw new InvalidOperationException(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor"));
system\security\util\hex.cs (2)
73throw new ArgumentException( Environment.GetResourceString( "ArgumentOutOfRange_Index" ) ); 100throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidHexFormat" ) );
system\security\util\parser.cs (8)
149throw new XmlSyntaxException (_t.LineNo, Environment.GetResourceString( "XMLSyntax_UnexpectedEndOfFile" )); 156throw new XmlSyntaxException (_t.LineNo, Environment.GetResourceString( "XMLSyntax_ExpectedCloseBracket" )); 243throw new XmlSyntaxException (_t.LineNo, Environment.GetResourceString( "XMLSyntax_ExpectedSlashOrString" )); 259throw new XmlSyntaxException (_t.LineNo, Environment.GetResourceString( "XMLSyntax_UnexpectedCloseBracket" )); 278throw new XmlSyntaxException (_t.LineNo, Environment.GetResourceString( "XMLSyntax_ExpectedCloseBracket" )); 298throw new XmlSyntaxException (_t.LineNo, Environment.GetResourceString( "XMLSyntax_ExpectedCloseBracket" )); 335throw new XmlSyntaxException( _t.LineNo, Environment.GetResourceString( "XMLSyntax_UnexpectedEndOfFile" )); 383throw new XmlSyntaxException (_t.LineNo, Environment.GetResourceString( "XMLSyntax_UnexpectedEndOfFile" ));
system\security\util\sitestring.cs (5)
46throw new ArgumentException( Environment.GetResourceString("Argument_InvalidSite" )); 73throw new ArgumentException( Environment.GetResourceString("Argument_InvalidSite" )); 79throw new ArgumentException( Environment.GetResourceString("Argument_InvalidSite" )); 86throw new ArgumentException( Environment.GetResourceString("Argument_InvalidSite" )); 92throw new ArgumentException( Environment.GetResourceString("Argument_InvalidSite" ));
system\security\util\stringexpressionset.cs (4)
174throw new ArgumentException( Environment.GetResourceString( "Argument_AbsolutePathRequired" ) ); 246throw new ArgumentException(Environment.GetResourceString("Argument_AbsolutePathRequired")); 339throw new ArgumentException( Environment.GetResourceString( "Argument_AbsolutePathRequired" ) ); 780throw new NotSupportedException(Environment.GetResourceString("Argument_PathFormatNotSupported"));
system\security\util\tokenbasedset.cs (2)
404throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState")); 421throw new SerializationException(Environment.GetResourceString("Serialization_InsufficientState"));
system\security\util\tokenizer.cs (3)
186throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)encoding)); 376throw new XmlSyntaxException (LineNo, Environment.GetResourceString( "XMLSyntax_UnexpectedEndOfFile" )); 391throw new XmlSyntaxException (LineNo, Environment.GetResourceString( "XMLSyntax_UnexpectedEndOfFile" ));
system\security\util\urlstring.cs (22)
152throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 157throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 172throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 182throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 193throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 214throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 257throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 264throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 275throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 325throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 335throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 338throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 463throw new PathTooLongException(Environment.GetResourceString("IO.PathTooLong")); 513throw new ArgumentException( Environment.GetResourceString( "Argument_InvalidUrl" ) ); 624throw new FormatException(Environment.GetResourceString("Format_StringZeroLength")); 1095throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectoryOnUrl")); 1112throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectoryOnUrl")); 1118throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectoryOnUrl")); 1165throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectoryOnUrl")); 1174throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectoryOnUrl")); 1192throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectoryOnUrl")); 1199throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectoryOnUrl"));
system\security\util\xmlutil.cs (8)
135throw new ArgumentException( Environment.GetResourceString( "Argument_NoClass" ) ); 209throw new ArgumentException( String.Format( null, Environment.GetResourceString( "Argument_WrongElementType" ), "<Permission>" ) ) ; 420throw new ArgumentException( Environment.GetResourceString("Argument_NotAPermissionType") ); 434throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_WrongElementType" ), "<CodeGroup>" ) ) ; 492throw new ArgumentException( Environment.GetResourceString("Argument_NotACodeGroupType") ); 508throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Argument_WrongElementType" ), "<IMembershipCondition>" ) ) ; 626throw new ArgumentException( Environment.GetResourceString("Argument_NotAMembershipCondition") ); 643throw new ArgumentException( String.Format( null, Environment.GetResourceString("Argument_InvalidXMLMissingAttr"), "class") );
system\security\verificationexception.cs (1)
17: base(Environment.GetResourceString("Verification_Exception")) {
system\security\xmlsyntaxexception.cs (3)
19: base (Environment.GetResourceString( "XMLSyntax_InvalidSyntax" )) 40: base (String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "XMLSyntax_SyntaxError" ), lineNumber ) ) 47: base( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "XMLSyntax_SyntaxErrorEx" ), lineNumber, message ) )
system\single.cs (3)
101throw new ArgumentException (Environment.GetResourceString("Arg_MustBeSingle")); 279throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Single", "Char")); 339throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Single", "DateTime"));
system\stackoverflowexception.cs (1)
24: base(Environment.GetResourceString("Arg_StackOverflowException")) {
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\stringcomparer.cs (1)
94throw new ArgumentException(Environment.GetResourceString("Argument_ImplementIComparable"));
system\stubhelpers.cs (25)
549if (!Environment.IsWinRTSupported) 550throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 570if (!Environment.IsWinRTSupported) 571throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 589if (!Environment.IsWinRTSupported) 591throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 600Contract.Assert(Environment.IsWinRTSupported); 943Contract.Assert(Environment.IsWinRTSupported); 1061throw new ArgumentException(Environment.GetResourceString("Arg_NDirectBadObject")); 1244throw new ArgumentException(Environment.GetResourceString("Arg_MarshalAsAnyRestriction")); 1276throw new ArgumentException(Environment.GetResourceString("Arg_NDirectBadObject")); 1409if (!Environment.IsWinRTSupported) 1411throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 1419throw new ArgumentException(Environment.GetResourceString("Argument_WinRTSystemRuntimeType", managedType.GetType().ToString())); 1453if (!Environment.IsWinRTSupported) 1455throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 1476throw new ArgumentException(Environment.GetResourceString("Argument_Unexpected_TypeSource")); 1483Contract.Assert(Environment.IsWinRTSupported); 1498if (!Environment.IsWinRTSupported) 1500throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 1514if (!Environment.IsWinRTSupported) 1516throw new PlatformNotSupportedException(Environment.GetResourceString("PlatformNotSupported_WinRT")); 1775throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_SafeHandle")); 1791throw new ArgumentNullException(Environment.GetResourceString("ArgumentNull_SafeHandle")); 1889throw new MarshalDirectiveException(Environment.GetResourceString("Marshaler_StringTooLong"));
system\systemexception.cs (1)
15: base(Environment.GetResourceString("Arg_SystemException")) {
system\text\asciiencoding.cs (35)
65Environment.GetResourceString("ArgumentNull_Array")); 69Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 73Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 114Environment.GetResourceString("ArgumentNull_Array")); 118Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 136Environment.GetResourceString("ArgumentNull_Array")); 140Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 144Environment.GetResourceString("ArgumentOutOfRange_IndexCount")); 148Environment.GetResourceString("ArgumentOutOfRange_Index")); 184Environment.GetResourceString("ArgumentNull_Array")); 188Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 192Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 196Environment.GetResourceString("ArgumentOutOfRange_Index")); 229Environment.GetResourceString("ArgumentNull_Array")); 233Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 253Environment.GetResourceString("ArgumentNull_Array")); 257Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 261Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 285Environment.GetResourceString("ArgumentNull_Array")); 289Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 307Environment.GetResourceString("ArgumentNull_Array")); 311Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 315Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 319Environment.GetResourceString("ArgumentOutOfRange_Index")); 352Environment.GetResourceString("ArgumentNull_Array")); 356Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 376Environment.GetResourceString("ArgumentNull_Array")); 380Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 385Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 436throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 574throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 962Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 974throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 983Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 994throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\text\basecodepageencoding.cs (2)
212Environment.GetResourceString("NotSupported_NoCodepageData", CodePage)); 285Environment.GetResourceString("Arg_OutOfMemoryException"));
system\text\codepageencoding.cs (2)
103throw new ArgumentException(Environment.GetResourceString("Arg_ExecutionEngineException")); 139throw new ArgumentException(Environment.GetResourceString("Arg_ExecutionEngineException"));
system\text\dbcscodepageencoding.cs (8)
107Environment.GetResourceString("NotSupported_NoCodepageData", CodePage)); 146Environment.GetResourceString("Arg_OutOfMemoryException")); 558throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 667throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 1134Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1147throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 1156Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1167throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\text\decoder.cs (14)
59Environment.GetResourceString("Argument_FallbackBufferNotEmpty"), "value"); 136Environment.GetResourceString("ArgumentNull_Array")); 140Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 202Environment.GetResourceString("ArgumentNull_Array")); 206Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 262Environment.GetResourceString("ArgumentNull_Array")); 266Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 270Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 274Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 278Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 300throw new ArgumentException(Environment.GetResourceString("Argument_ConversionOverflow")); 321Environment.GetResourceString("ArgumentNull_Array")); 325Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 348throw new ArgumentException(Environment.GetResourceString("Argument_ConversionOverflow"));
system\text\decoderexceptionfallback.cs (2)
100Environment.GetResourceString("Argument_InvalidCodePageBytesIndex", 114: base(Environment.GetResourceString("Arg_ArgumentException"))
system\text\decoderfallback.cs (7)
175throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex")); 182throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex")); 198throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex")); 236throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex")); 243throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex")); 253throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex")); 280Environment.GetResourceString("Argument_RecursiveFallbackBytes",
system\text\decodernls.cs (19)
42Environment.GetResourceString("NotSupported_TypeCannotDeserialized"), this.GetType())); 89Environment.GetResourceString("ArgumentNull_Array")); 93Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 97Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 116Environment.GetResourceString("ArgumentNull_Array")); 120Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 144Environment.GetResourceString("ArgumentNull_Array")); 148Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 152Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 156Environment.GetResourceString("ArgumentOutOfRange_Index")); 183Environment.GetResourceString("ArgumentNull_Array")); 187Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 208Environment.GetResourceString("ArgumentNull_Array")); 212Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 216Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 220Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 224Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 255Environment.GetResourceString("ArgumentNull_Array")); 259Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
system\text\decoderreplacementfallback.cs (1)
64throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex", "replacement"));
system\text\encoder.cs (14)
59Environment.GetResourceString("Argument_FallbackBufferNotEmpty"), "value"); 132Environment.GetResourceString("ArgumentNull_Array")); 136Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 195Environment.GetResourceString("ArgumentNull_Array")); 199Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 254Environment.GetResourceString("ArgumentNull_Array")); 258Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 262Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 266Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 270Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 294throw new ArgumentException(Environment.GetResourceString("Argument_ConversionOverflow")); 314Environment.GetResourceString("ArgumentNull_Array")); 317Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 340throw new ArgumentException(Environment.GetResourceString("Argument_ConversionOverflow"));
system\text\encoderbestfitfallback.cs (2)
123Environment.GetResourceString("ArgumentOutOfRange_Range", 128Environment.GetResourceString("ArgumentOutOfRange_Range",
system\text\encoderexceptionfallback.cs (7)
59Environment.GetResourceString("Argument_InvalidCodePageConversionIndex", 68Environment.GetResourceString("ArgumentOutOfRange_Range", 74Environment.GetResourceString("ArgumentOutOfRange_Range", 83Environment.GetResourceString("Argument_InvalidCodePageConversionIndex", 117: base(Environment.GetResourceString("Arg_ArgumentException")) 151Environment.GetResourceString("ArgumentOutOfRange_Range", 157Environment.GetResourceString("ArgumentOutOfRange_Range",
system\text\encoderfallback.cs (1)
232Environment.GetResourceString("Argument_RecursiveFallback",
system\text\encodernls.cs (19)
45Environment.GetResourceString("NotSupported_TypeCannotDeserialized"), this.GetType())); 89Environment.GetResourceString("ArgumentNull_Array")); 93Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 97Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 119Environment.GetResourceString("ArgumentNull_Array")); 123Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 138Environment.GetResourceString("ArgumentNull_Array")); 142Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 146Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 150Environment.GetResourceString("ArgumentOutOfRange_Index")); 175Environment.GetResourceString("ArgumentNull_Array")); 179Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 197Environment.GetResourceString("ArgumentNull_Array")); 201Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 205Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 209Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 213Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 244Environment.GetResourceString("ArgumentNull_Array")); 247Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
system\text\encoderreplacementfallback.cs (3)
66throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex", "replacement")); 154Environment.GetResourceString("ArgumentOutOfRange_Range", 159Environment.GetResourceString("ArgumentOutOfRange_Range",
system\text\encoding.cs (29)
382Environment.GetResourceString("ArgumentNull_Array")); 386Environment.GetResourceString("ArgumentNull_Array")); 432"codepage", Environment.GetResourceString("ArgumentOutOfRange_Range", 515throw new ArgumentException(Environment.GetResourceString( 642throw new NotSupportedException(Environment.GetResourceString("NotSupported_CodePage50229")); 649Environment.GetResourceString("NotSupported_NoCodepageData", codepage)); 721Environment.GetResourceString("NotSupported_NoCodepageData", m_codePage)); 746return (Environment.GetResourceString("Globalization.cp_" + m_codePage)); 861throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly")); 883throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ReadOnly")); 954Environment.GetResourceString("ArgumentNull_Array")); 992Environment.GetResourceString("ArgumentNull_Array")); 996Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1028Environment.GetResourceString("ArgumentNull_Array")); 1065Environment.GetResourceString("ArgumentNull_String")); 1119Environment.GetResourceString("ArgumentNull_Array")); 1123Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1166Environment.GetResourceString("ArgumentNull_Array")); 1189Environment.GetResourceString("ArgumentNull_Array")); 1193Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1222Environment.GetResourceString("ArgumentNull_Array")); 1279Environment.GetResourceString("ArgumentNull_Array")); 1283Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1334throw new ArgumentNullException("bytes", Environment.GetResourceString("ArgumentNull_Array")); 1337throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1487Environment.GetResourceString("ArgumentNull_Array")); 1598Environment.GetResourceString("Argument_EncodingConversionOverflowBytes", 1623Environment.GetResourceString("Argument_EncodingConversionOverflowChars", 2138throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty",
system\text\encodingnls.cs (29)
52Environment.GetResourceString("ArgumentNull_Array")); 56Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 60Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 97Environment.GetResourceString("ArgumentNull_Array")); 101Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 118Environment.GetResourceString("ArgumentNull_Array")); 122Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 126Environment.GetResourceString("ArgumentOutOfRange_IndexCount")); 130Environment.GetResourceString("ArgumentOutOfRange_Index")); 165Environment.GetResourceString("ArgumentNull_Array")); 169Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 173Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 177Environment.GetResourceString("ArgumentOutOfRange_Index")); 207Environment.GetResourceString("ArgumentNull_Array")); 211Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 230Environment.GetResourceString("ArgumentNull_Array")); 234Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 238Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 259Environment.GetResourceString("ArgumentNull_Array")); 263Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 280Environment.GetResourceString("ArgumentNull_Array")); 284Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 288Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 292Environment.GetResourceString("ArgumentOutOfRange_Index")); 322Environment.GetResourceString("ArgumentNull_Array")); 326Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 345Environment.GetResourceString("ArgumentNull_Array")); 349Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 353Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer"));
system\text\gb18030encoding.cs (4)
804Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 817throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 826Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 838throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\text\isciiencoding.cs (6)
82throw new ArgumentException(Environment.GetResourceString( 92throw new ArgumentException(Environment.GetResourceString("Arg_ExecutionEngineException")); 119Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 132throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 143Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 156throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\text\iso2022encoding.cs (5)
78throw new ArgumentException(Environment.GetResourceString("Arg_ExecutionEngineException")); 1767Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1813throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 1822Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1851throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\text\latin1encoding.cs (4)
450Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 462throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 470Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 481throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\text\mlangcodepageencoding.cs (3)
105throw new ArgumentException(Environment.GetResourceString("Arg_ExecutionEngineException")); 141throw new ArgumentException(Environment.GetResourceString("Arg_ExecutionEngineException")); 179throw new ArgumentException(Environment.GetResourceString("Arg_ExecutionEngineException"));
system\text\normalization.cs (12)
85if (!Environment.IsWindows8OrAbove) 91Environment.GetResourceString("Argument_InvalidNormalizationForm")); 102Environment.GetResourceString("Argument_InvalidNormalizationForm")); 210Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex" ), 214Environment.GetResourceString("Arg_OutOfMemoryException")); 217Environment.GetResourceString("UnknownError_Num", iError)); 240Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex" ), 248Environment.GetResourceString("Arg_OutOfMemoryException")); 252Environment.GetResourceString("UnknownError_Num", iError)); 289Environment.GetResourceString("Argument_InvalidCharSequence", iLength ), 293Environment.GetResourceString("Arg_OutOfMemoryException")); 298Environment.GetResourceString("UnknownError_Num", iError));
system\text\sbcscodepageencoding.cs (6)
83Environment.GetResourceString("NotSupported_NoCodepageData", CodePage)); 106Environment.GetResourceString("Arg_OutOfMemoryException")); 897Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 909throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 917Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 928throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
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\text\surrogateencoder.cs (1)
56throw new ArgumentException(Environment.GetResourceString("Arg_ExecutionEngineException"));
system\text\unicodeencoding.cs (38)
102Environment.GetResourceString("ArgumentNull_Array")); 106Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 110Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 151Environment.GetResourceString("ArgumentNull_Array")); 155Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 173Environment.GetResourceString("ArgumentNull_Array")); 177Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 181Environment.GetResourceString("ArgumentOutOfRange_IndexCount")); 185Environment.GetResourceString("ArgumentOutOfRange_Index")); 221Environment.GetResourceString("ArgumentNull_Array")); 225Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 229Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 233Environment.GetResourceString("ArgumentOutOfRange_Index")); 266Environment.GetResourceString("ArgumentNull_Array")); 270Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 290Environment.GetResourceString("ArgumentNull_Array")); 294Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 298Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 322Environment.GetResourceString("ArgumentNull_Array")); 326Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 344Environment.GetResourceString("ArgumentNull_Array")); 348Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 352Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 356Environment.GetResourceString("ArgumentOutOfRange_Index")); 389Environment.GetResourceString("ArgumentNull_Array")); 393Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 414Environment.GetResourceString("ArgumentNull_Array")); 418Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 422Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 450throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 479throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 697Environment.GetResourceString("Argument_RecursiveFallback", 763throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 1100Environment.GetResourceString("Argument_RecursiveFallback", 1948Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1961throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 1971Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1985throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\text\utf32encoding.cs (37)
106Environment.GetResourceString("ArgumentNull_Array")); 110Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 114Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 154Environment.GetResourceString("ArgumentNull_Array")); 158Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 176Environment.GetResourceString("ArgumentNull_Array")); 180Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 184Environment.GetResourceString("ArgumentOutOfRange_IndexCount")); 188Environment.GetResourceString("ArgumentOutOfRange_Index")); 224Environment.GetResourceString("ArgumentNull_Array")); 228Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 232Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 236Environment.GetResourceString("ArgumentOutOfRange_Index")); 268Environment.GetResourceString("ArgumentNull_Array")); 272Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 292Environment.GetResourceString("ArgumentNull_Array")); 296Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 300Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 323Environment.GetResourceString("ArgumentNull_Array")); 327Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 345Environment.GetResourceString("ArgumentNull_Array")); 349Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 353Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 357Environment.GetResourceString("ArgumentOutOfRange_Index")); 389Environment.GetResourceString("ArgumentNull_Array")); 393Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 413Environment.GetResourceString("ArgumentNull_Array")); 417Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 421Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 457throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 550throw new ArgumentOutOfRangeException("count", Environment.GetResourceString( 587throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 889throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 1140Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1153throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 1163Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1183throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\text\utf7encoding.cs (33)
170Environment.GetResourceString("ArgumentNull_Array")); 174Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 178Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 220Environment.GetResourceString("ArgumentNull_Array")); 224Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 243Environment.GetResourceString("ArgumentNull_Array")); 247Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 251Environment.GetResourceString("ArgumentOutOfRange_IndexCount")); 255Environment.GetResourceString("ArgumentOutOfRange_Index")); 291Environment.GetResourceString("ArgumentNull_Array")); 295Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 299Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 303Environment.GetResourceString("ArgumentOutOfRange_Index")); 336Environment.GetResourceString("ArgumentNull_Array")); 340Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 360Environment.GetResourceString("ArgumentNull_Array")); 364Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 368Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 392Environment.GetResourceString("ArgumentNull_Array")); 396Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 414Environment.GetResourceString("ArgumentNull_Array")); 418Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 422Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 426Environment.GetResourceString("ArgumentOutOfRange_Index")); 459Environment.GetResourceString("ArgumentNull_Array")); 463Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 484Environment.GetResourceString("ArgumentNull_Array")); 488Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 492Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 853Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 876throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 886Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 1144throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex"));
system\text\utf8encoding.cs (35)
134Environment.GetResourceString("ArgumentNull_Array")); 138Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 142Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 183Environment.GetResourceString("ArgumentNull_Array")); 187Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 205Environment.GetResourceString("ArgumentNull_Array")); 209Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 213Environment.GetResourceString("ArgumentOutOfRange_IndexCount")); 217Environment.GetResourceString("ArgumentOutOfRange_Index")); 253Environment.GetResourceString("ArgumentNull_Array")); 257Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 261Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 265Environment.GetResourceString("ArgumentOutOfRange_Index")); 298Environment.GetResourceString("ArgumentNull_Array")); 302Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 322Environment.GetResourceString("ArgumentNull_Array")); 326Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 330Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 354Environment.GetResourceString("ArgumentNull_Array")); 358Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 376Environment.GetResourceString("ArgumentNull_Array")); 380Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 384Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 388Environment.GetResourceString("ArgumentOutOfRange_Index")); 421Environment.GetResourceString("ArgumentNull_Array")); 425Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 446Environment.GetResourceString("ArgumentNull_Array")); 450Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 454Environment.GetResourceString("ArgumentOutOfRange_IndexCountBuffer")); 494throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 882throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 2348Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 2361throw new ArgumentOutOfRangeException("charCount", Environment.GetResourceString("ArgumentOutOfRange_GetByteCountOverflow")); 2371Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 2385throw new ArgumentOutOfRangeException("byteCount", Environment.GetResourceString("ArgumentOutOfRange_GetCharCountOverflow"));
system\threading\abandonedmutexexception.cs (2)
29: base(Environment.GetResourceString("Threading.AbandonedMutexException")) { 44: base(Environment.GetResourceString("Threading.AbandonedMutexException")) {
system\threading\CancellationToken.cs (2)
482throw new OperationCanceledException(Environment.GetResourceString("OperationCanceled"), this); 487throw new ObjectDisposedException(null, Environment.GetResourceString("CancellationToken_SourceDisposed"));
system\threading\CancellationTokenSource.cs (2)
617throw new ObjectDisposedException(null, Environment.GetResourceString("CancellationTokenSource_Disposed")); 914throw new ArgumentException(Environment.GetResourceString("CancellationToken_CreateLinkedToken_TokensIsEmpty"));
system\threading\compressedstack.cs (3)
88Environment.FailFast(Environment.GetResourceString("ExecutionContext_UndoFailed"), ex); 285throw new ArgumentException(Environment.GetResourceString("Arg_NamedParamNull"),"compressedStack");
system\threading\CountdownEvent.cs (5)
196throw new InvalidOperationException(Environment.GetResourceString("CountdownEvent_Decrement_BelowZero")); 210throw new InvalidOperationException(Environment.GetResourceString("CountdownEvent_Decrement_BelowZero")); 250throw new InvalidOperationException(Environment.GetResourceString("CountdownEvent_Decrement_BelowZero")); 323throw new InvalidOperationException(Environment.GetResourceString("CountdownEvent_Increment_AlreadyZero")); 364throw new InvalidOperationException(Environment.GetResourceString("CountdownEvent_Increment_AlreadyMax"));
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\executioncontext.cs (13)
318Environment.FailFast(Environment.GetResourceString("ExecutionContext_UndoFailed"), ex); 427throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotUseAFCMultiple")); 431throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotUseAFCOtherThread")); 437throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_AsyncFlowCtrlCtxMismatch")); 446throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_AsyncFlowCtrlCtxMismatch")); 781Environment.FailFast( 782Environment.GetResourceString("ExecutionContext_ExceptionInAsyncLocalNotification"), 912throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NullContext")); 914throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotNewCaptureContext")); 1095throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotCopyUsedContext")); 1171throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotSupressFlowMultipleTimes")); 1185throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotRestoreUnsupressedFlow"));
system\threading\hostexecutioncontextmanager.cs (4)
204throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotNewCaptureContext")); 246throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotOverrideSetWithoutRevert")); 254throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotUseSwitcherOtherThread")); 262throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CannotUseSwitcherOtherThread"));
system\threading\LazyInitializer.cs (2)
151throw new InvalidOperationException(Environment.GetResourceString("Lazy_StaticInit_InvalidOperation")); 264throw new MissingMemberException(Environment.GetResourceString("Lazy_CreateValue_NoParameterlessCtorForT"));
system\threading\ManualResetEventSlim.cs (3)
173throw new InvalidOperationException(String.Format(Environment.GetResourceString("ManualResetEventSlim_ctor_TooManyWaiters"), NumWaitersState_MaxValue)); 230String.Format(Environment.GetResourceString("ManualResetEventSlim_ctor_SpinCountOutOfRange"), SpinCountState_MaxValue)); 741throw new ObjectDisposedException(Environment.GetResourceString("ManualResetEventSlim_Disposed"));
system\threading\monitor.cs (2)
66throw new ArgumentException(Environment.GetResourceString("Argument_MustBeFalse"), "lockTaken"); 136throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
system\threading\mutex.cs (8)
65throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name)); 94throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong", name)); 194throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", m_name)); 318throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", name)); 356throw new ArgumentNullException("name", Environment.GetResourceString("ArgumentNull_WithParamName")); 361throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), "name"); 365throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name)); 425throw new ApplicationException(Environment.GetResourceString("Arg_SynchronizationLockException"));
system\threading\overlapped.cs (2)
201throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_Overlapped_Pack")); 236throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_Overlapped_Pack"));
system\threading\readerwriterlock.cs (3)
110throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 136throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 195throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
system\threading\semaphorefullexception.cs (1)
23public SemaphoreFullException() : base(Environment.GetResourceString("Threading_SemaphoreFullException")){
system\threading\SemaphoreSlim.cs (1)
914return Environment.GetResourceString(str);
system\threading\SpinLock.cs (6)
231"timeout", timeout, Environment.GetResourceString("SpinLock_TryEnter_ArgumentOutOfRange")); 291throw new System.ArgumentException(Environment.GetResourceString("SpinLock_TryReliableEnter_ArgumentException")); 297"millisecondsTimeout", millisecondsTimeout, Environment.GetResourceString("SpinLock_TryEnter_ArgumentOutOfRange")); 524throw new LockRecursionException(Environment.GetResourceString("SpinLock_TryEnter_LockRecursionException")); 646Environment.GetResourceString("SpinLock_Exit_SynchronizationLockException")); 707throw new InvalidOperationException(Environment.GetResourceString("SpinLock_IsHeldByCurrentThread"));
system\threading\SpinWait.cs (6)
230"timeout", timeout, Environment.GetResourceString("SpinWait_SpinUntil_TimeoutWrong")); 252"millisecondsTimeout", millisecondsTimeout, Environment.GetResourceString("SpinWait_SpinUntil_TimeoutWrong")); 256throw new ArgumentNullException("condition", Environment.GetResourceString("SpinWait_SpinUntil_ArgumentNull")); 306int now = Environment.TickCount; 310s_processorCount = procCount = Environment.ProcessorCount; 343return (uint)Environment.TickCount;
system\threading\synchronizationcontext.cs (2)
271if (context == null && Environment.IsWinRTSupported) 284Contract.Assert(Environment.IsWinRTSupported);
system\threading\synchronizationlockexception.cs (1)
27: base(Environment.GetResourceString("Arg_SynchronizationLockException")) {
system\threading\Tasks\AsyncCausalityTracer.cs (1)
137if (!Environment.IsWinRTSupported) return;
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
71private static Int32 DefaultMaxConcurrencyLevel { get { return Environment.ProcessorCount; } }
system\threading\Tasks\Future.cs (5)
356throw new ArgumentOutOfRangeException("creationOptions", Environment.GetResourceString("TaskT_ctor_SelfReplicating")); 386throw new ArgumentOutOfRangeException("creationOptions", Environment.GetResourceString("TaskT_ctor_SelfReplicating")); 406throw new ArgumentOutOfRangeException("creationOptions", Environment.GetResourceString("TaskT_ctor_SelfReplicating")); 430throw new ArgumentOutOfRangeException("creationOptions", Environment.GetResourceString("TaskT_ctor_SelfReplicating")); 445return IsRanToCompletion ? "" + m_result : Environment.GetResourceString("TaskT_DebuggerNoResult");
system\threading\Tasks\FutureFactory.cs (4)
1397if (promise == null) throw new ArgumentException(Environment.GetResourceString("InvalidOperation_WrongAsyncResultOrEndCalledMultiple"), "asyncResult"); 1404if (endMethod == null) throw new ArgumentException(Environment.GetResourceString("InvalidOperation_WrongAsyncResultOrEndCalledMultiple"), "asyncResult"); 2177if(tasks.Length == 0) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_EmptyTaskList"), "tasks"); 2225if (tasks.Length == 0) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_EmptyTaskList"), "tasks");
system\threading\Tasks\Parallel.cs (12)
244throw new ArgumentException(Environment.GetResourceString("Parallel_Invoke_ActionNull")); 2557throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_OrderedPartitionerKeysNotNormalized")); 2739throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_OrderedPartitionerKeysNotNormalized")); 2970throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_OrderedPartitionerKeysNotNormalized")); 3184throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_OrderedPartitionerKeysNotNormalized")); 3214throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_PartitionerNotDynamic")); 3269throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_PartitionerReturnedNull")); 3277throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_PartitionerReturnedNull")); 3340throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_NullEnumerator")); 3392throw new InvalidOperationException(Environment.GetResourceString("Parallel_ForEach_NullEnumerator")); 3582m_timeLimit = Environment.TickCount + timeOut; 3591return (Environment.TickCount > m_timeLimit);
system\threading\Tasks\ParallelLoopState.cs (6)
54Environment.GetResourceString("ParallelState_NotSupportedException_UnsupportedMethod")); 111Environment.GetResourceString("ParallelState_NotSupportedException_UnsupportedMethod")); 159Environment.GetResourceString("ParallelState_NotSupportedException_UnsupportedMethod")); 208Environment.GetResourceString("ParallelState_Break_InvalidOperationException_BreakAfterStop")); 251Environment.GetResourceString("ParallelState_Break_InvalidOperationException_BreakAfterStop")); 463Environment.GetResourceString("ParallelState_Stop_InvalidOperationException_StopAfterBreak"));
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\Tasks\TaskCanceledException.cs (2)
36public TaskCanceledException() : base(Environment.GetResourceString("TaskCanceledException_ctor_DefaultMessage")) 66base(Environment.GetResourceString("TaskCanceledException_ctor_DefaultMessage"), task!=null ? task.CancellationToken:new CancellationToken())
system\threading\Tasks\TaskCompletionSource.cs (6)
197throw new ArgumentException(Environment.GetResourceString("TaskCompletionSourceT_TrySetException_NullException"), "exceptions"); 202throw new ArgumentException(Environment.GetResourceString("TaskCompletionSourceT_TrySetException_NoExceptions"), "exceptions"); 248throw new InvalidOperationException(Environment.GetResourceString("TaskT_TransitionToFinal_AlreadyCompleted")); 274throw new InvalidOperationException(Environment.GetResourceString("TaskT_TransitionToFinal_AlreadyCompleted")); 322throw new InvalidOperationException(Environment.GetResourceString("TaskT_TransitionToFinal_AlreadyCompleted")); 370throw new InvalidOperationException(Environment.GetResourceString("TaskT_TransitionToFinal_AlreadyCompleted"));
system\threading\Tasks\TaskExceptionHolder.cs (3)
104!Environment.HasShutdownStarted && !AppDomain.CurrentDomain.IsFinalizingForUnload() && !s_domainUnloadStarted) 137Environment.GetResourceString("TaskExceptionHolder_UnhandledException"), 303throw new ArgumentException(Environment.GetResourceString("TaskExceptionHolder_UnknownExceptionType"), "exceptionObject");
system\threading\Tasks\TaskFactory.cs (9)
1599throw new ArgumentOutOfRangeException("creationOptions", Environment.GetResourceString("Task_FromAsync_LongRunning")); 1601throw new ArgumentOutOfRangeException("creationOptions", Environment.GetResourceString("Task_FromAsync_PreferFairness")); 2489if (task == null) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks"); 3147throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_EmptyTaskList"), "tasks"); 3156throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks"); 3167throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_EmptyTaskList"), "tasks"); 3176throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_NullTask"), "tasks"); 3195throw new ArgumentOutOfRangeException("continuationOptions", Environment.GetResourceString("Task_ContinueWith_ESandLR")); 3214throw new ArgumentOutOfRangeException("continuationOptions", Environment.GetResourceString("Task_MultiTaskContinuation_FireOptions"));
system\threading\Tasks\TaskScheduler.cs (3)
230throw new InvalidOperationException(Environment.GetResourceString("TaskScheduler_InconsistentStateAfterTryExecuteTaskInline")); 455throw new InvalidOperationException(Environment.GetResourceString("TaskScheduler_ExecuteTask_WrongTaskScheduler")); 651throw new InvalidOperationException(Environment.GetResourceString("TaskScheduler_FromCurrentSynchronizationContext_NoCurrent"));
system\threading\Tasks\TaskSchedulerException.cs (2)
33public TaskSchedulerException() : base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage")) // 53: base(Environment.GetResourceString("TaskSchedulerException_ctor_DefaultMessage"), innerException)
system\threading\thread.cs (14)
244throw new ArgumentOutOfRangeException("maxStackSize",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 263throw new ArgumentOutOfRangeException("maxStackSize",Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); 292throw new ArgumentException(null, Environment.GetResourceString("Argument_InvalidHandle")); 324throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ThreadWrongThreadStart")); 448throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ThreadAPIsNotSupported")); 467throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ThreadAPIsNotSupported")); 565throw new ThreadStateException(Environment.GetResourceString("ThreadState_NoAbortRequested")); 702throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 733throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 760currentProcessorId = Environment.CurrentManagedThreadId; 987throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ApartmentStateSwitchFailed")); 1178throw new ArgumentException(Environment.GetResourceString("Argument_InvalidResourceCultureName", value.Name)); 1506throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WriteOnce")); 1530throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ExceptionStateCrossAppDomain"), e);
system\threading\ThreadLocal.cs (8)
332throw new ObjectDisposedException(Environment.GetResourceString("ThreadLocal_Disposed")); 349throw new InvalidOperationException(Environment.GetResourceString("ThreadLocal_Value_RecursiveCallsToValue")); 365throw new ObjectDisposedException(Environment.GetResourceString("ThreadLocal_Disposed")); 403throw new ObjectDisposedException(Environment.GetResourceString("ThreadLocal_Disposed")); 425throw new ObjectDisposedException(Environment.GetResourceString("ThreadLocal_Disposed")); 463throw new InvalidOperationException(Environment.GetResourceString("ThreadLocal_ValuesNotAvailable")); 467if (list == null) throw new ObjectDisposedException(Environment.GetResourceString("ThreadLocal_Disposed")); 520throw new ObjectDisposedException(Environment.GetResourceString("ThreadLocal_Disposed"));
system\threading\threadpool.cs (13)
55public static int processorCount = Environment.ProcessorCount; 719int quantumStartTime = Environment.TickCount; 750while ((Environment.TickCount - quantumStartTime) < ThreadPoolGlobals.tpQuantum) 925if (!(Environment.HasShutdownStarted || AppDomain.CurrentDomain.IsFinalizingForUnload())) 1449throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_WaitOnTransparentProxy")); 1490throw new ArgumentOutOfRangeException("millisecondsTimeOutInterval", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 1507throw new ArgumentOutOfRangeException("millisecondsTimeOutInterval", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 1524throw new ArgumentOutOfRangeException("millisecondsTimeOutInterval", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 1541throw new ArgumentOutOfRangeException("millisecondsTimeOutInterval", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 1559throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 1561throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_LessEqualToIntegerMaxVal")); 1578throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1")); 1580throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_LessEqualToIntegerMaxVal"));
system\threading\threadstartexception.cs (2)
19: base(Environment.GetResourceString("Arg_ThreadStartException")) 25: base(Environment.GetResourceString("Arg_ThreadStartException"), reason)
system\threading\threadstateexception.cs (1)
26: base(Environment.GetResourceString("Arg_ThreadStateException")) {
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\threading\waithandlecannotbeopenedexception.cs (1)
22public WaitHandleCannotBeOpenedException() : base(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException"))
system\throwhelper.cs (11)
60throw new ArgumentException(Environment.GetResourceString("Arg_WrongType", key, targetType), "key"); 64throw new ArgumentException(Environment.GetResourceString("Arg_WrongType", value, targetType), "value"); 72throw new ArgumentException(Environment.GetResourceString(GetResourceName(resource))); 76throw new ArgumentException(Environment.GetResourceString(GetResourceName(resource)), GetArgumentName(argument)); 94Environment.GetResourceString(GetResourceName(resource))); 99throw new InvalidOperationException(Environment.GetResourceString(GetResourceName(resource))); 103throw new SerializationException(Environment.GetResourceString(GetResourceName(resource))); 107throw new System.Security.SecurityException(Environment.GetResourceString(GetResourceName(resource))); 111throw new NotSupportedException(Environment.GetResourceString(GetResourceName(resource))); 115throw new UnauthorizedAccessException(Environment.GetResourceString(GetResourceName(resource))); 119throw new ObjectDisposedException(objectName, Environment.GetResourceString(GetResourceName(resource)));
system\timeoutexception.cs (1)
25: base(Environment.GetResourceString("Arg_TimeoutException")) {
system\timespan.cs (10)
96throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("Overflow_TimeSpanTooLong")); 159throw new OverflowException(Environment.GetResourceString("Overflow_TimeSpanTooLong")); 177throw new ArgumentException(Environment.GetResourceString("Arg_MustBeTimeSpan")); 199throw new OverflowException(Environment.GetResourceString("Overflow_Duration")); 230throw new ArgumentException(Environment.GetResourceString("Arg_CannotBeNaN")); 235throw new OverflowException(Environment.GetResourceString("Overflow_TimeSpanTooLong")); 249throw new OverflowException(Environment.GetResourceString("Overflow_NegateTwosCompNum")); 264throw new OverflowException(Environment.GetResourceString("Overflow_TimeSpanTooLong")); 277throw new ArgumentOutOfRangeException(null, Environment.GetResourceString("Overflow_TimeSpanTooLong")); 342throw new OverflowException(Environment.GetResourceString("Overflow_NegateTwosCompNum"));
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\typeaccessexception.cs (1)
18: base(Environment.GetResourceString("Arg_TypeAccessException"))
system\typedreference.cs (7)
36throw new ArgumentException(Environment.GetResourceString("Arg_ArrayZeroError")); 46throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeFieldInfo")); 49throw new ArgumentException(Environment.GetResourceString("Argument_TypedReferenceInvalidField")); 52throw new MissingMemberException(Environment.GetResourceString("MissingMemberTypeRef")); 56throw new ArgumentException(Environment.GetResourceString("Arg_TypeRefPrimitve")); 59throw new MissingMemberException(Environment.GetResourceString("MissingMemberNestErr")); 91throw new NotSupportedException(Environment.GetResourceString("NotSupported_NYI"));
system\typeinitializationexception.cs (2)
32: base(Environment.GetResourceString("TypeInitialization_Default")) { 42public TypeInitializationException(String fullTypeName, Exception innerException) : base(Environment.GetResourceString("TypeInitialization_Type", fullTypeName), innerException) {
system\typeloadexception.cs (4)
33: base(Environment.GetResourceString("Arg_TypeLoadException")) { 62_message = Environment.GetResourceString("Arg_TypeLoadException"); 66AssemblyName = Environment.GetResourceString("IO_UnknownFileName"); 68ClassName = Environment.GetResourceString("IO_UnknownFileName");
system\typenameparser.cs (6)
88throw new ArgumentException(Environment.GetResourceString("Format_StringZeroLength")); 161throw new TypeLoadException(Environment.GetResourceString("Arg_TypeLoadNullStr")); 240throw new FileNotFoundException(Environment.GetResourceString("FileNotFound_ResolveAssembly", asmName)); 264Environment.GetResourceString("TypeLoad_ResolveType", OuterMostTypeName) : 265Environment.GetResourceString("TypeLoad_ResolveTypeFromAssembly", OuterMostTypeName, assembly.FullName); 296throw new TypeLoadException(Environment.GetResourceString("TypeLoad_ResolveNestedType", names[i], names[i-1]));
system\typeunloadedexception.cs (1)
24: base(Environment.GetResourceString("Arg_TypeUnloadedException")) {
system\uint16.cs (4)
55throw new ArgumentException(Environment.GetResourceString("Arg_MustBeUInt16")); 136throw new OverflowException(Environment.GetResourceString("Overflow_UInt16"), e); 139if (i > MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16")); 243throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "UInt16", "DateTime"));
system\uint32.cs (2)
62throw new ArgumentException(Environment.GetResourceString("Arg_MustBeUInt32")); 225throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "UInt32", "DateTime"));
system\uint64.cs (2)
59throw new ArgumentException (Environment.GetResourceString("Arg_MustBeUInt64")); 220throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "UInt64", "DateTime"));
system\uintptr.cs (1)
66throw new ArgumentException(Environment.GetResourceString("Serialization_InvalidPtrValue"));
system\unauthorizedaccessexception.cs (1)
28: base(Environment.GetResourceString("Arg_UnauthorizedAccessException")) {
system\unityserializationholder.cs (4)
203Environment.GetResourceString("Serialization_InsufficientDeserializationState", field)); 211throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnitySerHolder")); 300Environment.GetResourceString("Serialization_UnableToFindModule", m_data, m_assemblyName)); 319throw new ArgumentException(Environment.GetResourceString("Argument_InvalidUnity"));
system\variant.cs (5)
357throw new ArgumentException(Environment.GetResourceString("Arg_MustBePointer"),"pointerType"); 528throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnknownTypeCode", ic.GetTypeCode())); 575throw new InvalidCastException(Environment.GetResourceString("InvalidCast_CannotCoerceByRefVariant")); 580throw new InvalidCastException(Environment.GetResourceString("InvalidCast_CannotCoerceByRefVariant")); 684throw new InvalidCastException(Environment.GetResourceString("InvalidCast_CannotCoerceByRefVariant"));
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"));
PresentationBuildTasks (2)
BuildTasks\MS\Internal\Tasks\TaskHelper.cs (2)
80log.LogMessage(MessageImportance.Low,Environment.NewLine); 83log.LogMessage(MessageImportance.Low, Environment.NewLine);
PresentationCore (18)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
266OperatingSystem osInfo = Environment.OSVersion;
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
433s = Environment.GetEnvironmentVariable(WinDir) + @"\Fonts\";
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
248value = Environment.GetEnvironmentVariable(environmentVariable);
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (1)
346int timeStamp = Environment.TickCount ;
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
467ManipulationStartingEventArgs starting = new ManipulationStartingEventArgs(_manipulationDevice, Environment.TickCount);
Core\CSharp\System\Windows\Input\MouseDevice.cs (3)
344int timeStamp = Environment.TickCount; 981int timeStamp = Environment.TickCount; 1035int timeStamp = Environment.TickCount;
Core\CSharp\System\Windows\Input\TextCompositionEventArgs.cs (1)
32public TextCompositionEventArgs(InputDevice inputDevice, TextComposition composition) : base(inputDevice, Environment.TickCount)
Core\CSharp\System\Windows\Input\TextServicesContext.cs (1)
132if (!appDomainShutdown || System.Environment.OSVersion.Version.Major >= 6)
Core\CSharp\System\Windows\Input\Touch.cs (1)
44TouchFrameEventArgs args = new TouchFrameEventArgs(Environment.TickCount);
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1022TouchEventArgs touchEventArgs = new TouchEventArgs(this, Environment.TickCount);
Core\CSharp\System\Windows\Interop\HwndTarget.cs (2)
196/// identified by <see cref="Environment.UserInteractive"/>. 200/// <see cref="Environment.UserInteractive"/>, and (b) a registry override that requests
Core\CSharp\System\Windows\Interop\OperatingSystemVersionCheck.cs (1)
52OperatingSystem os = Environment.OSVersion;
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
198!Environment.UserInteractive ? // IF DisplayDevicesNotAvailable && IsNonInteractiveWindowStation/IsService...
Core\CSharp\System\Windows\MouseOverProperty.cs (1)
45MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.PrimaryDevice, Environment.TickCount, Mouse.PrimaryDevice.StylusDevice);
Core\CSharp\System\Windows\StylusOverProperty.cs (1)
37StylusEventArgs stylusEventArgs = new StylusEventArgs(Stylus.CurrentStylusDevice, Environment.TickCount);
PresentationFramework (29)
src\Framework\Microsoft\Win32\CommonDialog.cs (2)
98if (!Environment.UserInteractive) 181if (!Environment.UserInteractive)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1567if (dereferenceLinks && System.Environment.OSVersion.Version.Major >= 5) 2100get { return Environment.OSVersion.Version.Major >= 6; }
src\Framework\MS\Internal\AppModel\AssemblyFilter.cs (1)
82System.Environment.Exit(-1);
src\Framework\MS\Internal\AppModel\XappLauncher.cs (2)
1128Environment.GetFolderPath(Environment.SpecialFolder.System),
src\Framework\System\Windows\Application.cs (1)
2468System.Environment.ExitCode = exitCode;
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
1824_panningInfo.InertiaBoundaryBeginTimestamp = Environment.TickCount; 1899if (Math.Abs(Environment.TickCount - _panningInfo.InertiaBoundaryBeginTimestamp) < PanningInfo.InertiaBoundryMinimumTicks)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
8949int totalMilliseconds = Environment.TickCount - startTickCount; 9263int startMilliseconds = Environment.TickCount;
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1068Version osver = Environment.OSVersion.Version;
src\Framework\System\windows\Documents\TextEditor.cs (1)
1271int endOfFirstLine = textData.IndexOf(Environment.NewLine, StringComparison.Ordinal);
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
1170string filteredText = This._FilterText(Environment.NewLine, This.Selection); 1174This.Selection.Text = Environment.NewLine;
src\Framework\System\Windows\Documents\TextFindEngine.cs (1)
488if (System.Environment.OSVersion.Version.Major >= 6)
src\Framework\System\Windows\Documents\TextRangeBase.cs (4)
709textBuffer.Append(Environment.NewLine); 730textBuffer.Append(Environment.NewLine); 796textBuffer.Append(Environment.NewLine); 802textBuffer.Append(Environment.NewLine);
src\Framework\System\Windows\Documents\TextServicesHost.cs (1)
461if (_thread == Thread.CurrentThread || System.Environment.OSVersion.Version.Major >= 6)
src\Framework\System\Windows\Documents\TextStore.cs (2)
1374if (!(nextChars[0] == Environment.NewLine[0] && nextChars[1] == Environment.NewLine[1]))
src\Framework\System\Windows\Interop\DocobjHost.cs (2)
433OperatingSystem os = Environment.OSVersion; 588return Environment.ExitCode;
src\Framework\System\Windows\Standard\Utilities.cs (1)
29private static readonly Version _osVersion = Environment.OSVersion.Version;
src\Framework\System\Windows\StartupEventArgs.cs (1)
72string[] args = Environment.GetCommandLineArgs();
src\Framework\System\Windows\SystemParameters.cs (1)
1306if (System.Environment.OSVersion.Version.Major >= 6)
SMDiagnostics (4)
System\ServiceModel\Diagnostics\ExceptionUtility.cs (4)
140stackString = string.Concat(stackString, stackString.Length == 0 ? "" : Environment.NewLine, "throw", Environment.NewLine, stack, Environment.NewLine, "catch", Environment.NewLine);
SMSvcHost (1)
System\ServiceModel\Activation\SMSvcHost.cs (1)
66listenerAdapterNativeLibrary = Environment.SystemDirectory + "\\inetsrv\\wbhstipm.dll";
System (98)
compmod\microsoft\csharp\csharpcodeprovider.cs (3)
473b.Append(Environment.NewLine); 2900Output.WriteLine(System.Environment.Version.ToString()); 3634Environment.CurrentDirectory, options.TempFiles, ref outputFile, ref errorFile,
compmod\microsoft\visualbasic\VBCodeProvider.cs (2)
493b.Append(Environment.NewLine); 2407Output.WriteLine(System.Environment.Version.ToString());
compmod\microsoft\win32\SystemEvents.cs (1)
116if (Environment.OSVersion.Platform == System.PlatformID.Win32NT) {
compmod\microsoft\win32\UnsafeNativeMethods.cs (1)
238OperatingSystem os = Environment.OSVersion;
compmod\system\codedom\compiler\CodeCompiler.cs (1)
163nativeReturnValue = Executor.ExecWaitWithCapture(options.SafeUserToken, "\"" + fullname + "\" " + arguments, Environment.CurrentDirectory, options.TempFiles, ref outputFile, ref errorFile, trueCmdLine);
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 () )
compmod\system\codedom\compiler\RedistVersionInfo.cs (2)
100string comPlus_InstallRoot = Environment.GetEnvironmentVariable("COMPLUS_InstallRoot"); 101string comPlus_Version = Environment.GetEnvironmentVariable("COMPLUS_Version");
compmod\system\diagnostics\assertwrapper.cs (4)
114string fullMessage = message + Environment.NewLine + detailMessage + Environment.NewLine + stackTrace; 129if (!Environment.UserInteractive) 153System.Environment.Exit(1);
compmod\system\diagnostics\DefaultTraceListener.cs (6)
120string assertMessage = SR.GetString(SR.DebugAssertBanner) + Environment.NewLine 121+ SR.GetString(SR.DebugAssertShortMessage) + Environment.NewLine 122+ message + Environment.NewLine 123+ SR.GetString(SR.DebugAssertLongMessage) + Environment.NewLine + 124detailMessage + Environment.NewLine 208Write(message + Environment.NewLine, useLogFile);
compmod\system\diagnostics\TraceEventCache.cs (1)
32stackTrace = Environment.StackTrace;
compmod\system\diagnostics\TraceInternal.cs (1)
62appName = Path.GetFileName(Environment.GetCommandLineArgs()[0]);
compmod\system\diagnostics\XmlWriterTraceListener.cs (1)
22private readonly string machineName = Environment.MachineName;
net\System\Net\_AutoWebProxyScriptWrapper.cs (1)
602s_AppDomainInfo.ApplicationBase = Environment.SystemDirectory;
net\System\Net\_NetworkingPerfCounters.cs (1)
330if (!Environment.HasShutdownStarted && cp != null)
net\System\Net\_SSPIWrapper.cs (1)
91return new ConcurrentDictionary<string, SafeFreeCredentials>(Environment.ProcessorCount, s_DefaultCredentialsHandleCacheSize);
net\System\Net\_TimerThread.cs (5)
71m_StartTimeMilliseconds = Environment.TickCount; 142int now = Environment.TickCount; 539int nowMilliseconds = Environment.TickCount; 670int now = Environment.TickCount; 696int newNow = Environment.TickCount;
net\System\Net\HttpListener.cs (1)
2573int now = ((now = Environment.TickCount) == 0 ? 1 : now);
net\System\Net\Internal.cs (2)
90return Environment.HasShutdownStarted || AppDomain.CurrentDomain.IsFinalizingForUnload(); 696OperatingSystem operatingSystem = Environment.OSVersion;
net\System\Net\NetRegistryConfiguration.cs (1)
150Environment.Version.ToString(3));
net\System\Net\NetWebProxyFinder.cs (1)
257httpWebRequest.UserAgent = this.GetType().FullName + "/" + Environment.Version;
net\System\Net\UnsafeNativeMethods.cs (1)
3509string dllFileName = Path.Combine(Environment.SystemDirectory, TOKENBINDING);
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
149s_DllFileName = Path.Combine(Environment.SystemDirectory, WEBSOCKET);
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (4)
58string envVar = Environment.GetEnvironmentVariable(envVarName); 81string minEnvVar = Environment.GetEnvironmentVariable(minEnvVarName); 336int curMSec = Environment.TickCount; 550if (!Environment.HasShutdownStarted && !AppDomain.CurrentDomain.IsFinalizingForUnload())
regex\system\text\regularexpressions\RegexRunner.cs (2)
221timeoutOccursAt = Environment.TickCount + timeout; 247int currentMillis = Environment.TickCount;
security\system\security\cryptography\x509\x509certificate2.cs (12)
435string newLine = Environment.NewLine; 1252sb.Append(Environment.NewLine + Environment.NewLine + "[Private Key]"); 1257sb.Append(Environment.NewLine + " Key Store: "); 1259sb.Append(Environment.NewLine + " Provider Name: "); 1261sb.Append(Environment.NewLine + " Provider type: "); 1263sb.Append(Environment.NewLine + " Key Spec: "); 1265sb.Append(Environment.NewLine + " Key Container Name: "); 1270sb.Append(Environment.NewLine + " Unique Key Container Name: "); 1279sb.Append(Environment.NewLine + " Hardware Device: "); 1286sb.Append(Environment.NewLine + " Removable: "); 1293sb.Append(Environment.NewLine + " Protected: ");
services\io\system\io\FileSystemWatcher.cs (1)
948if (Environment.OSVersion.Platform != PlatformID.Win32NT) {
services\monitoring\system\diagnosticts\EventLog.cs (1)
61OperatingSystem os = Environment.OSVersion;
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (3)
1137processStartInfo.WorkingDirectory = Environment.SystemDirectory; 1140processStartInfo.FileName = Environment.SystemDirectory + "\\unlodctr.exe"; 1142processStartInfo.FileName = Environment.SystemDirectory + "\\lodctr.exe";
services\monitoring\system\diagnosticts\Process.cs (2)
710operatingSystem = Environment.OSVersion; 2055workingDirectory = Environment.CurrentDirectory;
services\monitoring\system\diagnosticts\ProcessManager.cs (7)
133return Environment.OSVersion.Platform == PlatformID.Win32NT; 139return Environment.OSVersion.Version.Major < 5 || 140(Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor == 0); 151if (!isRemoteMachine && IsNt && (Environment.OSVersion.Version.Major >= 5)) { 178(Environment.OSVersion.Version.Major >= 5 )) { 688moduleInfo.fileName = Path.Combine(Environment.SystemDirectory, "smss.exe");
services\monitoring\system\diagnosticts\ProcessModule.cs (1)
45if (Environment.OSVersion.Platform != PlatformID.Win32NT)
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
192foreach (DictionaryEntry entry in System.Environment.GetEnvironmentVariables())
services\monitoring\system\diagnosticts\ProcessThread.cs (1)
318if (Environment.OSVersion.Platform != PlatformID.Win32NT) {
services\monitoring\system\diagnosticts\SharedUtils.cs (4)
74if (Environment.OSVersion.Platform == PlatformID.Win32NT) { 75if (Environment.OSVersion.Version.Major >= 5) 252string versionPrefix = "v" + Environment.Version.Major + "." + Environment.Version.Minor;
sys\system\collections\concurrent\BlockingCollection.cs (3)
1001startTime = (uint)Environment.TickCount; 1149uint elapsedMilliseconds = (uint)Environment.TickCount - startTime; 1408startTime = (uint)Environment.TickCount;
sys\System\EnvironmentHelpers.cs (5)
18if(Environment.OSVersion.Platform != PlatformID.Win32NT) { 20} else if(Environment.OSVersion.Version.Major < 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor <= 1)) { 53OperatingSystem os = Environment.OSVersion;
sys\System\IO\compression\DeflaterZLib.cs (1)
98if (Environment.HasShutdownStarted)
sys\system\io\ports\SerialPort.cs (7)
962int startTicks = Environment.TickCount; 969timeUsed = Environment.TickCount - startTicks; 1016int startTicks = Environment.TickCount; 1064} while (timeout == SerialPort.InfiniteTimeout || (timeout - GetElapsedTime(Environment.TickCount, startTicks) > 0)); 1234int startTicks = Environment.TickCount; 1261timeNow = Environment.TickCount; 1263timeUsed += Environment.TickCount - timeNow;
sys\system\io\ports\SerialStream.cs (1)
644if (Environment.OSVersion.Platform == PlatformID.Win32Windows) {
System.Activities (1)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
2512builder.Append(Environment.NewLine);
System.Activities.Core.Presentation (7)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (3)
75StringFormat = TransitionNameToolTip + Environment.NewLine + SR.EditTransitionTooltip + Environment.NewLine + SR.CopyTransitionToolTip 97startDot.ToolTip = string.Format(CultureInfo.InvariantCulture, TriggerNameToolTip, triggerName) + Environment.NewLine + SR.SharedTriggerToolTip;
System\Activities\Core\Presentation\StateDesigner.xaml.cs (1)
236stateContainerEditor.ToolTip = SR.EditStateToolTip + Environment.NewLine + SR.PasteTransitionToolTip;
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (3)
94throw new InvalidOperationException(e.Message + Environment.NewLine + Environment.NewLine + e.InnerException.GetType().ToString() + Environment.NewLine + e.InnerException.Message, e);
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
221bookmarkListBuilder.AppendFormat(CultureInfo.InvariantCulture, "[{0}: {1}]{2}", bookmarkInfo.BookmarkName, bookmarkInfo.OwnerDisplayName, Environment.NewLine);
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreConstants.cs (1)
21public static readonly string MachineName = Environment.MachineName;
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (9)
78stackTrace = stackTrace.Remove(0, stackTrace.IndexOf(Environment.NewLine, StringComparison.Ordinal) + 1); 91stackTrace = stackTrace.Remove(0, stackTrace.IndexOf(Environment.NewLine, StringComparison.Ordinal) + 1); 189error.Append(Environment.NewLine); 191error.Append(Environment.NewLine); 193error.Append(Environment.NewLine); 195error.Append(Environment.NewLine); 199error.Append(Environment.NewLine); 201error.Append(Environment.NewLine); 204error.Append(Environment.NewLine);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
173foreach (string line in text.Split(new string[] { Environment.NewLine, "\n", "\r" }, StringSplitOptions.RemoveEmptyEntries))
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1509sb.Insert(0, Environment.NewLine);
System.AddIn (3)
System\Addin\Hosting\AddInActivator.cs (2)
597locations.Append(Environment.NewLine); 615locations.Append(Environment.NewLine);
System\Addin\Hosting\AddInServer.cs (1)
82Environment.Exit(0);
System.Configuration (5)
System\Configuration\ClientConfigPaths.cs (4)
193string roamingFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); 199string localFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
System\Configuration\Internal\WriteFileContext.cs (1)
313_osPlatform = Environment.OSVersion.Platform;
System.Core (28)
System\Diagnostics\Eventing\EventProvider.cs (4)
34private static bool s_platformNotSupported = (Environment.OSVersion.Version.Major < 6); 35private static bool s_preWin7 = (Environment.OSVersion.Version.Major < 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor < 1));
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
32private static bool s_platformNotSupported = (Environment.OSVersion.Version.Major < 6);
System\Diagnostics\EventSchemaTraceListener.cs (1)
32private static readonly string machineName = Environment.MachineName;
System\Diagnostics\PerformanceData\CounterSet.cs (1)
28private static readonly bool s_platformNotSupported = (Environment.OSVersion.Version.Major < 6);
System\IO\Pipes\Pipe.cs (5)
503if (Environment.OSVersion.Platform == PlatformID.Win32Windows) { 1183int startTime = Environment.TickCount; 1233while (timeout == Timeout.Infinite || (elapsed = unchecked(Environment.TickCount - startTime)) < timeout); 1266int startTime = Environment.TickCount; 1358while (timeout == Timeout.Infinite || (elapsed = unchecked(Environment.TickCount - startTime)) < timeout);
System\IO\Pipes\PipeStream.cs (1)
71private static readonly bool _canUseAsync = (Environment.OSVersion.Platform == PlatformID.Win32NT);
System\Linq\Parallel\Scheduling\Scheduling.cs (1)
41internal static int DefaultDegreeOfParallelism = Math.Min(Environment.ProcessorCount, MAX_SUPPORTED_DOP);
System\Security\Cryptography\AesCryptoServiceProvider.cs (2)
43if (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor == 1) {
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (12)
59private static readonly int ProcessorCount = Environment.ProcessorCount; 251_start = Environment.TickCount; 262_start = Environment.TickCount; 274int elapsed = Environment.TickCount - _start; 328int id = Environment.CurrentManagedThreadId; 490int id = Environment.CurrentManagedThreadId; 712int id = Environment.CurrentManagedThreadId; 854if (Environment.CurrentManagedThreadId == _upgradeLockOwnerId) 878if (Environment.CurrentManagedThreadId != _writeLockOwnerId) 931if (Environment.CurrentManagedThreadId != _upgradeLockOwnerId) 1459if (Environment.CurrentManagedThreadId == _upgradeLockOwnerId) 1483if (Environment.CurrentManagedThreadId == _writeLockOwnerId)
System.Data (48)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (9)
78stackTrace = stackTrace.Remove(0, stackTrace.IndexOf(Environment.NewLine, StringComparison.Ordinal) + 1); 91stackTrace = stackTrace.Remove(0, stackTrace.IndexOf(Environment.NewLine, StringComparison.Ordinal) + 1); 189error.Append(Environment.NewLine); 191error.Append(Environment.NewLine); 193error.Append(Environment.NewLine); 195error.Append(Environment.NewLine); 199error.Append(Environment.NewLine); 201error.Append(Environment.NewLine); 204error.Append(Environment.NewLine);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
173foreach (string line in text.Split(new string[] { Environment.NewLine, "\n", "\r" }, StringSplitOptions.RemoveEmptyEntries))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1509sb.Insert(0, Environment.NewLine);
fx\src\data\System\Data\Common\AdapterUtil.cs (3)
1879static internal readonly bool IsWindowsNT = (PlatformID.Win32NT == Environment.OSVersion.Platform); 1880static internal readonly bool IsPlatformNT5 = (ADP.IsWindowsNT && (Environment.OSVersion.Version.Major >= 5)); 1979return Environment.MachineName;
fx\src\data\System\Data\DataException.cs (1)
251Bid.Trace(", StackTrace='%ls'", Environment.StackTrace);
fx\src\data\System\Data\Odbc\OdbcException.cs (1)
31builder.Append(Environment.NewLine);
fx\src\data\System\Data\Odbc\OdbcInfoMessageEvent.cs (1)
32if (0 < builder.Length) { builder.Append(Environment.NewLine); }
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (18)
33builder.Append(Environment.NewLine); 38builder.Append(Environment.NewLine); 43builder.Append(Environment.NewLine); 48builder.Append(Environment.NewLine); 57builder.Append(Environment.NewLine); 78builder.Append(Environment.NewLine); 83builder.Append(Environment.NewLine); 111if (0 < builder.Length) { builder.Append(Environment.NewLine); } 115if (0 < builder.Length) { builder.Append(Environment.NewLine); } 119if (0 < builder.Length) { builder.Append(Environment.NewLine); } 123if (0 < builder.Length) { builder.Append(Environment.NewLine); } 127if (0 < builder.Length) { builder.Append(Environment.NewLine); } 131if (0 < builder.Length) { builder.Append(Environment.NewLine); } 135if (0 < builder.Length) { builder.Append(Environment.NewLine); } 139if (0 < builder.Length) { builder.Append(Environment.NewLine); } 143if (0 < builder.Length) { builder.Append(Environment.NewLine); } 147if (0 < builder.Length) { builder.Append(Environment.NewLine); } 288message = FailedGetDescription(hr) + Environment.NewLine + ODB.ELookup(hresult);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
94if (constr.PossiblePrompt && !System.Environment.UserInteractive) {
fx\src\data\System\Data\OleDb\OleDbException.cs (3)
101builder.Append(Environment.NewLine); 106builder.Append(Environment.NewLine); 127builder.Append(Environment.NewLine);
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
35static Task<DbConnectionInternal>[] s_pendingOpenNonPooled = new Task<DbConnectionInternal>[Environment.ProcessorCount];
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (1)
495_pooledDbAuthenticationContexts = new ConcurrentDictionary<DbConnectionPoolAuthenticationContextKey, DbConnectionPoolAuthenticationContext>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/,
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (1)
23new ConcurrentDictionary<string, SqlAeadAes256CbcHmac256Algorithm>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/, capacity: 2);
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (1)
25new ConcurrentDictionary<string, SqlAes256CbcAlgorithm>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/, capacity: 2);
fx\src\data\System\Data\SqlClient\SqlClientEncryptionAlgorithmFactoryList.cs (1)
23_encryptionAlgoFactoryList = new ConcurrentDictionary<string, SqlClientEncryptionAlgorithmFactory>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/, capacity: 2);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
88= new ConcurrentDictionary<string, IList<string>>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/, 766result = Environment.MachineName;
fx\src\data\System\Data\SqlClient\SqlException.cs (1)
162message.Append(Environment.NewLine);
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (1)
142if (Environment.OSVersion.Version >= ThreadErrorModeMinOsVersion)
System.Data.Entity (9)
System\Data\Mapping\StorageModificationFunctionMapping.cs (2)
57InsertFunctionMapping, Environment.NewLine + " "); 112InsertFunctionMapping, UpdateFunctionMapping, Environment.NewLine + " ");
System\Data\Mapping\ViewGeneration\Validation\SchemaConstraints.cs (1)
60builder.Append(Environment.NewLine);
System\Data\Metadata\ObjectHelper.cs (4)
54StringBuilder sb = new StringBuilder(System.Environment.NewLine); 61sb.Append(System.Environment.NewLine); 76StringBuilder sb = new StringBuilder(System.Environment.NewLine); 82sb.Append(System.Environment.NewLine);
System\Data\Objects\ObjectContext.cs (1)
2140builder.Append(prefix).Append(Environment.NewLine);
System\Data\SqlClient\SqlProviderServices.cs (1)
1048commandText = Environment.NewLine;
System.Data.Entity.Design (13)
System\Data\Entity\Design\Common\EDesignUtil.cs (1)
32message += Environment.NewLine + indent;
System\Data\Entity\Design\Common\MetadataUtil.cs (2)
264StringBuilder sb = new StringBuilder(System.Environment.NewLine); 271sb.Append(System.Environment.NewLine);
System\Data\Entity\Design\EntityCodeGenerator.cs (1)
582string message = results.Errors.OfType<CompilerError>().Aggregate(string.Empty, (accumulated, input) => accumulated == string.Empty ? input.ToString() : accumulated + Environment.NewLine + input.ToString());
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (8)
197command.CommandText = sql + Environment.NewLine + orderByClause; 235whereClause.Append(Environment.NewLine); 237whereClause.Append(Environment.NewLine); 248whereClause.Append(Environment.NewLine); 250whereClause.Append(Environment.NewLine); 263sqlStatement.Append(Environment.NewLine); 265sqlStatement.Append(Environment.NewLine); 271sqlStatement.Append(Environment.NewLine);
System\Data\EntityModel\Emitters\FixUp.cs (1)
214line += Environment.NewLine + " End Sub";
System.Data.Linq (3)
SqlClient\SqlBuilder.cs (2)
168string cmd = "ALTER TABLE {0}" + Environment.NewLine + " ADD CONSTRAINT {1} FOREIGN KEY ({2}) REFERENCES {3}({4})"; 175cmd += Environment.NewLine + " ON DELETE " + delConstr;
SqlClient\SqlProvider.cs (1)
684sb.Insert(0, "SET ARITHABORT ON" + Environment.NewLine);
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
45private static readonly string NewLine = System.Environment.NewLine;
System.Data.Services.Design (3)
System\Data\EntityModel\Emitters\FixUp.cs (1)
212line += Environment.NewLine + " End Sub";
System\Data\EntityModel\EntityClassGenerator.cs (2)
597return Environment.GetEnvironmentVariable(EntityClassGenerator.Version_EnvironmentVariable) == EntityClassGenerator.Version2Dot0 ? 606return Environment.GetEnvironmentVariable(EntityClassGenerator.UseDSC_EnvironmentVariable) == EntityClassGenerator.UseDSCTrue;
System.Data.SqlXml (3)
System\Xml\Xsl\XPath\XPathCompileException.cs (1)
104message += Environment.NewLine;
System\Xml\Xsl\XslException.cs (2)
72result += " ---> " + InnerException.ToString() + Environment.NewLine + " " + CreateMessage(Res.Xml_EndOfInnerExceptionStack); 75result += Environment.NewLine + StackTrace;
System.Drawing (12)
commonui\System\Drawing\Graphics.cs (1)
4579if (!(Environment.OSVersion.Platform == System.PlatformID.Win32Windows)) {
commonui\System\Drawing\Printing\PrinterSettings.cs (1)
222if (Environment.OSVersion.Platform == System.PlatformID.Win32NT) {
commonui\System\Drawing\SystemFonts.cs (3)
311if (Environment.OSVersion.Platform == System.PlatformID.Win32NT && 312Environment.OSVersion.Version.Major <= 4) { 422} else if (Environment.OSVersion.Platform == System.PlatformID.Win32Windows) {
commonui\System\Drawing\SystemIcons.cs (1)
174if(Environment.OSVersion.Version.Major >= 6) {
misc\DbgUtil.cs (1)
281return Environment.StackTrace;
misc\DebugHandleTracker.cs (5)
148Debug.WriteLine(Environment.StackTrace); 187Debug.WriteLine(Environment.StackTrace); 265Debug.WriteLine(Environment.StackTrace); 309this.callStack = Environment.StackTrace; 468truncatedStack += Environment.NewLine;
System.IdentityModel (4)
System\IdentityModel\Claims\ClaimsHelper.cs (1)
27if (Environment.OSVersion.Version.Major >= CryptoHelper.WindowsVistaMajorNumber)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
451Environment.NewLine,
System\IdentityModel\SecurityUtils.cs (1)
188if (Environment.OSVersion.Version.Major >= WindowsVistaMajorNumber)
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (1)
95if (Environment.OSVersion.Version.Major >= SecurityUtils.WindowsVistaMajorNumber)
System.IdentityModel.Selectors (8)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (6)
244Environment.GetFolderPath(Environment.SpecialFolder.System), 275Environment.GetFolderPath(Environment.SpecialFolder.System), 296Environment.GetFolderPath(Environment.SpecialFolder.System),
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\InfocardTrace.cs (2)
627if (!String.IsNullOrEmpty(Environment.StackTrace)) 631Environment.StackTrace);
System.IO.Log (1)
System\IO\Log\OverlappedAsyncResult.cs (1)
57if (!Environment.HasShutdownStarted &&
System.Management (21)
Instrumentation\EventSource.cs (3)
735uint timeLimitForBatchFlush = (uint)Environment.TickCount + 100; 857if(count == batchSize || ((uint)Environment.TickCount) >= timeLimitForBatchFlush) 883timeLimitForBatchFlush = (uint)Environment.TickCount + 100;
Instrumentation\Instrumentation.cs (6)
492int tickCount = Environment.TickCount; 495lastFire = Environment.TickCount ; 511lastFire = Environment.TickCount; 539lastFire = Environment.TickCount; 587if((Environment.TickCount - lastFire)<100) 595lastFire = Environment.TickCount;
Instrumentation\WMICapabilities.cs (4)
141if(Environment.OSVersion.Platform == PlatformID.Win32Windows) 161OperatingSystem os = Environment.OSVersion; 168string fastproxPath = Path.Combine(Environment.SystemDirectory, @"wbem\fastprox.dll"); 181OperatingSystem os = Environment.OSVersion;
InteropClasses\WMIInterop.cs (1)
2152OperatingSystem os = Environment.OSVersion;
managementeventwatcher.cs (1)
651(0==String.Compare(eventWatcher.Scope.Path.Server, System.Environment.MachineName, StringComparison.OrdinalIgnoreCase)))
managementscope.cs (4)
1142if (Environment.OSVersion.Platform == PlatformID.Win32NT) 1145if( ((Environment.OSVersion.Version.Major == 5) && (Environment.OSVersion.Version.Minor >= 1)) || (Environment.OSVersion.Version.Major >= 6) )
wmieventsink.cs (2)
95(0==String.Compare(this.path.Server, System.Environment.MachineName, StringComparison.OrdinalIgnoreCase))) 107(0==String.Compare(this.scope.Path.Server, System.Environment.MachineName, StringComparison.OrdinalIgnoreCase)))
System.Messaging (3)
System\Messaging\AccessControlList.cs (2)
45if (Environment.OSVersion.Platform == PlatformID.Win32NT) { 46if (Environment.OSVersion.Version.Major >= 5)
System\Messaging\MessageQueue.cs (1)
76internal static readonly Version OSVersion = Environment.OSVersion.Version;
System.Net (3)
net\PeerToPeer\Collaboration\Peer.cs (2)
296string path = Path.Combine( Environment.CurrentDirectory, Process.GetCurrentProcess().ProcessName + ".exe"); 298string[] argsArray = Environment.GetCommandLineArgs();
net\PeerToPeer\UnsafePeerToPeerMethods.cs (1)
268string dllFileName = Path.Combine(Environment.SystemDirectory, UnsafeP2PNativeMethods.P2P);
System.Runtime.Caching (1)
System\Caching\MemoryCache.cs (1)
323_storeCount = Environment.ProcessorCount;
System.Runtime.Remoting (5)
channels\core\exclusivetcplistener.cs (1)
33Environment.OSVersion.Platform == PlatformID.Win32NT &&
channels\http\httpclientchannel.cs (2)
410System.Environment.OSVersion.Version + 412"; MS .NET Remoting; MS .NET CLR " + System.Environment.Version.ToString() + " )";
channels\http\httpserverchannel.cs (1)
538"MS .NET Remoting, MS .NET CLR " + System.Environment.Version.ToString();
channels\ipc\ipcport.cs (1)
67if (Environment.OSVersion.Platform != PlatformID.Win32NT) {
System.Runtime.Serialization (1)
System\Runtime\Serialization\DataContractSet.cs (1)
471errorMessage.AppendFormat("{0}\"{1}\" ", Environment.NewLine, conflictingType.AssemblyQualifiedName);
System.Security (7)
system\security\cryptography\cryptoapi.cs (2)
2875if (!System.Environment.UserInteractive) 2891if (!System.Environment.UserInteractive)
system\security\cryptography\dataprotection.cs (4)
43if (Environment.OSVersion.Platform == PlatformID.Win32Windows) 118if (Environment.OSVersion.Platform == PlatformID.Win32Windows) 183if (Environment.OSVersion.Platform == PlatformID.Win32Windows) 214if (Environment.OSVersion.Platform == PlatformID.Win32Windows)
system\security\cryptography\xml\reference.cs (1)
326string baseUri = (document == null ? System.Environment.CurrentDirectory + "\\" : document.BaseURI);
System.ServiceModel (60)
System\ServiceModel\Administration\AppDomainInfo.cs (1)
34this.machineName = Environment.MachineName;
System\ServiceModel\Channels\Msmq.cs (1)
25Version osVersion = System.Environment.OSVersion.Version;
System\ServiceModel\Channels\MsmqQueue.cs (1)
779&& ! Environment.HasShutdownStarted
System\ServiceModel\Channels\MsmqReceiveHelper.cs (1)
128this.msmqRuntimeNativeLibrary = Environment.SystemDirectory + "\\" + UnsafeNativeMethods.MQRT;
System\ServiceModel\Channels\OverlappedContext.cs (1)
79if (this.nativeOverlapped != null && !AppDomain.CurrentDomain.IsFinalizingForUnload() && !Environment.HasShutdownStarted)
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
345this.validateUriCallThrottle = new ThreadNeutralSemaphore(MaxPendingValidateUriRouteCallsPerProcessor * Environment.ProcessorCount, () => { return null; });
System\ServiceModel\Channels\TcpChannelListener.cs (1)
185static Random randomPortGenerator = new Random(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1165OperatingSystem os = Environment.OSVersion;
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (22)
35WriteUTFChars(s, title + Environment.NewLine); 36WriteUTFChars(s, asmTitle + Environment.NewLine); 38WriteUTFChars(s, "<assemblyIdentity" + Environment.NewLine, 4); 39WriteUTFChars(s, "name=\"" + assemblyName + "\"" + Environment.NewLine, 8); 40WriteUTFChars(s, "version=\"1.0.0.0\"/>" + Environment.NewLine, 8); 45WriteUTFChars(s, "<dependency>" + Environment.NewLine, 4); 47WriteUTFChars(s, "<dependentAssembly>" + Environment.NewLine, 8); 48WriteUTFChars(s, "<assemblyIdentity" + Environment.NewLine, 12); 50WriteUTFChars(s, "name=\"" + manifests[i].ToString() + "\"" + Environment.NewLine, 16); 51WriteUTFChars(s, "version=\"1.0.0.0\"/>" + Environment.NewLine, 16); 53WriteUTFChars(s, "</dependentAssembly>" + Environment.NewLine, 8); 54WriteUTFChars(s, "</dependency>" + Environment.NewLine, 4); 93WriteUTFChars(s, title + Environment.NewLine); 94WriteUTFChars(s, asmTitle + Environment.NewLine); 96WriteUTFChars(s, "<assemblyIdentity" + Environment.NewLine, 4); 97WriteUTFChars(s, "name=\"" + assemblyName + "\"" + Environment.NewLine, 8); 98WriteUTFChars(s, "version=\"1.0.0.0\"/>" + Environment.NewLine, 8); 149WriteUTFChars(s, "<clrSurrogate" + Environment.NewLine, offset); 151WriteUTFChars(s, " clsid=\"" + strClsId + "\"" + Environment.NewLine, offset); 154WriteUTFChars(s, " name=\"" + name + "\"" + Environment.NewLine, offset); 156WriteUTFChars(s, " runtimeVersion=\"" + asmver + "\">" + Environment.NewLine, offset); 158WriteUTFChars(s, "</clrSurrogate>" + Environment.NewLine, offset);
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (5)
162if (Environment.OSVersion.Version.Major > 5) 164else if (Environment.OSVersion.Version.Major == 5) 166if (Environment.OSVersion.Version.Minor > 2) 168else if (Environment.OSVersion.Version.Minor == 2) 170if (!string.IsNullOrEmpty(Environment.OSVersion.ServicePack))
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (1)
386Version osVersion = Environment.OSVersion.Version;
System\ServiceModel\OSEnvironmentHelper.cs (4)
16currentServicePack = (byte)Environment.OSVersion.Version.MajorRevision; 18int major = Environment.OSVersion.Version.Major; 19int minor = Environment.OSVersion.Version.Minor; 82return Environment.ProcessorCount;
System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (2)
62result.AppendFormat("{0} UseCurrentUserProtectionScope={1}", Environment.NewLine, this.useCurrentUserProtectionScope); 63result.AppendFormat("{0} Entropy Length={1}", Environment.NewLine, (this.entropy == null) ? 0 : this.entropy.Length);
System\ServiceModel\Security\SecurityUtils.cs (17)
316return ((Environment.OSVersion.Version.Major >= SecurityUtils.XPMajorNumber && Environment.OSVersion.Version.Minor > SecurityUtils.XPMinorNumber) || 317Environment.OSVersion.Version.Major > SecurityUtils.XPMajorNumber); 323return (Environment.OSVersion.Version.Major >= windows7Version.Major && Environment.OSVersion.Version.Minor >= windows7Version.Minor); 2307if ((Environment.OSVersion.Version.Major > WindowsServerMajorNumber) 2308|| (Environment.OSVersion.Version.Major == WindowsServerMajorNumber && Environment.OSVersion.Version.Minor > WindowsServerMinorNumber)) 2313if (Environment.OSVersion.Version.Major == XPMajorNumber && Environment.OSVersion.Version.Minor == XPMinorNumber) 2315if ((Environment.OSVersion.ServicePack == string.Empty) || String.Equals(Environment.OSVersion.ServicePack, ServicePack1, StringComparison.OrdinalIgnoreCase) || String.Equals(Environment.OSVersion.ServicePack, ServicePack2, StringComparison.OrdinalIgnoreCase)) 2325else if (Environment.OSVersion.Version.Major == WindowsServerMajorNumber && Environment.OSVersion.Version.Minor == WindowsServerMinorNumber) 2327if (Environment.OSVersion.ServicePack == string.Empty || String.Equals(Environment.OSVersion.ServicePack, ServicePack1, StringComparison.OrdinalIgnoreCase))
System\ServiceModel\Transactions\WsatConfiguration.cs (1)
244bool isTmLocal = string.Compare(Environment.MachineName,
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\UdpChannelFactory.cs (1)
358UdpConstants.PendingReceiveCountPerProcessor * Environment.ProcessorCount,
System\ServiceModel\Channels\UdpChannelListener.cs (1)
372UdpConstants.PendingReceiveCountPerProcessor * Environment.ProcessorCount,
System\ServiceModel\Channels\UdpConstants.cs (1)
41public static readonly long MaxPendingMessagesTotalSize = 1024 * 1024 * Environment.ProcessorCount; // 512 * 2K messages per processor
System\ServiceModel\Channels\UdpOutputChannel.cs (1)
55this.randomNumberGenerator = new SynchronizedRandom(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System\ServiceModel\Channels\UdpUtility.cs (1)
165Random randomNumberGenerator = new Random(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System.ServiceModel.Internals (4)
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
40static bool isVistaOrGreater = Environment.OSVersion.Version.Major >= WindowsVistaMajorNumber;
System\Runtime\Fx.cs (1)
191Environment.FailFast(failFastMessage);
System\Runtime\IOThreadScheduler.cs (1)
389if (!Environment.HasShutdownStarted && !AppDomain.CurrentDomain.IsFinalizingForUnload())
System\Runtime\SynchronizedPool.cs (1)
342return Environment.ProcessorCount;
System.Transactions (11)
System\Transactions\Oletx\OletxTransactionManager.cs (10)
184Environment.FailFast( SR.GetString( SR.InternalError )); 207Environment.FailFast( SR.GetString( SR.InternalError )); 235Environment.FailFast( SR.GetString( SR.InternalError )); 309Environment.FailFast( SR.GetString( SR.InternalError )); 341Environment.FailFast( SR.GetString( SR.InternalError )); 368Environment.FailFast( SR.GetString( SR.InternalError )); 393Environment.FailFast( SR.GetString( SR.InternalError )); 418Environment.FailFast( SR.GetString( SR.InternalError )); 449Environment.FailFast(SR.GetString(SR.InternalError )); 465Environment.FailFast(SR.GetString(SR.InternalError ));
System\Transactions\TransactionManager.cs (1)
758if ( PlatformID.Win32NT != Environment.OSVersion.Platform )
System.Web (34)
Compilation\CompilationUtil.cs (1)
660maxConcurrentCompilations = Environment.ProcessorCount;
Compilation\MultiTargetingUtil.cs (1)
246var runtime = Environment.Version;
Configuration\WebConfigurationHost.cs (1)
860&& !StringUtil.EqualsIgnoreCase(server, Environment.MachineName);
DataAccess\SqlConnectionHelper.cs (1)
116appPath = Environment.CurrentDirectory;
Hosting\ApplicationHost.cs (1)
41if (Environment.OSVersion.Platform != PlatformID.Win32NT)
Hosting\ApplicationManager.cs (2)
1442if (!Environment.UserInteractive) { 1809string envVar = Environment.GetEnvironmentVariable("DEV_ENVIRONMENT", EnvironmentVariableTarget.Process);
Hosting\HostingEnvironment.cs (1)
623_shutDownStack = Environment.StackTrace;
Hosting\IPipelineRuntime.cs (1)
253Debug.Trace("PipelineDomain", "StopProcessing with stack = " + Environment.StackTrace
HttpRuntime.cs (4)
300if (Environment.OSVersion.Platform != PlatformID.Win32NT) 972if ((!BuildManagerHost.InClientBuildManager) && (!Environment.UserInteractive)) 1871+ " Stack = " + Environment.StackTrace ); 2284_theRuntime._shutDownStack = Environment.StackTrace;
Management\regiisutil.cs (3)
266dirName = Environment.CurrentDirectory; 269dirName = Path.Combine(Environment.CurrentDirectory, dirName); 361fileName = Path.Combine(Environment.CurrentDirectory, fileName);
Management\WebEvents.cs (1)
1914return Environment.MachineName;
Security\AuthStoreRoleProvider.cs (1)
555appPath = Environment.CurrentDirectory;
Security\WindowsTokenRoleProvider.cs (1)
187_MachineName = (System.Environment.MachineName + "\\").ToLower(CultureInfo.InvariantCulture);
UI\WebControls\TextBox.cs (2)
711writer.Write(System.Environment.NewLine); 715HttpUtility.HtmlEncode(System.Environment.NewLine + Text, writer);
Util\AppVerifier.cs (2)
756string[] traceLines = fullStackTrace.ToString().Split(new string[] { Environment.NewLine }, StringSplitOptions.None); 766return String.Join(Environment.NewLine, traceLines.Skip(i));
Util\EnableViewStateMacRegistryHelper.cs (1)
67string keyName = String.Format(CultureInfo.InvariantCulture, @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v{0}", Environment.Version.ToString(3));
Util\PathUtil.cs (2)
18return Environment.GetFolderPath(Environment.SpecialFolder.System);
Util\SmtpMail.cs (5)
295Version osVersion = Environment.OSVersion.Version; 457if (Environment.OSVersion.Platform != PlatformID.Win32NT) { 463else if (Environment.OSVersion.Version.Major <= 4) { 484if (Environment.OSVersion.Platform != PlatformID.Win32NT) { 490else if (Environment.OSVersion.Version.Major <= 4) {
Util\Transactions.cs (2)
69if (Environment.OSVersion.Platform != PlatformID.Win32NT || Environment.OSVersion.Version.Major <= 4)
Util\WorkItem.cs (1)
40if (Environment.OSVersion.Platform != PlatformID.Win32NT)
System.Web.Extensions (1)
Compilation\WCFBuildProvider.cs (1)
287collectedMessages.Append(Environment.NewLine);
System.Web.Services (12)
System\Web\Services\Description\WebServicesInteroperability.cs (4)
664sb.Append(Environment.NewLine); 763sb.Append(Environment.NewLine); 769sb.Append(Environment.NewLine); 774sb.Append(Environment.NewLine);
System\Web\Services\Diagnostics\TraceUtility.cs (1)
246sb.Append(Environment.NewLine);
System\Web\Services\Protocols\ClientProtocol.cs (1)
719private static string UserAgentDefault = "Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol " + System.Environment.Version.ToString() + ")";
System\Web\Services\Protocols\RequestResponse.cs (3)
144sb.Append(Environment.NewLine); 146sb.Append(Environment.NewLine); 148sb.Append(Environment.NewLine);
System\Web\Services\Protocols\ServerProtocol.cs (2)
153builder.Append(Environment.NewLine); 158builder.Append(Environment.NewLine);
System\Web\Services\Protocols\SoapClientProtocol.cs (1)
624Environment.NewLine +
System.Windows.Forms (62)
misc\DbgUtil.cs (1)
281return Environment.StackTrace;
misc\DebugHandleTracker.cs (5)
148Debug.WriteLine(Environment.StackTrace); 187Debug.WriteLine(Environment.StackTrace); 265Debug.WriteLine(Environment.StackTrace); 309this.callStack = Environment.StackTrace; 468truncatedStack += Environment.NewLine;
misc\DpiHelper.cs (2)
176if ((Environment.OSVersion.Platform == System.PlatformID.Win32NT) && 177(Environment.OSVersion.Version.CompareTo(ConfigurationOptions.RS2Version) >= 0) &&
misc\GDI\WindowsFont.cs (2)
575if (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor >= 1)
winforms\Managed\System\Resources\ResXDataNode.cs (1)
905private static string NetFrameworkPath = Path.Combine(Environment.GetEnvironmentVariable("SystemRoot"), "Microsoft.Net\\Framework");
winforms\Managed\System\WinForms\Application.cs (10)
251return GetDataPath(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)); 417return GetDataPath(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); 709return GetDataPath(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)); 1448String[] arguments = Environment.GetCommandLineArgs(); 3277Environment.Exit(0); 4067if (Environment.OSVersion.Platform == PlatformID.Win32NT) { 4120if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
winforms\Managed\System\WinForms\Clipboard.cs (6)
334if (Environment.OSVersion.Platform != System.PlatformID.Win32NT || 335Environment.OSVersion.Version.Major < 5) 425if (Environment.OSVersion.Platform != System.PlatformID.Win32NT || 426Environment.OSVersion.Version.Major < 5) 548if (Environment.OSVersion.Platform != System.PlatformID.Win32NT || 549Environment.OSVersion.Version.Major < 5)
winforms\Managed\System\WinForms\FileDialog.cs (3)
832if (dereferenceLinks && System.Environment.OSVersion.Version.Major >= 5) 1011if (Environment.OSVersion.Platform != System.PlatformID.Win32NT || 1012Environment.OSVersion.Version.Major < 5) {
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (6)
36private Environment.SpecialFolder rootFolder; 152DefaultValue(System.Environment.SpecialFolder.Desktop), 158public System.Environment.SpecialFolder RootFolder 169if (!Enum.IsDefined(typeof(System.Environment.SpecialFolder), value)) 171throw new InvalidEnumArgumentException("value", (int)value, typeof(System.Environment.SpecialFolder)); 221rootFolder = System.Environment.SpecialFolder.Desktop;
winforms\Managed\System\WinForms\Form.cs (1)
4317securitySite = Environment.MachineName;
winforms\Managed\System\WinForms\InputLanguage.cs (1)
313if (layoutDisplayName != null && Environment.OSVersion.Version.Major >= 5) {
winforms\Managed\System\WinForms\ListBox.cs (2)
804if (Environment.OSVersion.Platform != System.PlatformID.Win32NT || 805Environment.OSVersion.Version.Major < 5) {
winforms\Managed\System\WinForms\OSFeature.cs (6)
69if (Environment.OSVersion.Platform == System.PlatformID.Win32NT 70&& Environment.OSVersion.Version.CompareTo(new Version(5, 0, 0, 0)) >= 0) { 97if (Environment.OSVersion.Platform == System.PlatformID.Win32NT) { 98onXp = Environment.OSVersion.Version.CompareTo(new Version(5, 1, 0, 0)) >= 0; 107if (Environment.OSVersion.Platform == System.PlatformID.Win32NT) { 108onWin2k = Environment.OSVersion.Version.CompareTo(new Version(5, 0, 0, 0)) >= 0;
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (6)
248if (!UseEXDialog || (Environment.OSVersion.Platform != System.PlatformID.Win32NT || 249Environment.OSVersion.Version.Major < 5)) { 358if (!UseEXDialog || (Environment.OSVersion.Platform != System.PlatformID.Win32NT || 359Environment.OSVersion.Version.Major < 5)) { 441if (Environment.OSVersion.Version.Major >= 6) { 539if(Environment.OSVersion.Version.Major >= 6) {
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
5392string filePath = System.Environment.GetEnvironmentVariable("TEMP");
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2220if (Environment.OSVersion.Version.Major > 4) {
winforms\Managed\System\WinForms\SpecialFolderEnumConverter.cs (2)
25if (values[i] is System.Environment.SpecialFolder && 26values[i].Equals(System.Environment.SpecialFolder.Personal)) {
winforms\Managed\System\WinForms\SystemInformation.cs (2)
1112return Environment.UserDomainName; 1125if (Environment.OSVersion.Platform == System.PlatformID.Win32NT) {
winforms\Managed\System\WinForms\Timer.cs (1)
332if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
254OperatingSystem os = Environment.OSVersion;
winforms\Managed\System\WinForms\WebBrowser.cs (2)
652string mshtmlPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "mshtml.dll");
System.Workflow.ComponentModel (6)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
570using (TempFileCollection tempFileCollection = new TempFileCollection(Environment.GetEnvironmentVariable("temp", EnvironmentVariableTarget.User), true))
AuthoringOM\Compiler\XomlCompilerHelpers.cs (3)
450libraryPaths.Add(Environment.CurrentDirectory); 461string libLibraryPaths = Environment.GetEnvironmentVariable("LIB"); 464string[] libLibraryPathsArray = Environment.GetEnvironmentVariable("LIB").Split(new char[] { ',', ';' });
AuthoringOM\Design\Themes.cs (2)
306path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
System.Workflow.Runtime (3)
Hosting\DefaultWorkflowSchedulerService.cs (2)
38return Environment.ProcessorCount == 1 40: (int)(DEFAULT_MAX_SIMULTANEOUS_WORKFLOWS * Environment.ProcessorCount * .8);
WorkflowRuntime.cs (1)
185workflowExecutors = new FanOutOnKeyDictionary<Guid, WorkflowExecutor>((Environment.ProcessorCount * 4) - 1);
System.Xml (4)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\Win8Helpers.cs (1)
69OperatingSystem os = Environment.OSVersion;
System\Xml\Core\SecureStringHasher.cs (1)
36this.hashCodeRandomizer = Environment.TickCount;
System\Xml\Core\XmlWriterSettings.cs (1)
677newLineChars = Environment.NewLine; // "\r\n" on Windows, "\n" on Unix
System\Xml\Serialization\SchemaObjectWriter.cs (1)
164w.Append(Environment.NewLine);
UIAutomationClient (5)
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
1626long dwTicks = (long)Environment.TickCount; 1629while (InMenuMode() && ((long)Environment.TickCount - dwTicks) < MenuTimeOut) 1759if (Environment.OSVersion.Version.Major >= 6)
MS\Internal\Automation\Misc.cs (1)
559&& System.Environment.OSVersion.Version.Major >= 6)
MS\Win32\UnsafeNativeMethods.cs (1)
190if (System.Environment.OSVersion.Version.Major >= 6)
UIAutomationClientsideProviders (30)
MS\Internal\AutomationProxies\Accessible.cs (1)
173if(Environment.OSVersion.Version.Major >= 6)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (1)
23if (Environment.OSVersion.Version.Major >= 5)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (7)
634if (Environment.OSVersion.Version.Major == 5) 646if (Environment.OSVersion.Version.Major == 5) 658if (Environment.OSVersion.Version.Major == 5) 1495if (Environment.OSVersion.Version.Major > 5 || (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor == 1)) 1517else if (Environment.OSVersion.Version.Major == 5)
MS\Internal\AutomationProxies\Misc.cs (8)
121long dwTicks = (long)Environment.TickCount; 124while (InMenuMode() && ((long)Environment.TickCount - dwTicks) < MenuTimeOut) 302bool result = (System.Environment.OSVersion.Version.Major >= 6) ? UnsafeNativeMethods.GetPhysicalCursorPos(ref pt) 1042&& System.Environment.OSVersion.Version.Major >= 6) 1231if (System.Environment.OSVersion.Version.Major >= 6) 1890if (Environment.OSVersion.Version.Major >= 6 && commonControlVersion >= 6) 2004Debug.Assert(System.Environment.OSVersion.Version.Major < 6); 2075Debug.Assert(System.Environment.OSVersion.Version.Major >= 6);
MS\Internal\AutomationProxies\WindowsButton.cs (3)
205if (Environment.OSVersion.Version.Major < 6) 305if (idEvent == InvokePattern.InvokedEvent && Environment.OSVersion.Version.Major >= 6) 575if (Environment.OSVersion.Version.Major >= 6)
MS\Internal\AutomationProxies\WindowsListView.cs (1)
922if (Environment.OSVersion.Version.Major < 6)
MS\Internal\AutomationProxies\WindowsMenu.cs (2)
829if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 1275if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd)))
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
177if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_parent._hwnd))) 602if ((Environment.OSVersion.Version.Major < 6) && (_sbFlag == NativeMethods.SB_HORZ) && (Misc.IsControlRTL(_parent._hwnd)))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
245if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(parent._parent._hwnd))) 426if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(hwnd)))
MS\Internal\AutomationProxies\WindowsTooltip.cs (1)
224if (System.Environment.OSVersion.Version.Major >= 6)
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
828if (_nativeAcc == null && System.Environment.OSVersion.Version.Major >= 6 && Misc.IsWindowInGivenProcess(_hwnd, "explorer"))
MS\Win32\UnsafeNativeMethods.cs (1)
329if (System.Environment.OSVersion.Version.Major >= 6)
WindowsBase (9)
Base\MS\Internal\Utilities.cs (1)
18private static readonly Version _osVersion = Environment.OSVersion.Version;
Base\System\Windows\Threading\Dispatcher.cs (3)
1055!Environment.HasShutdownStarted) 2523PromoteTimers(Environment.TickCount); 2972int delta = dueTimeInTicks - Environment.TickCount;
Base\System\Windows\Threading\DispatcherOperation.cs (1)
566_dispatcher.PromoteTimers(Environment.TickCount);
Base\System\Windows\Threading\DispatcherTimer.cs (2)
166_dueTimeInTicks = Environment.TickCount + (int)_interval.TotalMilliseconds; 278_dueTimeInTicks = Environment.TickCount + (int) _interval.TotalMilliseconds;
Shared\MS\Internal\Invariant.cs (1)
271Environment.FailFast(SR.Get(SRID.InvariantFailure));
Shared\MS\Utility\Trace.cs (1)
137if (Environment.OSVersion.Version.Major < 6 ||
WsatConfig (6)
CommandLine\OptionUsage.cs (4)
386index += Environment.NewLine.Length; 444if ((index + Environment.NewLine.Length) > text.Length) 449for (int i = 0; i < Environment.NewLine.Length; i++) 451if (Environment.NewLine[i] != text[index + i])
Configuration\Utilities.cs (1)
34get { return System.Environment.OSVersion.Version.Major; }
Configuration\WsatConfiguration.cs (1)
920sb.Append(Environment.NewLine);
WsatUI (3)
Configuration\ETWWsatTraceSession.cs (2)
172errLogFileName = Environment.SystemDirectory; 173logFileName = Path.Combine(Environment.SystemDirectory, DafaultLogDirectory);
Configuration\Utilities.cs (1)
34get { return System.Environment.OSVersion.Version.Major; }
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskLeaseLifetimeHelper.cs (1)
49string remotingLeaseLifetimeInMinutesStringValue = Environment.GetEnvironmentVariable(RemotingLeaseLifetimeInMinutesEnvironmentVariableName);