3399 references to SR
System.Private.CoreLib (3399)
Internal\Reflection\Augments\ReflectionAugments.cs (29)
121throw new ArgumentException(SR.Argument_InvalidHandle); 125throw new ArgumentException(SR.Format(SR.Argument_MethodDeclaringTypeGeneric, methodBase, methodBase.DeclaringType.GetGenericTypeDefinition())); 142throw new ArgumentException(SR.Argument_InvalidHandle); 144throw new ArgumentException(SR.Format(SR.Argument_ResolveMethodHandle, 165throw new ArgumentException(SR.Argument_InvalidHandle); 169throw new ArgumentException(SR.Format(SR.Argument_FieldDeclaringTypeGeneric, fieldInfo)); 185throw new ArgumentException(SR.Argument_InvalidHandle); 187throw new ArgumentException(SR.Format(SR.Argument_ResolveFieldHandle, 264throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 267throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(method)); 272throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type)); 278throw new ArgumentException(SR.Arg_DlgtTargMeth); 293throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 297throw new ArgumentException(SR.Arg_MustBeDelegate); 304throw new ArgumentException(SR.Arg_DlgtTargMeth); 316throw new ArgumentException(SR.Arg_UnboundGenParam, nameof(target)); 320throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 323throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(target)); 328throw new ArgumentException(SR.Arg_MustBeDelegate); 334throw new ArgumentException(SR.Arg_DlgtTargMeth); 405throw new ArgumentException(SR.Arg_ArrayZeroError, nameof(flds)); 412throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo); 414throw new ArgumentException(SR.Argument_TypedReferenceInvalidField); 420throw new MissingMemberException(SR.MissingMemberTypeRef); // MissingMemberException is a strange exception to throw, but it is the compatible exception. 424throw new MissingMemberException(SR.MissingMemberNestErr); // MissingMemberException is a strange exception to throw, but it is the compatible exception.
Internal\Reflection\Core\Execution\ExecutionDomain.cs (1)
153throw new ArgumentException(SR.Arg_InvalidHandle);
Internal\Reflection\Core\Execution\MethodBaseInvoker.cs (3)
57throw new TargetException(SR.RFLCT_Targ_StatMethReqTarg); 60throw new TargetException(SR.Format(SR.RFLCT_Targ_ITargMismatch_WithType, declaringTypeHandle.GetRuntimeTypeInfoForRuntimeTypeHandle(), thisObject.GetType()));
Internal\Reflection\Extensions\NonPortable\CustomAttributeInstantiator.cs (4)
100throw new CustomAttributeFormatException(SR.Format(SR.RFLCT_InvalidFieldFail, name)); 117throw new CustomAttributeFormatException(SR.Format(SR.RFLCT_InvalidPropFail, name));
Internal\Reflection\Extensions\NonPortable\CustomAttributeSearcher.cs (1)
45throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass);
Internal\Runtime\Augments\RuntimeAugments.cs (1)
123throw new PlatformNotSupportedException(SR.PlatformNotSupported_NonZeroLowerBound);
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (8)
387throw new EntryPointNotFoundException(SR.Format(SR.Arg_EntryPointNotFoundExceptionParameterized, entryPointName, GetModuleName(pCell->Module))); 473throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 489throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 505throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 580throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 591throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 603throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop);
Internal\Runtime\CompilerHelpers\RuntimeInteropData.cs (20)
24throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, Type.GetTypeFromHandle(structureTypeHandle)), nameof(structureTypeHandle)); 47throw new ArgumentException(SR.Format(SR.Argument_OffsetOfFieldNotFound, Type.GetTypeFromHandle(structureTypeHandle)), nameof(fieldName)); 50throw new NotSupportedException(SR.Format(SR.StructMarshalling_MissingInteropData, Type.GetTypeFromHandle(structureTypeHandle)!)); 61throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, Type.GetTypeFromHandle(structureTypeHandle)), nameof(structureTypeHandle)); 80throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, structureType)); 84throw new NotSupportedException(SR.Format(SR.StructMarshalling_MissingInteropData, structureType)); 109throw new NotSupportedException(SR.Format(SR.DelegateMarshalling_MissingInteropData, Type.GetTypeFromHandle(delegateTypeHandle))); 118throw new NotSupportedException(SR.Format(SR.DelegateMarshalling_MissingInteropData, Type.GetTypeFromHandle(delegateTypeHandle))); 213throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, Type.GetTypeFromHandle(structTypeHandle))); 226throw new NotSupportedException(SR.Format(SR.StructMarshalling_MissingInteropData, Type.GetTypeFromHandle(structTypeHandle)));
Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (5)
18throw new NotSupportedException(SR.NotSupported_BodyRemoved); 25throw new NotSupportedException(SR.NotSupported_FeatureBodyRemoved); 32throw new NotSupportedException(SR.NotSupported_InstanceBodyRemoved); 39throw new TypeLoadException(SR.Arg_UnavailableTypeLoadException); 116throw new NotSupportedException(SR.NotSupported_InlineArrayEqualsGetHashCode);
Internal\Runtime\TypeLoaderExceptionHelper.cs (30)
29return new TypeLoadException(SR.Format(GetFormatString(id), typeName, moduleName), typeName); 34return new TypeLoadException(SR.Format(GetFormatString(id), typeName, moduleName, messageArg), typeName); 39return new MissingFieldException(SR.Format(GetFormatString(id), fieldName)); 44throw new MissingMethodException(SR.Format(GetFormatString(id), methodName)); 49throw new System.IO.FileNotFoundException(SR.Format(GetFormatString(id), fileName), fileName); 59throw new InvalidProgramException(SR.Format(GetFormatString(id), methodName)); 78return SR.ClassLoad_General; 80return SR.ClassLoad_ExplicitGeneric; 82return SR.ClassLoad_BadFormat; 84return SR.ClassLoad_ValueClassTooLarge; 86return SR.ClassLoad_ExplicitLayout; 88return SR.ClassLoad_RankTooLarge; 90return SR.ClassLoad_InlineArrayFieldCount; 92return SR.ClassLoad_InlineArrayLength; 94return SR.ClassLoad_InlineArrayExplicit; 96return SR.ClassLoad_InlineArrayExplicitSize; 98return SR.InvalidProgram_Default; 100return SR.InvalidProgram_Specific; 102return SR.InvalidProgram_Vararg; 104return SR.InvalidProgram_CallVirtFinalize; 106return SR.InvalidProgram_NonStaticMethod; 108return SR.InvalidProgram_GenericMethod; 110return SR.InvalidProgram_NonBlittableTypes; 112return SR.InvalidProgram_MultipleCallConv; 114return SR.EE_MissingField; 116return SR.EE_MissingMethod; 118return SR.IO_FileNotFound_FileName; 120return SR.Arg_BadImageFormatException; 122return SR.Arg_MarshalDirectiveException; 124return SR.Arg_AmbiguousMatchException_UnsafeAccessor;
src\runtime\src\coreclr\nativeaot\Common\src\System\Collections\Generic\LowLevelDictionary.cs (2)
89throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key));
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (18)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound); 134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 138new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName); 145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner); 150new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 151new PathTooLongException(SR.IO_PathTooLong); 155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (2)
64throw new ArgumentException(SR.Format_StringZeroLength); 84throw new FileLoadException(SR.InvalidAssemblyName, name.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
88throw new NotSupportedException(SR.Arg_TypeNotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
343throw new InvalidOperationException(SR.InvalidOperation_FunctionMissingUnmanagedCallersOnly);
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (3)
509throw new IOException(SR.Format(errorInfo.Error == Interop.Error.EFBIG 510? SR.IO_FileTooLarge_Path_AllocationSize 511: SR.IO_DiskFull_Path_AllocationSize,
src\runtime\src\libraries\System.Private.CoreLib\src\System\AccessViolationException.cs (3)
18: base(SR.Arg_AccessViolationException) 24: base(message ?? SR.Arg_AccessViolationException) 30: base(message ?? SR.Arg_AccessViolationException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (10)
33: this(SR.AggregateException_ctor_DefaultMessage) 43: base(message ?? SR.AggregateException_ctor_DefaultMessage) 57: base(message ?? SR.AggregateException_ctor_DefaultMessage, innerException) 74this(SR.AggregateException_ctor_DefaultMessage, innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))) 88this(SR.AggregateException_ctor_DefaultMessage, innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))) 123base(message ?? SR.AggregateException_ctor_DefaultMessage, innerExceptions.Length > 0 ? innerExceptions[0] : null) 133throw new ArgumentException(SR.AggregateException_ctor_InnerExceptionNull); 150this(SR.AggregateException_ctor_DefaultMessage, innerExceptionInfos) 194throw new SerializationException(SR.AggregateException_DeserializationFailure); 377text.AppendFormat(CultureInfo.InvariantCulture, SR.AggregateException_InnerException, i);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (10)
109throw new ArgumentException(SR.Argument_EmptyString, nameof(assemblyName)); 120throw new PlatformNotSupportedException(SR.PlatformNotSupported_AppDomains); 140throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); // This api is only meaningful for very specific partial trust/CAS scenarios 146throw new MissingMethodException(SR.Arg_EntryPointNotFoundException); 181SR.AppDomain_Name + FriendlyName + Environment.NewLineConst + SR.AppDomain_NoContextPolicies; 188throw new CannotUnloadAppDomainException(SR.Arg_PlatformNotSupported); 210throw new ArgumentException(SR.Arg_MustBeTrue); 291throw new SystemException(SR.AppDomain_Policy_PrincipalTwice); 423throw new PlatformNotSupportedException(SR.PlatformNotSupported_Principal);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppDomainUnloadedException.cs (3)
15: base(SR.Arg_AppDomainUnloadedException) 21: base(message ?? SR.Arg_AppDomainUnloadedException) 27: base(message ?? SR.Arg_AppDomainUnloadedException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationException.cs (1)
26: base(SR.Arg_ApplicationException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentException.cs (6)
23: base(SR.Arg_ArgumentException) 82s += " " + SR.Format(SR.Arg_ParamName_Name, _paramName); 93_message = SR.Arg_ArgumentException; 129throw new ArgumentException(SR.Argument_EmptyString, paramName); 136throw new ArgumentException(SR.Argument_EmptyOrWhiteSpaceString, paramName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (4)
21: base(SR.ArgumentNull_Generic) 28: base(SR.ArgumentNull_Generic, paramName) 34: base(message ?? SR.ArgumentNull_Generic, innerException) 40: base(message ?? SR.ArgumentNull_Generic, paramName)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (25)
25: base(SR.Arg_ArgumentOutOfRangeException) 31: base(SR.Arg_ArgumentOutOfRangeException, paramName) 37: base(message ?? SR.Arg_ArgumentOutOfRangeException, paramName) 43: base(message ?? SR.Arg_ArgumentOutOfRangeException, innerException) 49: base(message ?? SR.Arg_ArgumentOutOfRangeException, paramName) 78string valueMessage = SR.Format(SR.ArgumentOutOfRange_ActualValue, _actualValue); 92throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonZero, paramName, value)); 96throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonNegative, paramName, value)); 100throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonNegativeNonZero, paramName, value)); 104throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeLessOrEqual, paramName, value, other)); 108throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeLess, paramName, value, other)); 112throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeGreaterOrEqual, paramName, value, other)); 116throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeGreater, paramName, value, other)); 120throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNotEqual, paramName, (object?)value ?? "null", (object?)other ?? "null")); 124throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeEqual, paramName, (object?)value ?? "null", (object?)other ?? "null"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArithmeticException.cs (3)
21: base(SR.Arg_ArithmeticException) 31: base(message ?? SR.Arg_ArithmeticException) 37: base(message ?? SR.Arg_ArithmeticException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (9)
443throw new RankException(SR.Rank_MustMatch); 451throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 457throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 483throw new ArrayTypeMismatchException(SR.ArrayTypeMismatch_ConstrainedCopy); 494throw new ArrayTypeMismatchException(SR.ArrayTypeMismatch_CantAssignType); 563throw new InvalidCastException(SR.InvalidCast_DownCastArrayElement); 776throw new IndexOutOfRangeException(SR.IndexOutOfRange_ArrayRankIndex); 789throw new IndexOutOfRangeException(SR.IndexOutOfRange_ArrayRankIndex); 805throw new IndexOutOfRangeException(SR.IndexOutOfRange_ArrayRankIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArrayTypeMismatchException.cs (3)
21: base(SR.Arg_ArrayTypeMismatchException) 31: base(message ?? SR.Arg_ArrayTypeMismatchException) 37: base(message ?? SR.Arg_ArrayTypeMismatchException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (6)
23: base(SR.Arg_BadImageFormatException) 88_message = SR.Arg_BadImageFormatException; 101s += Environment.NewLineConst + SR.Format(SR.IO_FileName_Name, _fileName); 104s += Environment.NewLineConst + SR.Format(SR.IO_FileLoad_RequestedBy, _requestingAssemblyChain);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (5)
151throw new ArgumentException(SR.Arg_MustBeBoolean); 333throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Boolean", "Char")); 393throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Boolean", "DateTime"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffer.cs (4)
27throw new ArgumentException(SR.Arg_MustBePrimArray, nameof(src)); 38throw new ArgumentException(SR.Arg_MustBePrimArray, nameof(dst)); 52throw new ArgumentException(SR.Argument_InvalidOffLen); 63throw new ArgumentException(SR.Arg_MustBePrimArray, nameof(array));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
408throw new ArgumentException(SR.Arg_BufferTooSmall, "destination");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (1)
239throw new ArgumentException(SR.ArgumentException_BufferNotFromPool, nameof(array));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
161throw new ArgumentException(SR.ArgumentException_BufferNotFromPool, nameof(array));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\StandardFormat.cs (4)
116return throws ? throw new FormatException(SR.Format(SR.Argument_CannotParsePrecision, MaxPrecision)) : false; 121return throws ? throw new FormatException(SR.Format(SR.Argument_PrecisionTooLarge, MaxPrecision)) : false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Decoder.cs (8)
88throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 92throw new FormatException(SR.Format_BadBase64Char); 120return status == OperationStatus.Done ? result : throw new FormatException(SR.Format_BadBase64Char); 138throw new FormatException(SR.Format_BadBase64Char); 198throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 202throw new FormatException(SR.Format_BadBase64Char); 220throw new FormatException(SR.Format_BadBase64Char); 252return status == OperationStatus.Done ? result : throw new FormatException(SR.Format_BadBase64Char);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Encoder.cs (2)
84throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 181throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (9)
92throw new FormatException(SR.Format_BadBase64Char); 126throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 130throw new FormatException(SR.Format_BadBase64Char); 148throw new FormatException(SR.Format_BadBase64Char); 180return status == OperationStatus.Done ? ret : throw new FormatException(SR.Format_BadBase64Char); 225throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 229throw new FormatException(SR.Format_BadBase64Char); 247throw new FormatException(SR.Format_BadBase64Char); 277return status == OperationStatus.Done ? ret : throw new FormatException(SR.Format_BadBase64Char);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlEncoder.cs (2)
78throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 129throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.cs (1)
338throw new NotSupportedException(SR.Argument_GWithPrecisionNotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (4)
63throw new ArgumentException(SR.Arg_MustBeByte); 243throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Byte", "DateTime")); 1227static string IBinaryIntegerParseAndFormatInfo<byte>.OverflowMessage => SR.Overflow_Byte;
src\runtime\src\libraries\System.Private.CoreLib\src\System\CannotUnloadAppDomainException.cs (3)
15: base(SR.Arg_CannotUnloadAppDomainException) 21: base(message ?? SR.Arg_CannotUnloadAppDomainException) 27: base(message ?? SR.Arg_CannotUnloadAppDomainException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (18)
165throw new ArgumentException(SR.Arg_MustBeChar); 586throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Boolean")); 636throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Single")); 641throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Double")); 646throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Decimal")); 651throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "DateTime")); 1106throw new ArgumentOutOfRangeException(nameof(utf32), SR.ArgumentOutOfRange_InvalidUTF32); 1148message: SR.ArgumentOutOfRange_InvalidHighSurrogate); 1154message: SR.ArgumentOutOfRange_InvalidLowSurrogate); 1200throw new ArgumentException(SR.Format(invalidIsLow ? SR.Argument_InvalidLowSurrogate : SR.Argument_InvalidHighSurrogate, index), nameof(s)); 2096static string IBinaryIntegerParseAndFormatInfo<char>.OverflowMessage => SR.Overflow_Char;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (111)
39if (capacity < 0) throw new ArgumentOutOfRangeException(nameof(capacity), SR.Format(SR.ArgumentOutOfRange_MustBeNonNegNum, nameof(capacity))); 78throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 123if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 128if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 195throw new ArgumentException(SR.Argument_InvalidOffLen); 252throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 265throw new ArgumentException(SR.Argument_InvalidOffLen); 267throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 330throw new ArgumentException(SR.Argument_InvalidOffLen); 359throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 375throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 376if (count < 0 || startIndex > _size - count) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 387if (index < 0 || index > _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 408if (index < 0 || index > _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 453throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 478throw new ArgumentOutOfRangeException(startIndex >= _size ? nameof(startIndex) : nameof(count), SR.ArgumentOutOfRange_BiggerThanCollection); 516if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 534throw new ArgumentException(SR.Argument_InvalidOffLen); 580throw new ArgumentException(SR.Argument_InvalidOffLen); 594if (index < 0 || index > _size - count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 608throw new ArgumentException(SR.Argument_InvalidOffLen); 639throw new ArgumentException(SR.Argument_InvalidOffLen); 722if (value < Count) throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 765throw new ArgumentException(SR.Argument_InvalidOffLen); 793throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 825throw new ArgumentException(SR.Argument_InvalidOffLen); 827throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 830throw new ArgumentException(SR.Argument_InvalidOffLen); 847throw new ArgumentException(SR.Argument_InvalidOffLen); 864if (startIndex < 0 || startIndex > Count) throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 865if (count < 0 || startIndex > Count - count) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 894if (index < 0 || index > Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 932if (startIndex < 0 || startIndex >= _list.Count) throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 933if (count < 0 || count > startIndex + 1) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 971throw new ArgumentException(SR.Argument_InvalidOffLen); 989throw new ArgumentException(SR.Argument_InvalidOffLen); 1008throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1027throw new ArgumentException(SR.Argument_InvalidOffLen); 1036throw new ArgumentException(SR.Argument_InvalidOffLen); 1124throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1126throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 1614throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1619throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1644throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1649throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1654throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1690throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1695throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1706set => throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1711throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1763throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1768throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1788throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1793throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1798throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1812throw new ArgumentException(SR.Argument_InvalidOffLen); 1842throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1866set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1873throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1878throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1903throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1908throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1913throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1937set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1944throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1949throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1961set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1966throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2018throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2023throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2043throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2048throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2053throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2058throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2066throw new ArgumentException(SR.Argument_InvalidOffLen); 2073throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2078throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2094throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2125if (_version != _list._version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 2144throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 2147throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 2155if (_version != _list._version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 2182throw new InvalidOperationException(SR.InvalidOperation_UnderlyingArrayListChanged); 2218throw new ArgumentException(SR.Argument_InvalidOffLen); 2233if (value < Count) throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 2281throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 2284throw new ArgumentException(SR.Argument_InvalidOffLen); 2295throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 2299throw new ArgumentException(SR.Argument_InvalidOffLen); 2301throw new ArgumentException(SR.Argument_InvalidOffLen); 2332throw new ArgumentException(SR.Argument_InvalidOffLen); 2343throw new ArgumentException(SR.Argument_InvalidOffLen); 2364throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2375throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2378throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 2388if (index < 0 || index > _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2398if (index < 0 || index > _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2431throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 2443if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2456throw new ArgumentException(SR.Argument_InvalidOffLen); 2474throw new ArgumentException(SR.Argument_InvalidOffLen); 2484if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2497throw new ArgumentException(SR.Argument_InvalidOffLen); 2509if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2515if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2544throw new NotSupportedException(SR.NotSupported_RangeCollection); 2573throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 2615throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 2619throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 2631throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (16)
89throw new SerializationException(SR.Serialization_InvalidData); 172throw new ArgumentException(SR.Format(SR.Argument_ArrayTooLarge, BitsPerByte), nameof(bytes)); 333throw new ArgumentException(SR.Format(SR.Argument_ArrayTooLarge, BitsPerInt32), nameof(values)); 513throw new ArgumentException(SR.Arg_ArrayLengthsDiffer); 763throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 772throw new ArgumentException(SR.Argument_InvalidOffLen); 800throw new ArgumentException(SR.Argument_InvalidOffLen); 819throw new ArgumentException(SR.Argument_InvalidOffLen); 921throw new ArgumentException(SR.Arg_BitArrayTypeUnsupported, nameof(array)); 1049throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess); 1074throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 1105throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 1115return new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1120return new InvalidOperationException(SR.InvalidOperation_EnumEnded);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (1)
67throw new ArgumentException(SR.Argument_ImplementIComparable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
44throw new ArgumentException(SR.Argument_ImplementIComparable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (11)
169throw new ArgumentOutOfRangeException(nameof(concurrencyLevel), SR.ConcurrentDictionary_ConcurrencyLevelMustBePositiveOrNegativeOne); 345throw new ArgumentException(SR.ConcurrentDictionary_SourceContainsDuplicateKeys); 765throw new ArgumentException(SR.ConcurrentDictionary_ArrayNotLargeEnough); 1090throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString())); 1549throw new ArgumentException(SR.ConcurrentDictionary_KeyAlreadyExisted); 1685throw new ArgumentException(SR.ConcurrentDictionary_TypeOfKeyIncorrect); 1818throw new ArgumentException(SR.ConcurrentDictionary_TypeOfKeyIncorrect); 1878throw new ArgumentException(SR.ConcurrentDictionary_ArrayNotLargeEnough); 1905throw new ArgumentException(SR.ConcurrentDictionary_ArrayIncorrectType, nameof(array)); 1928object ICollection.SyncRoot => throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\KeyNotFoundException.cs (3)
15: base(SR.Arg_KeyNotFound) 21: base(message ?? SR.Arg_KeyNotFound) 27: base(message ?? SR.Arg_KeyNotFound, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
350throw new InvalidOperationException(SR.InvalidOperation_EmptyQueue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (27)
170throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 185throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 205throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 220throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 265throw new ArgumentOutOfRangeException(nameof(loadFactor), SR.ArgumentOutOfRange_HashtableLoadFactor); 272throw new ArgumentException(SR.Arg_HTCapacityOverflow, nameof(capacity)); 577throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 580throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 891throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, _buckets[bucketNumber].key, key)); 935throw new InvalidOperationException(SR.InvalidOperation_HashInsertFailed); 1077throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 1097throw new SerializationException(SR.Serialization_InvalidOnDeser); 1154throw new SerializationException(SR.Serialization_MissingKeys); 1158throw new SerializationException(SR.Serialization_MissingValues); 1162throw new SerializationException(SR.Serialization_KeyValueDifferentSizes); 1168throw new SerializationException(SR.Serialization_NullKey); 1194throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1197throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1229throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1232throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1424throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1432throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 1454throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 1464throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 1480throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 1488throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (14)
107throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, node.key, key)); 153throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 158throw new ArgumentException(SR.ArgumentOutOfRange_IndexMustBeLessOrEqual, nameof(index)); 230throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 242throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 254throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 264throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 285throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 308throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 311throw new ArgumentException(SR.ArgumentOutOfRange_IndexMustBeLessOrEqual, nameof(index)); 353throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 363throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 384throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (5)
16throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 21throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 36throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 58throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 70throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (18)
57throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 62throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 68set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 87throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 92throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 97throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 119throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 124throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 149throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 172set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 194object[] objects = array as object[] ?? throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 204throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 260throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 265throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 284throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 316throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 321throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 337throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
245throw new ArgumentException(SR.RuntimeInstanceNotAllowed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Context.cs (1)
19public ContextMarshalException() : this(SR.Arg_ContextMarshalException, null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (29)
137throw new InvalidCastException(SR.InvalidCast_IConvertible); 161TypeCode.DBNull => throw new InvalidCastException(SR.InvalidCast_DBNull), 162TypeCode.Empty => throw new InvalidCastException(SR.InvalidCast_Empty), 163_ => throw new ArgumentException(SR.Arg_UnknownTypeCode), 214throw new InvalidCastException(SR.InvalidCast_DBNull); 216throw new InvalidCastException(SR.InvalidCast_Empty); 218throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, value.GetType().FullName, targetType.FullName)); 236throw new InvalidCastException(SR.InvalidCast_CannotCastNullToValueType); 247throw new InvalidCastException(SR.InvalidCast_IConvertible); 287private static void ThrowCharOverflowException() { throw new OverflowException(SR.Overflow_Char); } 290private static void ThrowByteOverflowException() { throw new OverflowException(SR.Overflow_Byte); } 293private static void ThrowSByteOverflowException() { throw new OverflowException(SR.Overflow_SByte); } 296private static void ThrowInt16OverflowException() { throw new OverflowException(SR.Overflow_Int16); } 299private static void ThrowUInt16OverflowException() { throw new OverflowException(SR.Overflow_UInt16); } 302private static void ThrowInt32OverflowException() { throw new OverflowException(SR.Overflow_Int32); } 305private static void ThrowUInt32OverflowException() { throw new OverflowException(SR.Overflow_UInt32); } 308private static void ThrowInt64OverflowException() { throw new OverflowException(SR.Overflow_Int64); } 311private static void ThrowUInt64OverflowException() { throw new OverflowException(SR.Overflow_UInt64); } 495throw new FormatException(SR.Format_NeedSingleChar); 1075throw new OverflowException(SR.Overflow_Int32); 1196throw new OverflowException(SR.Overflow_UInt32); 2295private static void ThrowInvalidBase() => throw new ArgumentException(SR.Arg_InvalidBase); 2346throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)options), nameof(options)); 2384throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)options), nameof(options)); 2420throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)options), nameof(options));
src\runtime\src\libraries\System.Private.CoreLib\src\System\CurrentSystemTimeZone.cs (2)
118throw new ArgumentOutOfRangeException(nameof(year), SR.Format(SR.ArgumentOutOfRange_Range, 1, 9999));
src\runtime\src\libraries\System.Private.CoreLib\src\System\DataMisalignedException.cs (3)
18: base(SR.Arg_DataMisalignedException) 24: base(message ?? SR.Arg_DataMisalignedException) 30: base(message ?? SR.Arg_DataMisalignedException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (22)
131static void ThrowOutOfRange() => throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_AddValue); 251throw new ArgumentException(SR.Arg_MustBeDateOnly); 291throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 319throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 354throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 359throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 367throw new FormatException(SR.Argument_BadFormatSpecifier); 469throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 521throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 529throw new FormatException(SR.Argument_BadFormatSpecifier); 597throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 602throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 610throw new FormatException(SR.Argument_BadFormatSpecifier); 755case ParseFailureKind.Argument_InvalidDateStyles: throw new ArgumentException(SR.Argument_InvalidDateStyles, "style"); 756case ParseFailureKind.Argument_BadFormatSpecifier: throw new FormatException(SR.Argument_BadFormatSpecifier); 757case ParseFailureKind.Format_BadDateOnly: throw new FormatException(SR.Format(SR.Format_BadDateOnly, s.ToString())); 760throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, s.ToString(), nameof(DateOnly))); 828_ => throw new FormatException(SR.Format_InvalidString), 882throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, format.ToString(), nameof(DateOnly)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (22)
205private static void ThrowTicksOutOfRange() => throw new ArgumentOutOfRangeException("ticks", SR.ArgumentOutOfRange_DateTimeBadTicks); 206private static void ThrowInvalidKind() => throw new ArgumentException(SR.Argument_InvalidDateTimeKind, "kind"); 207internal static void ThrowMillisecondOutOfRange() => throw new ArgumentOutOfRangeException("millisecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, TimeSpan.MillisecondsPerSecond - 1)); 208internal static void ThrowMicrosecondOutOfRange() => throw new ArgumentOutOfRangeException("microsecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, TimeSpan.MicrosecondsPerMillisecond - 1)); 209private static void ThrowDateArithmetic(int param) => throw new ArgumentOutOfRangeException(param switch { 0 => "value", 1 => "t", _ => "months" }, SR.ArgumentOutOfRange_DateArithmetic); 210private static void ThrowAddOutOfRange() => throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_AddValue); 844throw new SerializationException(SR.Serialization_MissingDateTimeData); 849throw new SerializationException(SR.Serialization_DateTimeTicksOutOfRange); 963if (months < -120000 || months > 120000) throw new ArgumentOutOfRangeException(nameof(months), SR.ArgumentOutOfRange_DateTimeBadMonths); 1025throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_DateTimeBadYears); 1069throw new ArgumentException(SR.Arg_MustBeDateTime); 1164throw new ArgumentException(SR.Arg_OleAutDateInvalid); 1178if (millis < 0 || millis > MaxMillis) throw new ArgumentException(SR.Arg_OleAutDateScale); 1244throw new ArgumentException(SR.Argument_DateTimeBadBinaryData, nameof(dateData)); 1251throw new ArgumentException(SR.Argument_DateTimeBadBinaryData, nameof(dateData)); 1269throw new ArgumentOutOfRangeException(nameof(fileTime), SR.ArgumentOutOfRange_FileTimeInvalid); 1661throw new OverflowException(SR.Arg_OleAutDateInvalid); 1699throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_FileTimeInvalid); 1964private static InvalidCastException InvalidCast(string to) => new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, nameof(DateTime), to));
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (11)
114throw new ArgumentException(SR.Argument_OffsetLocalMismatch, nameof(offset)); 121throw new ArgumentException(SR.Argument_OffsetUtcMismatch, nameof(offset)); 551throw new ArgumentException(SR.Arg_MustBeDateTimeOffset); 622throw new SerializationException(SR.Serialization_InvalidData, e); 784throw new ArgumentException(SR.Arg_ArgumentOutOfRangeException); 922static void ThrowOffsetPrecision() => throw new ArgumentException(SR.Argument_OffsetPrecision, nameof(offset)); 927static void ThrowOffsetOutOfRange() => throw new ArgumentOutOfRangeException(nameof(offset), SR.Argument_OffsetOutOfRange); 945static void ThrowOutOfRange() => throw new ArgumentOutOfRangeException(nameof(offset), SR.Argument_UTCOutOfRange); 967string message = (styles & DateTimeFormatInfo.InvalidDateTimeStyles) != 0 ? SR.Argument_InvalidDateTimeStyles 968: (styles & localUniversal) == localUniversal ? SR.Argument_ConflictingDateTimeStyles 969: SR.Argument_DateTimeOffsetInvalidDateTimeStyles;
src\runtime\src\libraries\System.Private.CoreLib\src\System\DBNull.cs (14)
44throw new InvalidCastException(SR.InvalidCast_FromDBNull); 49throw new InvalidCastException(SR.InvalidCast_FromDBNull); 54throw new InvalidCastException(SR.InvalidCast_FromDBNull); 59throw new InvalidCastException(SR.InvalidCast_FromDBNull); 64throw new InvalidCastException(SR.InvalidCast_FromDBNull); 69throw new InvalidCastException(SR.InvalidCast_FromDBNull); 74throw new InvalidCastException(SR.InvalidCast_FromDBNull); 79throw new InvalidCastException(SR.InvalidCast_FromDBNull); 84throw new InvalidCastException(SR.InvalidCast_FromDBNull); 89throw new InvalidCastException(SR.InvalidCast_FromDBNull); 94throw new InvalidCastException(SR.InvalidCast_FromDBNull); 99throw new InvalidCastException(SR.InvalidCast_FromDBNull); 104throw new InvalidCastException(SR.InvalidCast_FromDBNull); 109throw new InvalidCastException(SR.InvalidCast_FromDBNull);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (16)
304throw new ArgumentException(SR.Arg_DecBitCtor); 324throw new SerializationException(SR.Overflow_Decimal); 337throw new ArgumentException(SR.Arg_DecBitCtor); 424throw new ArgumentException(SR.Arg_MustBeDecimal); 681throw new ArgumentOutOfRangeException(nameof(decimals), SR.ArgumentOutOfRange_DecimalRound); 683throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, nameof(MidpointRounding)), nameof(mode)); 788throw new OverflowException(SR.Overflow_Int32); 811throw new OverflowException(SR.Overflow_Int64); 849throw new OverflowException(SR.Overflow_UInt32); 866throw new OverflowException(SR.Overflow_UInt64); 935throw new OverflowException(SR.Overflow_Char, e); 1036throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Decimal", "Char")); 1096throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Decimal", "DateTime"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
1321throw new OverflowException(SR.Overflow_Currency);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (7)
38throw new ArgumentException(SR.Arg_EmptyArray, nameof(match)); 298throw new MissingMethodException(SR.MissingMember); 511throw new MissingFieldException(SR.MissingField); 552throw new ArgumentException(SR.Arg_MustBeType, nameof(types)); 558throw new ArgumentException(SR.Arg_EmptyArray, nameof(match)); 648throw new ArgumentException(SR.Arg_EmptyArray, nameof(match)); 754throw new NotSupportedException(SR.NotSupported_ChangeType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Delegate.cs (2)
156public virtual void GetObjectData(SerializationInfo info, StreamingContext context) => throw new SerializationException(SR.Serialization_DelegatesNotSupported); 169throw new ArgumentException(SR.Arg_DlgtTypeMis);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (6)
519throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive); 566throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive); 638ContractHelper.TriggerFailure(kind, SR.Format(SR.MustUseCCRewrite, contractKind, simpleName), null, null, null); 654throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, failureKind), nameof(failureKind));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (3)
36WriteLine(SR.DebugAssertBanner + Environment.NewLineConst 37+ SR.DebugAssertShortMessage + Environment.NewLineConst 39+ SR.DebugAssertLongMessage + Environment.NewLineConst
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (4)
63throw new ArgumentOutOfRangeException(nameof(id), SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue)); 78throw new ArgumentOutOfRangeException(nameof(task), SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (1)
546throw new InvalidOperationException(SR.EventSource_ListenerCreatedInsideCallback);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (48)
375throw new ArgumentException(SR.Argument_InvalidTypeName, nameof(eventSourceType)); 496throw new ArgumentException(SR.EventSource_InvalidCommand, nameof(command)); 544return SR.Format(SR.EventSource_ToString, Name, Guid); 1660throw new ArgumentException(SR.EventSource_TraitEven, nameof(traits)); 1665throw new ArgumentException(SR.EventSource_NeedGuid); 1670throw new ArgumentException(SR.EventSource_NeedName); 2009throw new ArgumentException(SR.EventSource_NoRelatedActivityId); 2126ReportOutOfBandMessage(SR.Format(SR.EventSource_EventParametersMismatch, eventId, args.Length, infos.Length)); 2142ReportOutOfBandMessage(SR.Format(SR.EventSource_VarArgsParameterMismatch, eventId, infos[i].Name)); 2155ReportOutOfBandMessage(SR.Format(SR.EventSource_EventParametersMismatch, eventCallbackArgs.EventId, eventDataCount, metadata.Parameters.Length)); 2438ReportOutOfBandMessage(errorPrefix + ": " + SR.EventSource_EventTooBig); 2439if (ThrowOnEventWriteErrors) throw new EventSourceException(SR.EventSource_EventTooBig, innerEx); 2442ReportOutOfBandMessage(errorPrefix + ": " + SR.EventSource_NoFreeBuffers); 2443if (ThrowOnEventWriteErrors) throw new EventSourceException(SR.EventSource_NoFreeBuffers, innerEx); 2446ReportOutOfBandMessage(errorPrefix + ": " + SR.EventSource_NullInput); 2447if (ThrowOnEventWriteErrors) throw new EventSourceException(SR.EventSource_NullInput, innerEx); 2450ReportOutOfBandMessage(errorPrefix + ": " + SR.EventSource_TooManyArgs); 2451if (ThrowOnEventWriteErrors) throw new EventSourceException(SR.EventSource_TooManyArgs, innerEx); 2692throw new ArgumentException(SR.EventSource_ListenerNotFound); 2905throw new ArgumentException(SR.Format(SR.EventSource_EventSourceGuidInUse, m_guid)); 3099manifest.ManifestError(SR.EventSource_TypeMustDeriveFromEventSource); 3103manifest.ManifestError(SR.EventSource_TypeMustBeSealedOrAbstract); 3115manifest.ManifestError(SR.Format(SR.EventSource_AbstractMustNotDeclareKTOC, nestedType.Name)); 3157manifest.ManifestError(SR.Format(SR.EventSource_AbstractMustNotDeclareEventMethods, method.Name, eventAttribute.EventId)); 3186manifest.ManifestError(SR.EventSource_NeedPositiveId, true); 3191manifest.ManifestError(SR.Format(SR.EventSource_EventMustNotBeExplicitImplementation, method.Name, eventAttribute.EventId)); 3249throw new ArgumentException(SR.EventSource_StopsFollowStarts); 3512manifest.ManifestError(SR.Format(SR.EventSource_EnumKindMismatch, staticField.FieldType.Name, providerEnumKind)); 3611manifest.ManifestError(SR.Format(SR.EventSource_MismatchIdToWriteEvent, evtName, evtId, eventArg), true); 3616manifest.ManifestError(SR.Format(SR.EventSource_EventIdReused, evtName, evtId), true); 3630manifest.ManifestError(SR.Format(SR.EventSource_TaskOpcodePairReused, 3655manifest.ManifestError(SR.Format(SR.EventSource_EventMustHaveTaskIfNonDefaultOpcode, evtName, evtId)); 3672manifest.ManifestError(SR.Format(SR.EventSource_EventNameReused, evtName), true); 3853throw new ArgumentException(SR.EventSource_InvalidEventFormat, nameof(settings));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSourceException.cs (4)
20base(SR.EventSource_ListenerWriteFailure) { } 25public EventSourceException(string? message) : base(message ?? SR.EventSource_ListenerWriteFailure) { } 31public EventSourceException(string? message, Exception? innerException) : base(message ?? SR.EventSource_ListenerWriteFailure, innerException) { } 41base(SR.EventSource_ListenerWriteFailure, innerException) { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (35)
72ManifestError(SR.Format(SR.EventSource_IllegalOpcodeValue, name, value)); 77ManifestError(SR.Format(SR.EventSource_OpcodeCollision, name, prevName, value)); 90ManifestError(SR.Format(SR.EventSource_IllegalTaskValue, name, value)); 95ManifestError(SR.Format(SR.EventSource_TaskCollision, name, prevName, value)); 107ManifestError(SR.Format(SR.EventSource_KeywordNeedPowerOfTwo, $"0x{value:x}", name), true); 113ManifestError(SR.Format(SR.EventSource_IllegalKeywordsValue, name, $"0x{value:x}")); 118ManifestError(SR.Format(SR.EventSource_KeywordCollision, name, prevName, $"0x{value:x}")); 133ManifestError(SR.Format(SR.EventSource_EventChannelOutOfRange, name, value)); 139ManifestError(SR.Format(SR.EventSource_ChannelTypeDoesNotMatchEventChannelValue, 317ManifestError(SR.EventSource_MaxChannelExceeded); 584ManifestError(SR.Format(SR.EventSource_DuplicateStringKey, key), true); 636ManifestError(SR.Format(SR.EventSource_UndefinedChannel, channel, eventName)); 648ManifestError(SR.Format(SR.EventSource_UndefinedChannel, channel, eventName)); 656ManifestError(SR.Format(SR.EventSource_EventWithAdminChannelMustHaveMessage, eventName, info.Name)); 700ManifestError(SR.Format(SR.EventSource_UndefinedOpcode, opcode, eventName), true); 728ManifestError(SR.Format(SR.EventSource_UndefinedKeyword, "0x" + bit.ToString("x", CultureInfo.CurrentCulture), eventName), true); 798ManifestError(SR.Format(SR.EventSource_UnsupportedEventTypeInManifest, type.Name), true); 872ManifestError(SR.Format(SR.EventSource_UnsupportedMessageProperty, evtName, eventMessage));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (4)
83throw new IndexOutOfRangeException(SR.EventSource_AddScalarOutOfRange); 315throw new IndexOutOfRangeException(SR.EventSource_PinArrayOutOfRange); 321throw new IndexOutOfRangeException(SR.EventSource_DataDescriptorsOutOfRange); 339throw new IndexOutOfRangeException(SR.EventSource_DataDescriptorsOutOfRange);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (2)
44throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\FieldMetadata.cs (4)
123throw new NotSupportedException(SR.EventSource_NotSupportedArrayOfNil); 127throw new NotSupportedException(SR.EventSource_NotSupportedArrayOfBinary); 132throw new NotSupportedException(SR.EventSource_NotSupportedArrayOfNullTerminatedString); 153throw new NotSupportedException(SR.EventSource_TooManyFields);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (3)
399throw new NotSupportedException(SR.EventSource_RecursiveTypeDefinition); 582throw new ArgumentException(SR.Format(SR.EventSource_NonCompliantTypeError, dataType.Name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (7)
759throw new ArgumentException(SR.Format(SR.EventSource_UnknownEtwTrait, etwTrait.ToString()), "traits"); 815throw new ArgumentException(SR.EventSource_EvenHexDigits, "traits"); 828throw new ArgumentException(SR.Format(SR.EventSource_IllegalValue, value), "traits"); 852throw new ArgumentException(SR.Format(SR.EventSource_BadHexDigit, c), "traits");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs (4)
212throw new NotSupportedException(SR.EventSource_NotSupportedNestedArraysEnums); 224throw new NotSupportedException(SR.EventSource_NotSupportedNestedArraysEnums); 235throw new InvalidOperationException(SR.EventSource_IncorrentlyAuthoredTypeInfo); 254throw new NotSupportedException(SR.EventSource_NotSupportedCustomSerializedData);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\UnreachableException.cs (3)
15: base(SR.Arg_UnreachableException) 25: base(message ?? SR.Arg_UnreachableException) 37: base(message ?? SR.Arg_UnreachableException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DivideByZeroException.cs (3)
18: base(SR.Arg_DivideByZero) 24: base(message ?? SR.Arg_DivideByZero) 30: base(message ?? SR.Arg_DivideByZero, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DllNotFoundException.cs (3)
18: base(SR.Arg_DllNotFoundException) 24: base(message ?? SR.Arg_DllNotFoundException) 30: base(message ?? SR.Arg_DllNotFoundException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (5)
271return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeDouble); 457throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Double", "Char")); 517throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Double", "DateTime"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\DuplicateWaitObjectException.cs (4)
20: base(SR.Arg_DuplicateWaitObjectException) 26: base(SR.Arg_DuplicateWaitObjectException, parameterName) 32: base(message ?? SR.Arg_DuplicateWaitObjectException, parameterName) 38: base(message ?? SR.Arg_DuplicateWaitObjectException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\EntryPointNotFoundException.cs (3)
18: base(SR.Arg_EntryPointNotFoundException) 24: base(message ?? SR.Arg_EntryPointNotFoundException) 30: base(message ?? SR.Arg_EntryPointNotFoundException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (22)
404throw new ArgumentException(SR.Format(SR.Argument_EnumTypeDoesNotMatch, flag.GetType(), GetType())); 887throw new ArgumentException(SR.Arg_MustBeEnum, nameof(TEnum)); 1121throw new ArgumentException(SR.Format(SR.Arg_EnumValueNotFound, originalValue.ToString())); 1290throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, target.GetType(), GetType())); 1603throw new InvalidOperationException(SR.InvalidOperation_UnknownEnumType); 1637throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, rtType)); 1650throw new ArgumentException(SR.Format(SR.Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType)); 2140throw new InvalidOperationException(SR.Format(SR.Arg_OpenType, rt.ToString())); 2148throw new ArgumentException(enumType is not RuntimeType ? SR.Arg_MustBeType : SR.Arg_MustBeEnum, nameof(enumType)); 2151throw new ArgumentException(SR.Arg_MustContainEnumInfo, "value"); 2155new FormatException(SR.Format_InvalidEnumFormatSpecification); 2159new InvalidOperationException(SR.InvalidOperation_UnknownEnumType); 2191DateTime IConvertible.ToDateTime(IFormatProvider? provider) => throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Enum", "DateTime")); 2221throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.cs (6)
159throw new ArgumentOutOfRangeException(nameof(option), option, SR.Format(SR.Arg_EnumIllegalVal, option)); 267throw new ArgumentOutOfRangeException(nameof(target), target, SR.Format(SR.Arg_EnumIllegalVal, target)); 275throw new ArgumentException(SR.Argument_StringFirstCharIsZero, nameof(variable)); 278throw new ArgumentException(SR.Argument_IllegalEnvVarName, nameof(variable));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (2)
147throw new ArgumentOutOfRangeException(nameof(folder), folder, SR.Format(SR.Arg_EnumIllegalVal, folder));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Exception.cs (7)
61public virtual string Message => _message ?? SR.Format(SR.Exception_WasThrown, GetClassName()); 129string endOfInnerExceptionResource = SR.Exception_EndOfInnerExceptionStack; 190add { throw new PlatformNotSupportedException(SR.PlatformNotSupported_SecureBinarySerialization); } 191remove { throw new PlatformNotSupportedException(SR.PlatformNotSupported_SecureBinarySerialization); } 248sb.AppendLine(SR.Exception_EndStackTraceFromPreviousThrow); 261_remoteStackTraceString = stackTrace + Environment.NewLineConst + SR.Exception_EndStackTraceFromPreviousThrow + Environment.NewLineConst;
src\runtime\src\libraries\System.Private.CoreLib\src\System\ExecutionEngineException.cs (3)
18: base(SR.Arg_ExecutionEngineException) 24: base(message ?? SR.Arg_ExecutionEngineException) 30: base(message ?? SR.Arg_ExecutionEngineException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\FieldAccessException.cs (3)
18: base(SR.Arg_FieldAccessException) 24: base(message ?? SR.Arg_FieldAccessException) 30: base(message ?? SR.Arg_FieldAccessException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\FormatException.cs (3)
18: base(SR.Arg_FormatException) 24: base(message ?? SR.Arg_FormatException) 30: base(message ?? SR.Arg_FormatException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (11)
79throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 114throw new ArgumentException(SR.Format(SR.Argument_ResultCalendarRange, minValue, maxValue)); 130throw new ArgumentOutOfRangeException(nameof(value), value, SR.ArgumentOutOfRange_AddValue); 481SR.Format(SR.ArgumentOutOfRange_Range, DayOfWeek.Sunday, DayOfWeek.Saturday)); 492SR.Format(SR.ArgumentOutOfRange_Range, CalendarWeekRule.FirstDay, CalendarWeekRule.FirstFourDayWeek)), 671throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 678SR.Format(SR.ArgumentOutOfRange_Range, 0, TimeSpan.MillisecondsPerSecond - 1));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\ChineseLunisolarCalendar.cs (5)
258throw new ArgumentOutOfRangeException("year", lunarYear, SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear)); 273throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 277throw new ArgumentOutOfRangeException(nameof(year), year, SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (8)
71throw new ArgumentException(SR.Argument_OnlyMscorlib, nameof(assembly)); 89throw new ArgumentException(SR.Argument_OnlyMscorlib, nameof(assembly)); 103throw new ArgumentException(SR.Argument_CustomCultureCannotBePassedByNumber, nameof(culture)); 393throw new ArgumentOutOfRangeException(nameof(string1), SR.ArgumentOutOfRange_OffsetLength); 397throw new ArgumentOutOfRangeException(nameof(string2), SR.ArgumentOutOfRange_OffsetLength); 485message: ((options & CompareOptions.Ordinal) != 0) ? SR.Argument_CompareOptionOrdinal : SR.Argument_InvalidFlag); 1359throw new ArgumentException(paramName: nameof(options), message: SR.Argument_InvalidFlag);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (5)
709throw new ArgumentException(SR.Argument_InvalidFlag, nameof(options)); 750throw new ArgumentException(SR.Arg_ExternalException); 801throw new ArgumentException(SR.Arg_ExternalException); 931throw new ArgumentException(SR.Arg_ExternalException); 992throw new ExternalException(SR.Arg_ExternalException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Invariant.cs (2)
18throw new ArgumentException(SR.Argument_InvalidFlag, nameof(options)); 125message: SR.ArgumentOutOfRange_GetByteCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (9)
135throw new ArgumentException(SR.Arg_ExternalException); 156throw new ArgumentException(SR.Arg_ExternalException); 190throw new ArgumentException(SR.Arg_ExternalException); 238throw new ArgumentException(SR.Arg_ExternalException); 366throw new ArgumentException(SR.Argument_InvalidFlag, nameof(options)); 390throw new ArgumentException(SR.Arg_ExternalException); 403throw new ArgumentException(SR.Arg_ExternalException); 466throw new ArgumentException(SR.Arg_ExternalException); 511throw new ArgumentException(SR.Arg_ExternalException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (7)
520SR.Format(SR.ArgumentOutOfRange_Range, CultureTypes.NeutralCultures, CultureTypes.FrameworkCultures)); 723throw new ArgumentException(SR.Format(SR.Argument_InvalidId, nameof(name))); 867throw new CultureNotFoundException(nameof(culture), culture, SR.Argument_CultureNotSupported); 874throw new CultureNotFoundException(nameof(culture), culture, SR.Argument_CultureNotSupportedInInvariantMode); 889throw new CultureNotFoundException(nameof(culture), culture, SR.Argument_CultureNotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (14)
156private static string GetCultureNotSupportedExceptionMessage() => GlobalizationMode.Invariant ? SR.Argument_CultureNotSupportedInInvariantMode : SR.Argument_CultureNotSupported; 205throw new CultureNotFoundException(nameof(culture), culture, SR.Argument_CultureNotSupported); 324throw new ArgumentException(SR.Format(SR.Argument_InvalidResourceCultureName, cultureName)); 973throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1088throw new CultureNotFoundException("name/altName", SR.Format(SR.Argument_OneOfCulturesNotSupported, name, altName)); 1108throw new CultureNotFoundException(nameof(name), name, SR.Format(SR.Argument_InvalidPredefinedCultureName, name)); 1150throw new CultureNotFoundException(nameof(name), SR.Format(SR.Argument_CultureIetfNotSupported, name)); 1158throw new CultureNotFoundException(nameof(name), SR.Format(SR.Argument_CultureIetfNotSupported, name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (3)
83private static string DefaultMessage => SR.Argument_CultureNotSupported; 97string valueMessage = SR.Format(SR.Argument_CultureInvalidIdentifier, FormattedInvalidCultureId);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (17)
318throw new FormatException(SR.Format_InvalidString); 330throw new FormatException(SR.Format(SR.Format_BadQuote, quoteChar)); 524throw new FormatException(SR.Format_InvalidString); 706throw new FormatException(SR.Format_InvalidString); 730throw new FormatException(SR.Format_InvalidString); 914_ => throw new FormatException(SR.Format_InvalidString), 1192throw new FormatException(SR.Format_InvalidString); 1218throw new FormatException(SR.Format_InvalidString); 1239throw new FormatException(SR.Format(SR.Format_BadQuote, quoteChar)); 1261throw new FormatException(SR.Format_InvalidString); 1290throw new FormatException(SR.Format_InvalidString); 1311throw new FormatException(SR.Format(SR.Format_BadQuote, quoteChar)); 1328throw new FormatException(SR.Format_InvalidString); 1797throw new FormatException(SR.Format_InvalidString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (53)
352throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 382throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 458throw new ArgumentOutOfRangeException(nameof(value), value, SR.Argument_InvalidCalendar); 537throw new ArgumentOutOfRangeException(nameof(era), era + 1, SR.ArgumentOutOfRange_InvalidEraValue); 566throw new ArgumentOutOfRangeException(nameof(era), era + 1, SR.ArgumentOutOfRange_InvalidEraValue); 601throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 635throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 643SR.Format(SR.ArgumentOutOfRange_Range, DayOfWeek.Sunday, DayOfWeek.Saturday)); 666throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 673SR.Format(SR.ArgumentOutOfRange_Range, CalendarWeekRule.FirstDay, CalendarWeekRule.FirstFourDayWeek)); 687throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 708throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 742throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 784throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 804throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 838throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 874throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 986throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1020throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1048throw new ArgumentNullException("value", SR.ArgumentNull_ArrayValue); 1060throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1065throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value)); 1085throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1090throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value)); 1105throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1110throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value)); 1127throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1132throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value)); 1148throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1153throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value)); 1321_ => throw new ArgumentException(SR.Format(SR.Format_BadFormatSpecifier, format), nameof(format)), 1591throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1597throw new ArgumentException(SR.Arg_ArrayZeroError, nameof(patterns)); 1604throw new ArgumentNullException(nameof(patterns) + "[" + i + "]", SR.ArgumentNull_ArrayValue); 1643throw new ArgumentException(SR.Format(SR.Format_BadFormatSpecifier, format), nameof(format)); 1654throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1659throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value)); 1675throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1680throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value)); 1738string message = (style & InvalidDateTimeStyles) != 0 ? SR.Argument_InvalidDateTimeStyles 1739: (style & localUniversal) == localUniversal ? SR.Argument_ConflictingDateTimeStyles 1740: SR.Argument_ConflictingDateTimeRoundtripStyles;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (26)
5307return new ArgumentNullException("formats", SR.ArgumentNull_String); 5309return new FormatException(SR.Format(SR.Format_BadDatePattern, new string(result.failureSpanArgument))); 5311return new FormatException(SR.Format(SR.Format_BadDateTime, new string(result.failureSpanArgument))); 5313return new FormatException(SR.Format(SR.Format_BadDateTimeCalendar, new string(result.failureSpanArgument), result.calendar)); 5315return new FormatException(SR.Format(SR.Format_BadDayOfWeek, new string(result.failureSpanArgument))); 5317return new FormatException(SR.Format(SR.Format_BadFormatSpecifier, new string(result.failureSpanArgument))); 5319return new FormatException(SR.Format(SR.Format_BadQuote, (char)result.failureIntArgument)); 5321return new FormatException(SR.Format(SR.Format_DateOutOfRange, new string(result.failureSpanArgument))); 5323return new FormatException(SR.Format(SR.Format_MissingIncompleteDate, new string(result.failureSpanArgument))); 5325return new FormatException(SR.Format_NoFormatSpecifier); 5327return new FormatException(SR.Format(SR.Format_OffsetOutOfRange, new string(result.failureSpanArgument))); 5329return new FormatException(SR.Format(SR.Format_RepeatDateTimePattern, (char)result.failureIntArgument)); 5331return new FormatException(SR.Format(SR.Format_UnknownDateTimeWord, new string(result.failureSpanArgument), result.failureIntArgument)); 5333return new FormatException(SR.Format(SR.Format_UTCOutOfRange, new string(result.failureSpanArgument)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (20)
41SR.Format(SR.ArgumentOutOfRange_Range, 1, 60)); 58SR.Format(SR.ArgumentOutOfRange_Range, 1, 60)); 104throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 134throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 148SR.Format(CultureInfo.InvariantCulture, SR.ArgumentOutOfRange_CalendarRange, 162throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 176SR.Format(SR.ArgumentOutOfRange_Range, MinEraCalendarYear(era), MaxEraCalendarYear(era))); 253SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 258throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 431SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 604SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 669SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxCalendarYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (31)
54SR.Format(SR.ArgumentOutOfRange_Range, GregorianCalendarTypes.Localized, GregorianCalendarTypes.TransliteratedFrench)); 71SR.Format(SR.ArgumentOutOfRange_Range, GregorianCalendarTypes.Localized, GregorianCalendarTypes.TransliteratedFrench)); 107throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 144SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 215throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 228throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 250throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 257SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 296SR.Format(SR.ArgumentOutOfRange_Range, 1, 12)); 301throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 308SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 315SR.Format(SR.ArgumentOutOfRange_Range, 1, GetDaysInMonth(year, month))); 330throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 337SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 351throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 358SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 365SR.Format(SR.ArgumentOutOfRange_Range, 1, 12)); 379throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 392throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 430SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (17)
85throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_NeedNonNegNum); 136SR.Format( 137SR.ArgumentOutOfRange_Range, 148throw new ArgumentOutOfRangeException(nameof(era), SR.ArgumentOutOfRange_InvalidEraValue); 181SR.Format( 183SR.ArgumentOutOfRange_CalendarRange, 212SR.Format( 213SR.ArgumentOutOfRange_Range, 326throw new ArgumentOutOfRangeException(nameof(time), SR.ArgumentOutOfRange_Era); 374throw new ArgumentException(SR.Argument_NoEra); 395throw new ArgumentException(SR.Argument_NoEra); 408SR.Format( 409SR.ArgumentOutOfRange_Range, 448SR.Format( 449SR.ArgumentOutOfRange_Range, 496SR.Format(SR.ArgumentOutOfRange_Range, m_minYear, m_maxYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (13)
299SR.Format(SR.ArgumentOutOfRange_Range, MinHebrewYear, MaxHebrewYear)); 317SR.Format(SR.ArgumentOutOfRange_Range, 1, monthsInYear)); 335SR.Format(SR.ArgumentOutOfRange_Range, 1, daysInMonth)); 343throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 355SR.Format( 357SR.ArgumentOutOfRange_CalendarRange, 370_ => throw new InvalidOperationException(SR.InvalidOperation_DateTimeParsing), 575throw new ArgumentOutOfRangeException(nameof(months), months, SR.ArgumentOutOfRange_AddValue); 884SR.Format(SR.ArgumentOutOfRange_Range, MinHebrewYear, MaxHebrewYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (21)
127SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, MinAdvancedHijri, MaxAdvancedHijri)); 142SR.Format( 144SR.ArgumentOutOfRange_CalendarRange, 154throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 165SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarYear)); 179SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarMonth)); 264throw new InvalidOperationException(SR.InvalidOperation_DateTimeParsing); 274SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 374SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 407SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 413throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 440SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxCalendarYear)); 461SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (56)
74throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 76throw new ArgumentOutOfRangeException(nameof(unicode), SR.ArgumentOutOfRange_IndexCountBuffer); 80throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 84throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, index + count - 1), nameof(unicode)); 109throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 114throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode)); 150throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 152throw new ArgumentOutOfRangeException(nameof(ascii), SR.ArgumentOutOfRange_IndexCountBuffer); 158throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 185throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 265throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode)); 299throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode)); 326throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 336throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, i), nameof(unicode)); 348throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 352throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 372throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 376throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, 415throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 437throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 466throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode)); 485throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode)); 492throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode)); 518throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(unicode)); 603throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 615throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, 653throw new ArgumentException(SR.Format(SR.Argument_IdnBadStd3, c), nameof(c)); 666throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii)); 689throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii)); 728throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii)); 732throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, 755throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii)); 763throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii)); 782throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 797throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 832throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 839throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 847throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 858throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 864throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 879throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 923throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(ascii)); 930throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(ascii)); 936throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii)); 948throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, c_defaultNameLimit - (IsDot(output[^1]) ? 0 : 1)), nameof(ascii)); 971throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(cp));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Icu.cs (7)
39throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(unicode)); 46throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(unicode)); 66throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(unicode)); 108throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii)); 120throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii)); 137throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii)); 178throw new ArgumentException(SR.Argument_IdnIllegalName, paramName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (3)
177lastError == Interop.Errors.ERROR_INVALID_NAME ? SR.Argument_IdnIllegalName : 178(unicode ? SR.Argument_InvalidCharSequenceNoIndex : SR.Argument_IdnBadPunycode),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\ISOWeek.cs (2)
141throw new ArgumentOutOfRangeException(nameof(week), SR.ArgumentOutOfRange_Week_ISO); 149throw new ArgumentOutOfRangeException(nameof(dayOfWeek), SR.ArgumentOutOfRange_DayOfWeek);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (2)
276SR.Format(SR.ArgumentOutOfRange_Range, 99, _helper.MaxYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseLunisolarCalendar.cs (2)
148SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (15)
56throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 68SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 94throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 106SR.Format(SR.ArgumentOutOfRange_Range, 1, monthDays)); 187SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 311SR.Format(SR.ArgumentOutOfRange_Range, 0, TimeSpan.MillisecondsPerSecond - 1)); 316throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 333SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxYear)); 348SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 1, MaxYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (2)
169SR.Format(SR.ArgumentOutOfRange_Range, 99, _helper.MaxYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanLunisolarCalendar.cs (5)
1190SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear)); 1205throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 1212SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.cs (2)
95throw new ArgumentException(SR.Argument_InvalidNormalizationForm, nameof(normalizationForm)); 104throw new PlatformNotSupportedException(SR.Argument_UnsupportedNormalizationFormInBrowser);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Icu.cs (6)
41throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(source)); 84throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput)); 111throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput)); 155throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(source)); 194throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(source)); 204throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, paramName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (12)
95throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput)); 102throw new InvalidOperationException(SR.Format(SR.UnknownError_Num, lastError)); 154throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(source)); 161throw new InvalidOperationException(SR.Format(SR.UnknownError_Num, lastError)); 191throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(source)); 198throw new InvalidOperationException(SR.Format(SR.UnknownError_Num, lastError)); 213throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, inputName); 219throw new InvalidOperationException(SR.Format(SR.UnknownError_Num, lastError));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (16)
127throw new ArgumentException(SR.Argument_InvalidNativeDigitCount, propertyName); 134throw new ArgumentNullException(propertyName, SR.ArgumentNull_ArrayValue); 142throw new ArgumentException(SR.Argument_InvalidNativeDigitValue, propertyName); 147throw new ArgumentException(SR.Argument_InvalidNativeDigitValue, propertyName); 156throw new ArgumentException(SR.Argument_InvalidNativeDigitValue, propertyName); 172throw new ArgumentException(SR.Argument_InvalidDigitSubstitution, propertyName); 215throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 311throw new ArgumentException(SR.Argument_InvalidGroupSize, propName); 315throw new ArgumentException(SR.Argument_InvalidGroupSize, propName); 838(value & InvalidNumberStyles) != 0 ? SR.Argument_InvalidNumberStyles : SR.Arg_InvalidHexBinaryStyle, 858(value & InvalidNumberStyles) != 0 ? SR.Argument_InvalidNumberStyles : 859(value & NumberStyles.AllowBinarySpecifier) != 0 ? SR.Arg_BinaryStyleNotSupported : 860SR.Arg_InvalidHexFloatStyle, 874throw new ArgumentException((value & InvalidNumberStyles) != 0 ? SR.Argument_InvalidNumberStyles : SR.Arg_HexBinaryStylesNotSupported, nameof(style));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (20)
62throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 80SR.Format(SR.ArgumentOutOfRange_CalendarRange, s_minDate, s_maxDate)); 88throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 100SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarYear)); 114SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarMonth)); 188throw new InvalidOperationException(SR.InvalidOperation_DateTimeParsing); 226SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 338SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 377SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 384throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 411SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxCalendarYear)); 431SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (11)
33throw new ArgumentException(SR.Argument_NoRegionInvariantCulture, nameof(name)); 38throw new ArgumentException(SR.Format(SR.Argument_InvalidCultureName, name), nameof(name)); 43throw new ArgumentException(SR.Format(SR.Argument_InvalidNeutralRegionName, name), nameof(name)); 54throw new ArgumentException(SR.Argument_NoRegionInvariantCulture); 60throw new ArgumentException(SR.Format(SR.Argument_CultureIsNeutral, culture), nameof(culture)); 66throw new ArgumentException(SR.Argument_CustomCultureCannotBePassedByNumber, nameof(culture)); 75throw new ArgumentException(SR.Format(SR.Argument_CultureIsNeutral, culture), nameof(culture));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (2)
80throw new ArgumentOutOfRangeException(nameof(startingTextElement), startingTextElement, SR.Arg_ArgumentOutOfRangeException); 84throw new ArgumentOutOfRangeException(nameof(lengthInTextElements), lengthInTextElements, SR.Arg_ArgumentOutOfRangeException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (2)
168SR.Format(SR.ArgumentOutOfRange_Range, 99, _helper.MaxYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanLunisolarCalendar.cs (2)
204SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextElementEnumerator.cs (2)
59throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 75throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
105throw new InvalidOperationException(SR.InvalidOperation_ReadOnly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.Nls.cs (1)
37throw new InvalidOperationException(SR.InvalidOperation_ReadOnly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (2)
150SR.Format(SR.ArgumentOutOfRange_Range, 99, _helper.MaxYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (3)
40throw new FormatException(SR.Format_InvalidString); 72throw new FormatException(SR.Format_InvalidString); 451throw new FormatException(SR.Format_InvalidString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (10)
513throw new FormatException(SR.Format_NoFormatSpecifier); 523throw new FormatException(SR.Format(SR.Format_BadQuote, failingCharacter)); 533throw new FormatException(SR.Format_InvalidString); 554throw new OverflowException(SR.Format(SR.Overflow_TimeSpanElementTooLarge, new string(_originalTimeSpanString))); 564throw new FormatException(SR.Format(SR.Format_BadTimeSpan, new string(_originalTimeSpanString))); 574throw new FormatException(SR.Format(SR.Format_BadFormatSpecifier, formatSpecifierCharacter));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (17)
300SR.Format( 302SR.ArgumentOutOfRange_CalendarRange, 312throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 324SR.Format(SR.ArgumentOutOfRange_Range, MinCalendarYear, MaxCalendarYear)); 407throw new InvalidOperationException(SR.InvalidOperation_DateTimeParsing); 417SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 546SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 585SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 591throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 617SR.Format(SR.ArgumentOutOfRange_Range, MinCalendarYear, MaxCalendarYear)); 640SR.Format(SR.ArgumentOutOfRange_Range, MinCalendarYear, MaxCalendarYear));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (18)
104throw new ArgumentException(SR.Format(SR.Arg_GuidArrayCtor, "16"), "b"); 130throw new ArgumentException(SR.Format(SR.Arg_GuidArrayCtor, "8"), nameof(d)); 228throw new OverflowException(SR.Overflow_UInt32); 233ParseFailure.Format_ExtraJunkAtEnd => SR.Format_ExtraJunkAtEnd, 234ParseFailure.Format_GuidBraceAfterLastNumber => SR.Format_GuidBraceAfterLastNumber, 235ParseFailure.Format_GuidBrace => SR.Format_GuidBrace, 236ParseFailure.Format_GuidComma => SR.Format_GuidComma, 237ParseFailure.Format_GuidDashes => SR.Format_GuidDashes, 238ParseFailure.Format_GuidEndBrace => SR.Format_GuidEndBrace, 239ParseFailure.Format_GuidHexPrefix => SR.Format_GuidHexPrefix, 240ParseFailure.Format_GuidInvalidChar => SR.Format_GuidInvalidChar, 241ParseFailure.Format_GuidInvLen => SR.Format_GuidInvLen, 242_ => SR.Format_GuidUnrecognized 436_ => throw new FormatException(SR.Format_InvalidGuidFormatSpecification), 1117throw new ArgumentException(SR.Arg_MustBeGuid, nameof(value)); 1855throw new FormatException(SR.Format_InvalidGuidFormatSpecification);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
449return (obj is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeHalf); 1778throw new ArithmeticException(SR.Arithmetic_NaN);
src\runtime\src\libraries\System.Private.CoreLib\src\System\HashCode.cs (2)
487public override int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 491public override bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
149throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_NeedNonNegNum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IndexOutOfRangeException.cs (3)
17: base(SR.Arg_IndexOutOfRangeException) 23: base(message ?? SR.Arg_IndexOutOfRangeException) 29: base(message ?? SR.Arg_IndexOutOfRangeException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InsufficientExecutionStackException.cs (3)
14: base(SR.Arg_InsufficientExecutionStackException) 20: base(message ?? SR.Arg_InsufficientExecutionStackException) 26: base(message ?? SR.Arg_InsufficientExecutionStackException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InsufficientMemoryException.cs (1)
42=> SR.Arg_OutOfMemoryException;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
61throw new ArgumentException(SR.Arg_MustBeInt128); 2146static string IBinaryIntegerParseAndFormatInfo<Int128>.OverflowMessage => SR.Overflow_Int128;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
68throw new ArgumentException(SR.Arg_MustBeInt16); 246throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int16", "DateTime")); 1421static string IBinaryIntegerParseAndFormatInfo<short>.OverflowMessage => SR.Overflow_Int16;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (4)
81throw new ArgumentException(SR.Arg_MustBeInt32); 261throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int32", "DateTime")); 1472static string IBinaryIntegerParseAndFormatInfo<int>.OverflowMessage => SR.Overflow_Int32;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
78throw new ArgumentException(SR.Arg_MustBeInt64); 258throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int64", "DateTime")); 1475static string IBinaryIntegerParseAndFormatInfo<long>.OverflowMessage => SR.Overflow_Int64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
215throw new ArgumentException(SR.Arg_MustBeIntPtr);
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidCastException.cs (4)
18: base(SR.Arg_InvalidCastException) 24: base(message ?? SR.Arg_InvalidCastException) 30: base(message ?? SR.Arg_InvalidCastException, innerException) 36: base(message ?? SR.Arg_InvalidCastException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidOperationException.cs (3)
18: base(SR.Arg_InvalidOperationException) 24: base(message ?? SR.Arg_InvalidOperationException) 30: base(message ?? SR.Arg_InvalidOperationException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidProgramException.cs (3)
18: base(SR.InvalidProgram_Default) 24: base(message ?? SR.InvalidProgram_Default) 30: base(message ?? SR.InvalidProgram_Default, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (8)
46throw new ArgumentException(SR.Argument_StreamNotReadable); 239throw new IOException(SR.Arg_DecBitCtor, e); 251throw new IOException(SR.Format(SR.IO_InvalidStringLen_Len, stringLength)); 302throw new ArgumentException(SR.Argument_InvalidOffLen); 421throw new ArgumentException(SR.Argument_InvalidOffLen); 569throw new FormatException(SR.Format_Bad7BitInt); 609throw new FormatException(SR.Format_Bad7BitInt);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (3)
51throw new ArgumentException(SR.Argument_StreamNotWritable); 181throw new ArgumentException(SR.Arg_SurrogatesNotAllowedAsSingleChar); 236throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (3)
72throw new ArgumentOutOfRangeException(nameof(bufferSize), SR.Format(SR.ArgumentOutOfRange_MustBePositive, nameof(bufferSize))); 399throw new NotSupportedException(SR.NotSupported_CannotWriteToBufferedStreamIfReadBufferCannotBeFlushed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
75throw new ArgumentException(SR.Argument_DirectorySeparatorInvalid, paramName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Directory.Unix.cs (1)
17throw new ArgumentException(SR.Arg_InvalidUnixFileMode, nameof(unixCreateMode));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (5)
79throw new ArgumentException(SR.Argument_PathEmpty, nameof(path)); 81throw new ArgumentException(SR.Arg_Path2IsRooted, nameof(path)); 101throw new ArgumentException(SR.Format(SR.Argument_InvalidSubPath, path, FullPath), nameof(path)); 203_ => throw new ArgumentException(SR.ArgumentOutOfRange_Enum, nameof(searchTarget)),
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (8)
21: base(SR.Arg_DirectoryNotFoundException) 27: base(message ?? SR.Arg_DirectoryNotFoundException) 33: base(message ?? SR.Arg_DirectoryNotFoundException, innerException) 45? SR.Format(SR.IO_DirectoryNotFound_Path, directoryPath) 46: SR.Arg_DirectoryNotFoundException), innerException) 59s += Environment.NewLineConst + SR.Format(SR.IO_DirectoryName_Name, DirectoryPath);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\EndOfStreamException.cs (3)
15: base(SR.Arg_EndOfStreamException) 21: base(message ?? SR.Arg_EndOfStreamException) 27: base(message ?? SR.Arg_EndOfStreamException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (3)
30throw new ArgumentException(SR.Arg_Path2IsRooted, nameof(expression)); 33throw new ArgumentException(SR.Argument_NullCharInPath, expression); 36throw new ArgumentException(SR.Argument_NullCharInPath, directory);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\EnumerationOptions.cs (1)
45throw new ArgumentOutOfRangeException(nameof(searchOption), SR.ArgumentOutOfRange_Enum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (4)
729throw new IOException(SR.IO_FileTooLong2GB); 1084throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, fullSourceFileName), fullSourceFileName); 1211return Task.FromException<byte[]>(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.IO_FileTooLong2GB)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (6)
40throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, FullPath), FullPath); 186throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, directoryPath), directoryPath); 189throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, FullName), FullName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (5)
15: base(SR.IO_FileLoad) 56s += Environment.NewLineConst + SR.Format(SR.IO_FileName_Name, FileName); 59s += Environment.NewLineConst + SR.Format(SR.IO_FileLoad_RequestedBy, _requestingAssemblyChain);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (6)
17: base(SR.IO_FileNotFound) 64_message = SR.IO_FileNotFound; 79s += Environment.NewLineConst + SR.Format(SR.IO_FileName_Name, FileName); 82s += Environment.NewLineConst + SR.Format(SR.IO_FileLoad_RequestedBy, _requestingAssemblyChain);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (2)
238throw new ArgumentException(SR.Arg_InvalidFileAttrs, "Attributes"); 474throw new ArgumentException(SR.Arg_InvalidUnixFileMode, nameof(UnixFileMode));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (7)
71throw new ArgumentException(SR.Arg_InvalidHandle, nameof(handle)); 75throw new ArgumentOutOfRangeException(nameof(access), SR.ArgumentOutOfRange_Enum); 174throw new ArgumentException(SR.Argument_InvalidAppendMode, nameof(options)); 180throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, options.Mode, options.Access), nameof(options)); 194throw new ArgumentException(SR.Argument_InvalidUnixCreateMode, nameof(options)); 584throw new ArgumentException(SR.Argument_InvalidSeekOrigin, nameof(origin));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStreamOptions.cs (2)
139throw new PlatformNotSupportedException(SR.PlatformNotSupported_UnixFileMode); 144throw new ArgumentException(SR.Arg_InvalidUnixFileMode, nameof(UnixCreateMode));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.cs (2)
27throw new ArgumentException(SR.Argument_NullCharInPath, argName); 43throw new IOException(SR.IO_SourceDestMustBeDifferent);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (29)
59return new IOException(SR.Format(SR.Arg_FileIsDirectory_Name, path)); 67throw new PlatformNotSupportedException(SR.PlatformNotSupported_FileEncryption); 72throw new PlatformNotSupportedException(SR.PlatformNotSupported_FileEncryption); 131throw new UnauthorizedAccessException(SR.Format(SR.IO_NotAFile, sourceFullPath)); 140throw new UnauthorizedAccessException(SR.Format(SR.IO_NotAFile, destFullPath)); 146throw new IOException(SR.Format(SR.IO_CannotReplaceSameFile, sourceFullPath, destFullPath)); 409throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 421throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath), sourceFullPath); 434throw new IOException(SR.IO_SourceDestMustBeDifferent); 441throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 445throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, destFullPath)); 455throw new IOException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, sourceFullPath), errorInfo.RawErrno); 457throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath), sourceFullPath); 459throw new IOException(SR.Format(SR.IO_PathNotFound_Path, sourceFullPath)); 565throw new IOException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, fullPath)); 709throw new IOException(SR.Format(SR.IO_TooManySymbolicLinkLevels, linkPath));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\InvalidDataException.cs (3)
18: base(SR.GenericInvalidData) 26: base(message ?? SR.GenericInvalidData) 36: base(message ?? SR.GenericInvalidData, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\IOException.cs (1)
15: base(SR.Arg_IOException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (17)
86throw new ArgumentException(SR.Argument_InvalidOffLen); 131throw new IOException(SR.IO_StreamTooLong); 180throw new UnauthorizedAccessException(SR.UnauthorizedAccess_MemStreamBuffer); 262throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 267throw new NotSupportedException(SR.NotSupported_MemStreamNotExpandable); 312throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 518_ => throw new ArgumentException(SR.Argument_InvalidSeekOrigin) 525throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 528throw new IOException(SR.IO_SeekBeforeBegin); 548throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 554throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 584throw new IOException(SR.IO_StreamTooLong); 635throw new IOException(SR.IO_StreamTooLong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (2)
865throw new ArgumentException(SR.Arg_PathEmpty, nameof(relativeTo)); 867throw new ArgumentException(SR.Arg_PathEmpty, nameof(path));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (3)
31throw new ArgumentException(SR.Argument_NullCharInPath, nameof(path)); 42throw new ArgumentException(SR.Arg_BasePathNotFullyQualified, nameof(basePath)); 45throw new ArgumentException(SR.Argument_NullCharInPath);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PathTooLongException.cs (3)
15: base(SR.IO_PathTooLong) 21: base(message ?? SR.IO_PathTooLong) 27: base(message ?? SR.IO_PathTooLong, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
39throw new InvalidOperationException(SR.PersistedFiles_NoHomeDirectory);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (12)
67throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamPosition, int.MaxValue)); 164_ => throw new ArgumentException(SR.Argument_InvalidSeekOrigin) 169throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.ArgumentOutOfRange_StreamPosition, int.MaxValue)); 175throw new IOException(SR.IO_SeekBeforeBegin); 220public override void SetLength(long value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 225public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 230public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 235public override void WriteByte(byte value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 240public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 245public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (19)
46throw new IOException(SR.Argument_DirectorySeparatorInvalid); 238throw new InvalidDataException(SR.Format(SR.IO_SharedMemory_InvalidHeader, sharedMemoryFilePath)); 277throw new InvalidDataException(SR.Format(SR.IO_SharedMemory_InvalidHeader, sharedMemoryFilePath)); 442throw new IOException(SR.Format(SR.IO_SharedMemory_FileNotOwnedByUid, sharedMemoryFilePath, id.Uid)); 458throw new IOException(SR.Format(SR.IO_SharedMemory_FilePermissionsIncorrect, sharedMemoryFilePath, PermissionsMask_OwnerUser_ReadWrite)); 613throw new IOException(SR.Format(SR.IO_SharedMemory_PathExistsButNotDirectory, directoryPath)); 644throw new IOException(SR.Format(SR.IO_SharedMemory_DirectoryPermissionsIncorrect, directoryPath, fileStatus.Uid, Convert.ToString(fileStatus.Mode, 8))); 659throw new IOException(SR.Format(SR.IO_SharedMemory_DirectoryNotOwnedByUid, directoryPath, id.Uid)); 678throw new IOException(SR.Format(SR.IO_SharedMemory_DirectoryPermissionsIncorrectUserScope, directoryPath, Convert.ToString(fileStatus.Mode, 8))); 693throw new IOException(SR.Format(SR.IO_SharedMemory_DirectoryOwnerPermissionsIncorrect, directoryPath, Convert.ToString(fileStatus.Mode, 8)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (7)
85throw new ArgumentOutOfRangeException(badArg, SR.ArgumentOutOfRange_Enum); 91throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_Enum); 108throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, mode, access), nameof(access)); 114throw new ArgumentException(SR.Argument_InvalidAppendMode, nameof(access)); 130throw new ArgumentException(SR.Argument_InvalidPreallocateAccess, nameof(access)); 138throw new ArgumentException(SR.Argument_InvalidPreallocateMode, nameof(mode));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.Unix.cs (2)
63throw new PlatformNotSupportedException(SR.PlatformNotSupported_OSXFileLocking); 73throw new PlatformNotSupportedException(SR.PlatformNotSupported_OSXFileLocking);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (4)
91internal sealed override string Name => _fileHandle.Path ?? SR.IO_UnknownFileName; 162throw new IOException(SR.IO_SeekBeforeBegin); 169throw new IOException(SR.IO_SeekAppendOverwrite); 182throw new IOException(SR.IO_SetLengthAppendTruncate);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (5)
39get => throw new InvalidOperationException(SR.InvalidOperation_TimeoutsNotSupported); 40set => throw new InvalidOperationException(SR.InvalidOperation_TimeoutsNotSupported); 45get => throw new InvalidOperationException(SR.InvalidOperation_TimeoutsNotSupported); 46set => throw new InvalidOperationException(SR.InvalidOperation_TimeoutsNotSupported); 791throw new IOException(SR.IO_StreamTooLong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (8)
98throw new InvalidOperationException(SR.InvalidOperation_AsyncIOInProgress); 174throw new ArgumentException(SR.Argument_StreamNotReadable); 247throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(options)); 384throw new ArgumentException(SR.Argument_InvalidOffLen); 463throw new ArgumentException(SR.Argument_InvalidOffLen); 1083throw new ArgumentException(SR.Argument_InvalidOffLen); 1304throw new ArgumentException(SR.Argument_InvalidOffLen); 1464void ThrowObjectDisposedException() => throw new ObjectDisposedException(GetType().Name, SR.ObjectDisposed_ReaderClosed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (7)
69throw new InvalidOperationException(SR.InvalidOperation_AsyncIOInProgress); 129throw new ArgumentException(SR.Argument_StreamNotWritable); 203throw new ArgumentException(SR.Argument_StreamNotWritable, nameof(options)); 406throw new ArgumentException(SR.Argument_InvalidOffLen); 758throw new ArgumentException(SR.Argument_InvalidOffLen); 898throw new ArgumentException(SR.Argument_InvalidOffLen); 1037void ThrowObjectDisposedException() => throw new ObjectDisposedException(GetType().Name, SR.ObjectDisposed_WriterClosed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (4)
94throw new ArgumentException(SR.Argument_InvalidOffLen); 295throw new ArgumentException(SR.Argument_InvalidOffLen); 313throw new ArgumentException(SR.Argument_InvalidOffLen); 327throw new ObjectDisposedException(null, SR.ObjectDisposed_ReaderClosed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringStream.cs (9)
88public override long Length => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 95get => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 96set => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 287public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 292public override void SetLength(long value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 297public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 302public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 307public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 312public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (10)
75throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed); 94throw new ArgumentException(SR.Argument_InvalidOffLen); 98throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed); 116throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed); 129throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed); 150throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed); 168throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed); 187throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed); 241throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed); 276throw new ObjectDisposedException(null, SR.ObjectDisposed_WriterClosed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (7)
78throw new ArgumentException(SR.Argument_InvalidOffLen); 105throw new IOException(SR.IO_InvalidReadLength); 155throw new IOException(SR.IO_InvalidReadLength); 268throw new ArgumentException(SR.Argument_InvalidOffLen); 298throw new ArgumentException(SR.Argument_InvalidOffLen); 397throw new ArgumentException(SR.Argument_InvalidOffLen); 410throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (1)
182throw new ArgumentException(SR.Argument_InvalidOffLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (28)
48throw new ArgumentException(SR.Argument_OffsetAndCapacityOutOfBounds); 57throw new InvalidOperationException(SR.InvalidOperation_CalledTwice); 69throw new ArgumentException(SR.Argument_UnmanagedMemAccessorWrapAround); 249throw new ArgumentException(SR.Arg_BadDecimal); // Throw same Exception type as Decimal(int[]) ctor for compat 287throw new ObjectDisposedException(nameof(UnmanagedMemoryAccessor), SR.ObjectDisposed_ViewAccessorClosed); 291throw new NotSupportedException(SR.NotSupported_Reading); 299throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 303throw new ArgumentException(SR.Argument_NotEnoughBytesToRead, nameof(position)); 321throw new ArgumentException(SR.Argument_InvalidOffLen); 325throw new ObjectDisposedException(nameof(UnmanagedMemoryAccessor), SR.ObjectDisposed_ViewAccessorClosed); 329throw new NotSupportedException(SR.NotSupported_Reading); 338throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 515throw new ObjectDisposedException(nameof(UnmanagedMemoryAccessor), SR.ObjectDisposed_ViewAccessorClosed); 519throw new NotSupportedException(SR.NotSupported_Writing); 527throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 531throw new ArgumentException(SR.Argument_NotEnoughBytesToWrite, nameof(position)); 547throw new ArgumentException(SR.Argument_InvalidOffLen); 552throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 557throw new ObjectDisposedException(nameof(UnmanagedMemoryAccessor), SR.ObjectDisposed_ViewAccessorClosed); 561throw new NotSupportedException(SR.NotSupported_Writing); 571throw new ObjectDisposedException(nameof(UnmanagedMemoryAccessor), SR.ObjectDisposed_ViewAccessorClosed); 575throw new NotSupportedException(SR.NotSupported_Reading); 582throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 586throw new ArgumentException(SR.Argument_NotEnoughBytesToRead, nameof(position)); 595throw new ObjectDisposedException(nameof(UnmanagedMemoryAccessor), SR.ObjectDisposed_ViewAccessorClosed); 599throw new NotSupportedException(SR.NotSupported_Writing); 606throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 610throw new ArgumentException(SR.Argument_NotEnoughBytesToWrite, nameof(position));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (23)
89throw new ArgumentException(SR.Argument_InvalidSafeBufferOffLen); 98throw new InvalidOperationException(SR.InvalidOperation_CalledTwice); 110throw new ArgumentException(SR.ArgumentOutOfRange_UnmanagedMemStreamWrapAround); 159throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 162throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_UnmanagedMemStreamWrapAround); 164throw new ArgumentOutOfRangeException(nameof(access), SR.ArgumentOutOfRange_Enum); 166throw new InvalidOperationException(SR.InvalidOperation_CalledTwice); 302throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 309throw new IndexOutOfRangeException(SR.IndexOutOfRange_UMSPosition); 315throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 320throw new IOException(SR.IO_SeekBeforeBegin); 323throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_UnmanagedMemStreamLength); 543throw new IOException(SR.IO_SeekBeforeBegin); 549throw new IOException(SR.IO_SeekBeforeBegin); 555throw new IOException(SR.IO_SeekBeforeBegin); 559throw new ArgumentException(SR.Argument_InvalidSeekOrigin); 574throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 580throw new IOException(SR.IO_FixedCapacity); 637throw new IOException(SR.IO_StreamTooLong); 642throw new NotSupportedException(SR.IO_FixedCapacity); 666throw new ArgumentException(SR.Arg_BufferTooSmall); 766throw new IOException(SR.IO_StreamTooLong); 769throw new NotSupportedException(SR.IO_FixedCapacity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (2)
47throw new UnauthorizedAccessException(SR.UnauthorizedAccess_MemStreamBuffer); 59set => throw new IOException(SR.IO_FixedCapacity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (8)
69throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamPosition, int.MaxValue)); 166_ => throw new ArgumentException(SR.Argument_InvalidSeekOrigin) 171throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.ArgumentOutOfRange_StreamPosition, int.MaxValue)); 177throw new IOException(SR.IO_SeekBeforeBegin); 322throw new NotSupportedException(SR.IO_FixedCapacity); 358throw new NotSupportedException(SR.IO_FixedCapacity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Lazy.cs (4)
151throw new ArgumentOutOfRangeException(nameof(mode), SR.Lazy_ctor_ModeInvalid); 163throw new MissingMemberException(SR.Lazy_CreateValue_NoParameterlessCtorForT); 318Func<T> factory = _factory ?? throw new InvalidOperationException(SR.Lazy_Value_RecursiveCallsToValue); 446SR.Lazy_ToString_ValueNotCreated;
src\runtime\src\libraries\System.Private.CoreLib\src\System\MarshalByRefObject.cs (2)
19throw new PlatformNotSupportedException(SR.PlatformNotSupported_Remoting); 25throw new PlatformNotSupportedException(SR.PlatformNotSupported_Remoting);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (5)
148throw new OverflowException(SR.Overflow_NegateTwosCompNum); 1461throw new ArithmeticException(SR.Arithmetic_NaN); 1511throw new ArithmeticException(SR.Arithmetic_NaN); 1530throw new ArgumentException(SR.Format(SR.Argument_MinMaxValue, min, max));
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemberAccessException.cs (3)
26: base(SR.Arg_AccessException) 36: base(message ?? SR.Arg_AccessException) 42: base(message ?? SR.Arg_AccessException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MethodAccessException.cs (3)
18: base(SR.Arg_MethodAccessException) 24: base(message ?? SR.Arg_MethodAccessException) 30: base(message ?? SR.Arg_MethodAccessException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MissingFieldException.cs (5)
15: base(SR.Arg_MissingFieldException) 21: base(message ?? SR.Arg_MissingFieldException) 27: base(message ?? SR.Arg_MissingFieldException, inner) 57return SR.Format(SR.MissingField_Name, ClassName, MemberName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MissingMemberException.cs (5)
15: base(SR.Arg_MissingMemberException) 21: base(message ?? SR.Arg_MissingMemberException) 27: base(message ?? SR.Arg_MissingMemberException, inner) 70return SR.Format(SR.MissingMember_Name, ClassName, MemberName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MissingMethodException.cs (5)
18: base(SR.Arg_MissingMethodException) 24: base(message ?? SR.Arg_MissingMethodException) 30: base(message ?? SR.Arg_MissingMethodException, inner) 52SR.Format(SR.MissingMethod_Name, ClassName, MemberName);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MulticastNotSupportedException.cs (3)
19: base(SR.Arg_MulticastNotSupportedException) 25: base(message ?? SR.Arg_MulticastNotSupportedException) 31: base(message ?? SR.Arg_MulticastNotSupportedException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\NotFiniteNumberException.cs (5)
17: base(SR.Arg_NotFiniteNumberException) 30: base(message ?? SR.Arg_NotFiniteNumberException) 37: base(message ?? SR.Arg_NotFiniteNumberException) 44: base(message ?? SR.Arg_NotFiniteNumberException, innerException) 50: base(message ?? SR.Arg_NotFiniteNumberException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\NotImplementedException.cs (3)
18: base(SR.Arg_NotImplementedException) 23: base(message ?? SR.Arg_NotImplementedException) 28: base(message ?? SR.Arg_NotImplementedException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\NotSupportedException.cs (3)
19: base(SR.Arg_NotSupportedException) 25: base(message ?? SR.Arg_NotSupportedException) 31: base(message ?? SR.Arg_NotSupportedException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\NullReferenceException.cs (3)
18: base(SR.Arg_NullReferenceException) 24: base(message ?? SR.Arg_NullReferenceException) 30: base(message ?? SR.Arg_NullReferenceException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (3)
3407throw new ArithmeticException(SR.Arithmetic_NaN); 3886throw new OverflowException(SR.Overflow_Decimal); 3912throw new OverflowException(SR.Overflow_Decimal);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (6)
1722SR.Format(SR.Format_InvalidStringWithValue, Encoding.UTF8.GetString(bytes)) : 1723SR.Format_InvalidString; 1727errorMessage = SR.Format(SR.Format_InvalidStringWithValue, value.ToString()); 1743throw new OverflowException(SR.Overflow_Decimal);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
339return (obj is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeBFloat16); 1367throw new ArithmeticException(SR.Arithmetic_NaN);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
235return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeDecimal128);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
232throw new ArgumentException(SR.Arg_MustBeDecimal32);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
236return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeDecimal64);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumber.cs (1)
209ThrowHelper.ThrowArithmeticException(SR.Arithmetic_NaN);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
196internal string DisplayString => IsSupported ? ToString() : SR.NotSupported_Type;
src\runtime\src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (6)
23this(null, SR.ObjectDisposed_Generic) 28this(objectName, SR.ObjectDisposed_Generic) 32public ObjectDisposedException(string? objectName, string? message) : base(message ?? SR.ObjectDisposed_Generic) 39: base(message ?? SR.ObjectDisposed_Generic, innerException) 99string objectDisposed = SR.Format(SR.ObjectDisposed_ObjectName_Name, name);
src\runtime\src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (2)
63throw new ArgumentOutOfRangeException(nameof(platform), platform, SR.Format(SR.Arg_EnumIllegalVal, platform));
src\runtime\src\libraries\System.Private.CoreLib\src\System\OperationCanceledException.cs (3)
28: base(SR.OperationCanceled) 34: base(message ?? SR.OperationCanceled) 40: base(message ?? SR.OperationCanceled, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\OutOfMemoryException.cs (1)
38=> SR.Arg_OutOfMemoryException;
src\runtime\src\libraries\System.Private.CoreLib\src\System\OverflowException.cs (3)
18: base(SR.Arg_OverflowException) 24: base(message ?? SR.Arg_OverflowException) 30: base(message ?? SR.Arg_OverflowException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ParseNumbers.cs (14)
33throw new ArgumentException(SR.Arg_InvalidBase, nameof(radix)); 38throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_IndexMustBeLess); 45throw new FormatException(SR.Format_EmptyInputString); 53throw new ArgumentException(SR.Arg_CannotHaveNegativeValue); 56throw new OverflowException(SR.Overflow_NegativeUnsigned); 80throw new FormatException(SR.Format_NoParsibleDigits); 86throw new FormatException(SR.Format_ExtraJunkAtEnd); 121throw new ArgumentException(SR.Arg_InvalidBase, nameof(radix)); 126throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_IndexMustBeLess); 133throw new FormatException(SR.Format_EmptyInputString); 141throw new ArgumentException(SR.Arg_CannotHaveNegativeValue); 144throw new OverflowException(SR.Overflow_NegativeUnsigned); 169throw new FormatException(SR.Format_NoParsibleDigits); 175throw new FormatException(SR.Format_ExtraJunkAtEnd);
src\runtime\src\libraries\System.Private.CoreLib\src\System\PlatformNotSupportedException.cs (3)
18: base(SR.Arg_PlatformNotSupported) 24: base(message ?? SR.Arg_PlatformNotSupported) 30: base(message ?? SR.Arg_PlatformNotSupported, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (4)
485throw new ArgumentException(SR.Arg_EmptySpan, nameof(choices)); 678throw new ArgumentException(SR.Arg_EmptySpan, nameof(choices)); 725throw new ArgumentOutOfRangeException("minValue", SR.Format(SR.Argument_MinMaxValue, "minValue", "maxValue"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\RankException.cs (3)
18: base(SR.Arg_RankException) 24: base(message ?? SR.Arg_RankException) 30: base(message ?? SR.Arg_RankException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (2)
190throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 201throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AmbiguousMatchException.cs (3)
14: base(SR.Arg_AmbiguousMatchException_NoMessage) 20: base(message ?? SR.Arg_AmbiguousMatchException_NoMessage) 26: base(message ?? SR.Arg_AmbiguousMatchException_NoMessage, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (12)
35typeinfos[i] = types[i].GetTypeInfo() ?? throw new NotSupportedException(SR.Format(SR.NotSupported_NoTypeInfo, types[i].FullName)); 237throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 262throw new BadImageFormatException(SR.BadImageFormat_EmptyAssembly); 278throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, path), nameof(path)); 292throw new FileNotFoundException(SR.Format(SR.FileNotFound_LoadFile, normalizedPath), normalizedPath); 410throw new NotSupportedException(SR.NotSupported_AssemblyLoadFromHash); 423public static Assembly ReflectionOnlyLoad(byte[] rawAssembly) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); } 426public static Assembly ReflectionOnlyLoad(string assemblyString) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); } 429public static Assembly ReflectionOnlyLoadFrom(string assemblyFile) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (3)
37throw new ArgumentException(SR.Format_StringZeroLength); 242get => throw new PlatformNotSupportedException(SR.PlatformNotSupported_StrongNameSigning); 243set => throw new PlatformNotSupportedException(SR.PlatformNotSupported_StrongNameSigning);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
20throw new SecurityException(SR.Security_InvalidAssemblyPublicKey);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeFormatException.cs (2)
15: this(SR.Arg_CustomAttributeFormatException) 25: base(message ?? SR.Arg_CustomAttributeFormatException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
24_ => throw new ArgumentException(SR.Argument_InvalidMemberForNamedArgument)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (9)
57public override string? CodeBase => throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 64throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 68throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 72throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 75throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 78throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 81throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 84throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 123throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionEmit);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (8)
55public virtual void EmitCalli(Type functionPointerType) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 106throw new ArgumentException(SR.Argument_NotExceptionType, nameof(excType)); 108ConstructorInfo con = excType.GetConstructor(Type.EmptyTypes) ?? throw new ArgumentException(SR.Arg_NoDefCTorWithoutTypeName, nameof(excType)); 138throw new ArgumentException(SR.NotSupported_OutputStreamUsingTypeBuilder); 142throw new ArgumentException(SR.Argument_EmitWriteLineType, nameof(localBuilder)); 170throw new NotSupportedException(SR.NotSupported_OutputStreamUsingTypeBuilder); 174throw new ArgumentException(SR.Argument_EmitWriteLineType, nameof(fld)); 258throw new NotSupportedException(SR.NotSupported_EmitDebugInfo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\LocalBuilder.cs (1)
36protected virtual void SetLocalSymInfoCore(string name) => throw new NotSupportedException(SR.NotSupported_EmitDebugInfo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (1)
27throw new ArgumentException(SR.Arg_EmptyArray, nameof(names));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (3)
56public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 91throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (2)
110throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (1)
66throw new InvalidOperationException(SR.InvalidOperation_NotADebugModule);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (29)
76throw new ArgumentException(SR.Argument_BadSigFormat); 137throw new ArgumentException(SR.Argument_BadSigFormat); 167throw new ArgumentException(SR.Argument_BadSigFormat); 185throw new ArgumentException(SR.Argument_BadSigFormat); 303throw new ArgumentException(SR.Argument_HasToBeArrayClass); 308public override Guid GUID => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 317throw new NotSupportedException(SR.NotSupported_NonReflectedType); 343public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 376throw new NotSupportedException(SR.NotSupported_NonReflectedType); 382throw new NotSupportedException(SR.NotSupported_NonReflectedType); 389throw new NotSupportedException(SR.NotSupported_NonReflectedType); 395throw new NotSupportedException(SR.NotSupported_NonReflectedType); 401throw new NotSupportedException(SR.NotSupported_NonReflectedType); 407throw new NotSupportedException(SR.NotSupported_NonReflectedType); 414throw new NotSupportedException(SR.NotSupported_NonReflectedType); 420throw new NotSupportedException(SR.NotSupported_NonReflectedType); 426throw new NotSupportedException(SR.NotSupported_NonReflectedType); 432throw new NotSupportedException(SR.NotSupported_NonReflectedType); 439throw new NotSupportedException(SR.NotSupported_NonReflectedType); 445throw new NotSupportedException(SR.NotSupported_NonReflectedType); 451throw new NotSupportedException(SR.NotSupported_NonReflectedType); 457throw new NotSupportedException(SR.NotSupported_NonReflectedType); 463throw new NotSupportedException(SR.NotSupported_NonReflectedType); 469throw new NotSupportedException(SR.NotSupported_NonReflectedType); 481throw new NotSupportedException(SR.NotSupported_NonReflectedType); 487throw new NotSupportedException(SR.NotSupported_NonReflectedType); 544throw new NotSupportedException(SR.NotSupported_NonReflectedType); 549throw new NotSupportedException(SR.NotSupported_NonReflectedType); 554throw new NotSupportedException(SR.NotSupported_NonReflectedType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (18)
92throw new ArgumentException(SR.Arg_EmptyArray, nameof(names)); 130throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeOptionalCustomModifiers), nameof(parameterTypes))); 133throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeRequiredCustomModifiers), nameof(parameterTypes))); 338throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type)); 350throw new ArgumentException(SR.Argument_NeedGenericMethodDefinition, nameof(method)); 355throw new ArgumentException(SR.Argument_MethodNeedGenericDeclaringType, nameof(method)); 360throw new ArgumentException(SR.Argument_InvalidMethodDeclaringType, nameof(type)); 373throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type)); 385throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type)); 390throw new ArgumentException(SR.Argument_ConstructorNeedGenericDeclaringType, nameof(constructor)); 395throw new ArgumentException(SR.Argument_InvalidConstructorDeclaringType, nameof(type)); 406throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type)); 418throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type)); 423throw new ArgumentException(SR.Argument_FieldNeedGenericDeclaringType, nameof(field)); 428throw new ArgumentException(SR.Argument_InvalidFieldDeclaringType, nameof(type)); 439throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (14)
164protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetConstructor))); } 167public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetConstructor))); } 170protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetMethod))); } 173public override MethodInfo[] GetMethods(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetMethod))); } 176public override FieldInfo GetField(string name, BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetField))); } 179public override FieldInfo[] GetFields(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetField))); } 255public override Type MakeGenericType(params Type[] inst) { throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericTypeDefinition, this)); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (2)
64MethodInfo addMethod = GetAddMethod(nonPublic: false) ?? throw new InvalidOperationException(SR.InvalidOperation_NoPublicAddMethod); 72MethodInfo removeMethod = GetRemoveMethod(nonPublic: false) ?? throw new InvalidOperationException(SR.InvalidOperation_NoPublicRemoveMethod);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ExceptionHandlingClause.cs (1)
16public virtual int FilterOffset => throw new InvalidOperationException(SR.Arg_EHClauseNotFilter);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (3)
72public virtual void SetValueDirect(TypedReference obj, object value) { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); } 74public virtual object? GetValueDirect(TypedReference obj) { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); } 76public virtual object? GetRawConstantValue() { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\InvalidFilterCriteriaException.cs (2)
15: this(SR.Arg_InvalidFilterCriteriaException) 25: base(message ?? SR.Arg_InvalidFilterCriteriaException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
51public virtual Type[] GetGenericArguments() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInfo.cs (5)
18public override Type[] GetGenericArguments() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 19public virtual MethodInfo GetGenericMethodDefinition() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 23public virtual MethodInfo MakeGenericMethod(params Type[] typeArguments) { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 29public virtual Delegate CreateDelegate(Type delegateType) { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 30public virtual Delegate CreateDelegate(Type delegateType, object? target) { throw new NotSupportedException(SR.NotSupported_SubclassOverride); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (27)
70public override bool Equals([NotNullWhen(true)] object? obj) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 71public override bool Equals(Type? other) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 72public override int GetHashCode() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 86=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 89public override int MetadataToken => throw new NotSupportedException(SR.NotSupported_ModifiedType); 92public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_ModifiedType); 97public override Type? BaseType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 98public override Type? DeclaringType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 99public override Type? ReflectedType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 103CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 106public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 111=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 114public override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 117public override FieldInfo? GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 120public override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 128public override Type? GetInterface(string name, bool ignoreCase) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 131public override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 135public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 138public override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 143=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 146public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 149public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 152public override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 155public override Type? GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 158public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 161public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 163public override MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
184throw new InvalidFilterCriteriaException(SR.InvalidFilterCriteriaException_CritString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (5)
66throw new SerializationException(SR.Serialization_InsufficientState); 78throw new SerializationException(SR.Serialization_BadParameterInfo); 87throw new SerializationException(SR.Serialization_BadParameterInfo); 96throw new SerializationException(SR.Serialization_BadParameterInfo); 99throw new SerializationException(SR.Serialization_NoParameterInfo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterModifier.cs (1)
13throw new ArgumentException(SR.Arg_ParmArraySize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Pointer.cs (3)
28throw new ArgumentException(SR.Arg_MustBePointer, nameof(ptr)); 30throw new ArgumentException(SR.Arg_MustBeType, nameof(type)); 41throw new ArgumentException(SR.Arg_MustBePointer, nameof(ptr));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureByRefType.cs (1)
20public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (2)
58public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 63public sealed override int GenericParameterPosition => throw new InvalidOperationException(SR.Arg_NotGenericParameter);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureFunctionPointerType.cs (2)
69public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 70public sealed override Type GetGenericTypeDefinition() => throw new InvalidOperationException(SR.InvalidOperation_NotGenericType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureGenericParameterType.cs (4)
22public sealed override bool IsEnum => throw new NotSupportedException(SR.NotSupported_SignatureType); 30protected sealed override bool IsValueTypeImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 33public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 34public sealed override Type GetGenericTypeDefinition() => throw new InvalidOperationException(SR.InvalidOperation_NotGenericType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureHasElementType.cs (2)
35public sealed override Type GetGenericTypeDefinition() => throw new InvalidOperationException(SR.InvalidOperation_NotGenericType); 38public sealed override int GenericParameterPosition => throw new InvalidOperationException(SR.Arg_NotGenericParameter);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignaturePointerType.cs (1)
20public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (62)
58public sealed override Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_SignatureType); // There is no SignatureType for type definition types so it would never be legal to call this. 85public sealed override Assembly Assembly => throw new NotSupportedException(SR.NotSupported_SignatureType); 86public sealed override Module Module => throw new NotSupportedException(SR.NotSupported_SignatureType); 88public sealed override Type ReflectedType => throw new NotSupportedException(SR.NotSupported_SignatureType); 89public sealed override Type BaseType => throw new NotSupportedException(SR.NotSupported_SignatureType); 92public sealed override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_SignatureType); 93public sealed override bool IsAssignableFrom([NotNullWhen(true)] Type? c) => throw new NotSupportedException(SR.NotSupported_SignatureType); 94public sealed override int MetadataToken => throw new NotSupportedException(SR.NotSupported_SignatureType); 95public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => throw new NotSupportedException(SR.NotSupported_SignatureType); 97public sealed override Type DeclaringType => throw new NotSupportedException(SR.NotSupported_SignatureType); 98public sealed override MethodBase DeclaringMethod => throw new NotSupportedException(SR.NotSupported_SignatureType); 100public sealed override Type[] GetGenericParameterConstraints() => throw new NotSupportedException(SR.NotSupported_SignatureType); 101public sealed override GenericParameterAttributes GenericParameterAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType); 102public sealed override bool IsEnumDefined(object value) => throw new NotSupportedException(SR.NotSupported_SignatureType); 103public sealed override string GetEnumName(object value) => throw new NotSupportedException(SR.NotSupported_SignatureType); 104public sealed override string[] GetEnumNames() => throw new NotSupportedException(SR.NotSupported_SignatureType); 105public sealed override Type GetEnumUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SignatureType); 107public sealed override Array GetEnumValues() => throw new NotSupportedException(SR.NotSupported_SignatureType); 108public sealed override Guid GUID => throw new NotSupportedException(SR.NotSupported_SignatureType); 109protected sealed override TypeCode GetTypeCodeImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 110protected sealed override TypeAttributes GetAttributeFlagsImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 113public sealed override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 116public sealed override EventInfo GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 119public sealed override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 122public sealed override FieldInfo GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 125public sealed override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 128public sealed override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 131public sealed override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 134public sealed override Type GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 137public sealed override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 140public sealed override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 143public sealed override object InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? namedParameters) => throw new NotSupportedException(SR.NotSupported_SignatureType); 146protected sealed override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 149protected sealed override MethodInfo GetMethodImpl(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 152protected sealed override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder? binder, Type? returnType, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 155public sealed override MemberInfo[] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter? filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType); 158public sealed override MemberInfo[] GetMember(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 161public sealed override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 170public sealed override MemberInfo[] GetDefaultMembers() => throw new NotSupportedException(SR.NotSupported_SignatureType); 173public sealed override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_SignatureType); 175public sealed override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 176public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 177public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 178public sealed override IList<CustomAttributeData> GetCustomAttributesData() => throw new NotSupportedException(SR.NotSupported_SignatureType); 182public sealed override Type GetInterface(string name, bool ignoreCase) => throw new NotSupportedException(SR.NotSupported_SignatureType); 185protected sealed override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 187protected sealed override bool IsCOMObjectImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 188protected sealed override bool IsPrimitiveImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 189public sealed override IEnumerable<CustomAttributeData> CustomAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType); 192public sealed override Type[] FindInterfaces(TypeFilter filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType); 193public sealed override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) => throw new NotSupportedException(SR.NotSupported_SignatureType); 194protected sealed override bool IsContextfulImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 196public sealed override bool IsEquivalentTo([NotNullWhen(true)] Type? other) => throw new NotSupportedException(SR.NotSupported_SignatureType); 197public sealed override bool IsInstanceOfType([NotNullWhen(true)] object? o) => throw new NotSupportedException(SR.NotSupported_SignatureType); 198protected sealed override bool IsMarshalByRefImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 199public sealed override bool IsSecurityCritical => throw new NotSupportedException(SR.NotSupported_SignatureType); 200public sealed override bool IsSecuritySafeCritical => throw new NotSupportedException(SR.NotSupported_SignatureType); 201public sealed override bool IsSecurityTransparent => throw new NotSupportedException(SR.NotSupported_SignatureType); 203public sealed override bool IsSerializable => throw new NotSupportedException(SR.NotSupported_SignatureType); 204public sealed override bool IsSubclassOf(Type c) => throw new NotSupportedException(SR.NotSupported_SignatureType); 207public sealed override StructLayoutAttribute StructLayoutAttribute => throw new NotSupportedException(SR.NotSupported_SignatureType); 209public sealed override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\StrongNameKeyPair.cs (4)
14throw new PlatformNotSupportedException(SR.PlatformNotSupported_StrongNameSigning); 17throw new PlatformNotSupportedException(SR.PlatformNotSupported_StrongNameSigning); 25throw new PlatformNotSupportedException(SR.PlatformNotSupported_StrongNameSigning); 28throw new PlatformNotSupportedException(SR.PlatformNotSupported_StrongNameSigning);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TargetInvocationException.cs (2)
14: base(SR.Arg_TargetInvocationException, inner) 20: base(message ?? SR.Arg_TargetInvocationException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TargetParameterCountException.cs (3)
14: base(SR.Arg_TargetParameterCountException) 20: base(message ?? SR.Arg_TargetParameterCountException) 26: base(message ?? SR.Arg_TargetParameterCountException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (3)
44throw new MissingManifestResourceException($"{SR.MissingManifestResource_NoNeutralDisk}{Environment.NewLineConst}baseName: {_mediator.BaseNameField} fileName: {_mediator.GetResourceFileName(culture)}"); 103throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResMgrBadResSet_Type, _mediator.UserResourceSet.AssemblyQualifiedName), e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (15)
140throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_FallbackLoc, fallbackLocation)); 158throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_Asm_Culture, a, attr.CultureName), e); 209throw new NotSupportedException(SR.Format(SR.NotSupported_ObsoleteResourcesFile, _mediator.MainAssembly.GetName().Name)); 233throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed); 265throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResMgrBadResSet_Type, _mediator.UserResourceSet.AssemblyQualifiedName), e); 342throw new MissingManifestResourceException(SR.Format(SR.MissingManifestResource_MultipleBlobs, name, satellite.ToString())); 433throw new MissingSatelliteAssemblyException(SR.Format(SR.MissingSatelliteAssembly_Culture_Name, _mediator.NeutralResourcesCulture, satAssemName), missingCultureName); 475SR.Format(SR.MissingManifestResource_NoNeutralAsm,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\MissingManifestResourceException.cs (3)
16: base(SR.Arg_MissingManifestResourceException) 22: base(message ?? SR.Arg_MissingManifestResourceException) 28: base(message ?? SR.Arg_MissingManifestResourceException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\MissingSatelliteAssemblyException.cs (4)
20: base(SR.MissingSatelliteAssembly_Default) 26: base(message ?? SR.MissingSatelliteAssembly_Default) 32: base(message ?? SR.MissingSatelliteAssembly_Default) 39: base(message ?? SR.MissingSatelliteAssembly_Default, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\NeutralResourcesLanguageAttribute.cs (2)
25throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_FallbackLoc, location));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (8)
192throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 208throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 214throw new ArgumentException(SR.Arg_ResMgrNotResSet, nameof(usingResourceSet)); 225throw new ArgumentException(SR.Argument_MustBeRuntimeType); 540throw new ArgumentException(SR.Format(SR.Arg_InvalidSatelliteContract_Asm_Ver, a, v)); 733throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResourceNotStream_Name, name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (14)
47throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed); 52throw new NotSupportedException(SR.NotSupported_ResourceObjectSerialization); 57throw new NotSupportedException(SR.BinaryFormatter_SerializationDisallowed); 73throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResType_SerBlobMismatch, type.FullName, graph.GetType().FullName)); 126throw new InvalidOperationException(SR.ResourceReaderIsClosed); 136throw new ArgumentException(SR.Format(SR.Arg_ResourceNameNotExist, resourceName)); 149throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesNameInvalidOffset, numBytesToSkip)); 156throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dPos)); 173throw new BadImageFormatException(SR.BadImageFormat_InvalidType); 182throw new FormatException(SR.BadImageFormat_ResourceNameCorrupted);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (68)
125throw new ArgumentException(SR.Argument_StreamNotReadable); 184throw new BadImageFormatException(SR.BadImageFormat_NegativeStringLength); 222throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesNameInvalidOffset, r)); 235throw new InvalidOperationException(SR.ResourceReaderIsClosed); 318throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos)); 339throw new BadImageFormatException(SR.BadImageFormat_NegativeStringLength); 348throw new BadImageFormatException(SR.BadImageFormat_ResourcesNameTooLong); 364throw new BadImageFormatException(SR.BadImageFormat_ResourceNameCorrupted); 387throw new BadImageFormatException(SR.BadImageFormat_NegativeStringLength); 393throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourcesIndexTooLong, index)); 416throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset)); 430throw new EndOfStreamException(SR.Format(SR.BadImageFormat_ResourceNameCorrupted_NameIndex, index)); 436throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset)); 457throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos)); 483throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResourceNotString_Type, FindType(typeIndex).FullName)); 496throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResourceNotString_Type, typeString)); 545throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch, eof); 549throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch, e); 627throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch, eof); 631throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch, e); 704throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 711throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 718throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 732throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 744throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 758throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch); 786throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted, eof); 790throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted, e); 804throw new ArgumentException(SR.Resources_StreamNotValid); 813throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 828throw new NotSupportedException(SR.Format(SR.NotSupported_WrongResourceReader_Type, readerType)); 842throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version)); 848throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 856throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 898throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 919throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 930throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 946throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 955throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 966throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed); 971throw new BadImageFormatException(SR.BadImageFormat_InvalidType); 1015throw new NotSupportedException(SR.NotSupported_ResourceObjectSerialization, fileNotFoundException); 1085if (_currentName == ENUM_DONE) throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 1086if (!_currentIsValid) throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1087if (_reader._resCache == null) throw new InvalidOperationException(SR.ResourceReaderIsClosed); 1102if (_currentName == ENUM_DONE) throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 1103if (!_currentIsValid) throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1104if (_reader._resCache == null) throw new InvalidOperationException(SR.ResourceReaderIsClosed); 1139if (_currentName == ENUM_DONE) throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 1140if (!_currentIsValid) throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1141if (_reader._resCache == null) throw new InvalidOperationException(SR.ResourceReaderIsClosed); 1153if (_reader._resCache == null) throw new InvalidOperationException(SR.ResourceReaderIsClosed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (9)
126Dictionary<object, object?> table = _table ?? throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet); // Avoid a race with Dispose 143throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResourceNotString_Name, name)); 154throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResourceNotString_Name, name)); 167throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResourceNotString_Name, name)); 204Dictionary<object, object?> copyOfTable = _table ?? throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet); // Avoid a race with Dispose 212Dictionary<object, object?> copyOfTable = _table ?? throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet); // Avoid a race with Dispose
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
237ResourceReader reader = _defaultReader ?? throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet); 270throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\AmbiguousImplementationException.cs (3)
14: base(SR.Arg_AmbiguousImplementationException_NoMessage) 20: base(message ?? SR.Arg_AmbiguousImplementationException_NoMessage) 26: base(message ?? SR.Arg_AmbiguousImplementationException_NoMessage, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (1)
901throw new InvalidOperationException(SR.InvalidOperation_CollectionCorrupted);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ContractHelper.cs (21)
36throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, failureKind), nameof(failureKind)); 104return hasConditionText ? SR.Format(SR.AssertionFailed_Cnd, conditionText) : SR.AssertionFailed; 107return hasConditionText ? SR.Format(SR.AssumptionFailed_Cnd, conditionText) : SR.AssumptionFailed; 110return hasConditionText ? SR.Format(SR.PreconditionFailed_Cnd, conditionText) : SR.PreconditionFailed; 113return hasConditionText ? SR.Format(SR.PostconditionFailed_Cnd, conditionText) : SR.PostconditionFailed; 116return hasConditionText ? SR.Format(SR.InvariantFailed_Cnd, conditionText) : SR.InvariantFailed; 119return hasConditionText ? SR.Format(SR.PostconditionOnExceptionFailed_Cnd, conditionText) : SR.PostconditionOnExceptionFailed; 123return SR.AssumptionFailed;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeWrappedException.cs (1)
21: base(SR.RuntimeWrappedException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\SwitchExpressionException.cs (6)
19: base(SR.Arg_SwitchExpressionException) { } 22base(SR.Arg_SwitchExpressionException, innerException) 38public SwitchExpressionException(string? message) : base(message ?? SR.Arg_SwitchExpressionException) { } 41: base(message ?? SR.Arg_SwitchExpressionException, innerException) { } 62string valueMessage = SR.Format(SR.SwitchExpressionException_UnmatchedValue, UnmatchedValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionHandling.cs (1)
42throw new InvalidOperationException(SR.InvalidOperation_CannotRegisterSecondHandler);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\GCSettings.cs (1)
46throw new InvalidOperationException(SR.InvalidOperation_SetLatencyModeNoGC);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (3)
25throw new ArgumentException(SR.ArgumentException_NotIsomorphic); 31throw new ArgumentException(SR.Argument_StructArrayTooLarge); 39throw new IndexOutOfRangeException(SR.IndexOutOfRange_ArrayWithOffset);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComEventsHelpers.NoCom.cs (2)
15throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 20throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\COMException.cs (4)
21: base(SR.Arg_COMException) 27: base(message ?? SR.Arg_COMException) 33: base(message ?? SR.Arg_COMException, inner) 39: base(message ?? SR.Arg_COMException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (7)
1114throw new InvalidOperationException(SR.InvalidOperation_SuppliedInnerMustBeMarkedAggregation); 1583throw new InvalidOperationException(SR.InvalidOperation_ResetGlobalComWrappersInstance); 1607throw new InvalidOperationException(SR.InvalidOperation_ResetGlobalComWrappersInstance); 1652throw new NotImplementedException(SR.NotImplemented_CreateObjectWithUserState); 1665throw new NotSupportedException(SR.InvalidOperation_ComInteropRequireComWrapperInstance); 1696throw new NotSupportedException(SR.InvalidOperation_ComInteropRequireComWrapperInstance); 1706throw new NotSupportedException(SR.InvalidOperation_ComInteropRequireComWrapperTrackerInstance);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CurrencyWrapper.cs (1)
20throw new ArgumentException(SR.Arg_MustBeDecimal, nameof(obj));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ErrorWrapper.cs (1)
20throw new ArgumentException(SR.Arg_MustBeInt32, nameof(errorCode));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (4)
18: base(SR.Arg_ExternalException) 24: base(message ?? SR.Arg_ExternalException) 30: base(message ?? SR.Arg_ExternalException, inner) 36: base(message ?? SR.Arg_ExternalException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (3)
39throw new ArgumentOutOfRangeException(nameof(type), SR.ArgumentOutOfRange_Enum); 44throw new ArgumentException(SR.ArgumentException_NotIsomorphic, nameof(value)); 100throw new ArgumentException(SR.ArgumentException_NotIsomorphic, nameof(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\InvalidComObjectException.cs (3)
20: base(SR.Arg_InvalidComObjectException) 26: base(message ?? SR.Arg_InvalidComObjectException) 32: base(message ?? SR.Arg_InvalidComObjectException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\InvalidOleVariantTypeException.cs (3)
19: base(SR.Arg_InvalidOleVariantTypeException) 25: base(message ?? SR.Arg_InvalidOleVariantTypeException) 31: base(message ?? SR.Arg_InvalidOleVariantTypeException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (14)
112throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(t)); 116throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t)); 127throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(T)); 565throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(structureType)); 569throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(structureType)); 613throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(T)); 1157throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 1175throw new ArgumentException(SR.Argument_TypeMustNotBeComImport, nameof(type)); 1179throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type)); 1201throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(t)); 1205throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t)); 1213throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(t)); 1226throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(TDelegate)); 1234throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(TDelegate));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.NoCom.cs (28)
27throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 34throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 44throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 52throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 58throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 64throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 70throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 77throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 84throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 90throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 96throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 102throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 108throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 115throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 122throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 128throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 134throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 141throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 148throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 155throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 162throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 168throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 174throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 181throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 190throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 196throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 216throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 222throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
164throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MarshalDirectiveException.cs (3)
18: base(SR.Arg_MarshalDirectiveException) 24: base(message ?? SR.Arg_MarshalDirectiveException) 30: base(message ?? SR.Arg_MarshalDirectiveException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (11)
154throw new PlatformNotSupportedException(SR.ComVariant_SafeArray_PlatformNotSupported); 359throw new ArgumentException(SR.UnsupportedType, nameof(T)); 385throw new ArgumentException(SR.ComVariant_VT_DECIMAL_NotSupported_CreateRaw, nameof(vt)); 389throw new ArgumentException(SR.ComVariant_VT_VARIANT_In_Variant, nameof(vt)); 393throw new PlatformNotSupportedException(SR.ComVariant_SafeArray_PlatformNotSupported); 416_ => throw new ArgumentException(SR.Format(SR.ComVariant_SizeMustMatchVariantSize, nameof(T), nameof(vt))) 431throw new InvalidOperationException(SR.Format(SR.ComVariant_TypeIsNotSupportedType, VarType, string.Join(", ", requiredType.ToArray()))); 550throw new ArgumentException(SR.UnsupportedType, nameof(T)); 575throw new ArgumentException(SR.ComVariant_VT_DECIMAL_NotSupported_RawDataRef, nameof(T));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (6)
90throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 125throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 207throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 217throw new InvalidOperationException(SR.InvalidOperation_CannotRegisterSecondResolver); 285throw new EntryPointNotFoundException(SR.Format(SR.Arg_EntryPointNotFoundExceptionParameterizedNoLibrary, symbolName));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.Unix.cs (2)
45throw new DllNotFoundException(SR.Format(SR.DllNotFound_Linux, libraryName, _errorMessage));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
789throw new ArgumentException(SR.Arg_MustBeNFloat);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeArrayRankMismatchException.cs (3)
19: base(SR.Arg_SafeArrayRankMismatchException) 25: base(message ?? SR.Arg_SafeArrayRankMismatchException) 31: base(message ?? SR.Arg_SafeArrayRankMismatchException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeArrayTypeMismatchException.cs (3)
19: base(SR.Arg_SafeArrayTypeMismatchException) 25: base(message ?? SR.Arg_SafeArrayTypeMismatchException) 31: base(message ?? SR.Arg_SafeArrayTypeMismatchException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (6)
92throw new ArgumentOutOfRangeException(nameof(numBytes), SR.ArgumentOutOfRange_AddressSpace); 95throw new ArgumentOutOfRangeException(nameof(numBytes), SR.ArgumentOutOfRange_UIntPtrMax); 220throw new ArgumentException(SR.Argument_InvalidOffLen); 308throw new ArgumentException(SR.Argument_InvalidOffLen); 376throw new ArgumentException(SR.Arg_BufferTooSmall); 381return new InvalidOperationException(SR.InvalidOperation_MustCallInitialize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TrackerObjectManager.cs (1)
59throw new NotSupportedException(SR.InvalidOperation_ComInteropRequireComWrapperTrackerInstance);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
120internal string DisplayString => IsSupported ? ToString() : SR.NotSupported_Type;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
119internal string DisplayString => IsSupported ? ToString() : SR.NotSupported_Type;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
119internal string DisplayString => IsSupported ? ToString() : SR.NotSupported_Type;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
119internal string DisplayString => IsSupported ? ToString() : SR.NotSupported_Type;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (14)
334throw new InvalidOperationException(SR.InvalidOperation_AssemblyLocationOverrideAlreadySet); 380throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, assemblyPath), nameof(assemblyPath)); 398throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, nativeImagePath), nameof(nativeImagePath)); 403throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, assemblyPath), nameof(assemblyPath)); 428throw new BadImageFormatException(SR.BadImageFormat_EmptyAssembly); 464throw new BadImageFormatException(SR.BadImageFormat_BadILFormat); 484throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, unmanagedDllPath), nameof(unmanagedDllPath)); 503throw new InvalidOperationException(SR.AssemblyLoadContext_Unload_CannotUnloadIfNotCollectible); 535throw new InvalidOperationException(SR.AssemblyLoadContext_Verify_NotUnloading); 606throw new ArgumentException(SR.Arg_MustBeRuntimeAssembly, nameof(activating));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (3)
155throw new InsufficientMemoryException(SR.InsufficientMemory_MemFailPoint_TooBig); 245InsufficientMemoryException e = new InsufficientMemoryException(SR.InsufficientMemory_MemFailPoint); 257InsufficientMemoryException e = new InsufficientMemoryException(SR.InsufficientMemory_MemFailPoint_VAFrag);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\OptionalFieldAttribute.cs (1)
18throw new ArgumentException(SR.Serialization_OptionalFieldVersionValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationException.cs (3)
18: base(SR.SerializationException) 24: base(message ?? SR.SerializationException) 30: base(message ?? SR.SerializationException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (4)
231throw new SerializationException(SR.Serialization_SameNameTwice); 307throw new SerializationException(SR.Format(SR.Serialization_NotFound, name)); 340throw new ArgumentException(SR.Argument_MustBeRuntimeType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.SerializationGuard.cs (2)
68throw new SerializationException(SR.Format(SR.Serialization_DangerousDeserialization_Switch, SwitchPrefix + switchSuffix));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfoEnumerator.cs (4)
79throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 97throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 108throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 119throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (6)
120throw new ArgumentException(SR.Argument_FrameworkNameTooShort, nameof(frameworkName)); 131throw new ArgumentException(SR.Argument_FrameworkNameInvalid, nameof(frameworkName)); 148throw new ArgumentException(SR.Argument_FrameworkNameInvalid, nameof(frameworkName)); 173throw new ArgumentException(SR.Argument_FrameworkNameInvalidVersion, nameof(frameworkName), e); 188throw new ArgumentException(SR.Argument_FrameworkNameInvalid, nameof(frameworkName)); 194throw new ArgumentException(SR.Argument_FrameworkNameMissingVersion, nameof(frameworkName));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\VersioningHelper.cs (11)
37throw new ArgumentException(SR.Format(SR.Argument_ResourceScopeWrongDirection, fromResType, toResType), nameof(from)); 42throw new ArgumentNullException(nameof(type), SR.ArgumentNull_TypeRequiredByResourceScope); 112throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeTypeBits, consumeAsScope), nameof(consumeAsScope)); 126throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeTypeBits, calleeScope), nameof(calleeScope)); 147throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeVisibilityBits, consumeAsScope), nameof(consumeAsScope)); 161throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeVisibilityBits, calleeScope), nameof(calleeScope));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (4)
67throw new ArgumentException(SR.Arg_MustBeSByte); 249throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "SByte", "DateTime")); 1400static string IBinaryIntegerParseAndFormatInfo<sbyte>.OverflowMessage => SR.Overflow_SByte;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
238throw new ArgumentException(SR.Argument_SearchValues_UnsupportedStringComparison, nameof(comparisonType));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\CryptographicException.cs (4)
16: base(SR.Arg_CryptographyException) 21: base(SR.Arg_CryptographyException) 27: base(message ?? SR.Arg_CryptographyException) 32: base(message ?? SR.Arg_CryptographyException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\PermissionSet.cs (3)
26public static byte[] ConvertPermissionSet(string inFormat, byte[] inData, string outFormat) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } 31public void Deny() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } 43public void PermitOnly() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (5)
80throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_Capacity); 178throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString); 225throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString); 257throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString); 298throw new InvalidOperationException(SR.InvalidOperation_ReadOnly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (20)
39throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag)); 49throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag)); 52throw new ArgumentException(SR.Format(SR.Argument_InvalidElementText, text)); 68throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, value)); 115throw new ArgumentException(SR.Format(SR.Argument_InvalidElementName, attrName)); 118throw new ArgumentException(SR.Format(SR.Argument_InvalidElementValue, attrValue)); 141throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, value)); 159throw new ArgumentException(SR.ArgumentNull_Child); 183throw new ArgumentException(SR.Argument_AttributeNamesMustBeUnique); 197throw new ArgumentException(SR.Format(SR.Argument_InvalidElementName, name)); 200throw new ArgumentException(SR.Format(SR.Argument_InvalidElementValue, value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityException.cs (5)
23: base(SR.Arg_SecurityException) 29: base(message ?? SR.Arg_SecurityException) 35: base(message ?? SR.Arg_SecurityException, inner) 41: base(message ?? SR.Arg_SecurityException) 48: base(message ?? SR.Arg_SecurityException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\VerificationException.cs (3)
15: base(SR.Verification_Exception) 21: base(message ?? SR.Verification_Exception) 27: base(message ?? SR.Verification_Exception, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (5)
268return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeSingle); 450throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Single", "Char")); 510throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Single", "DateTime"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
195throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 206throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (1)
448throw new ArgumentException(SR.Arg_MustBeNullTerminatedString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\StackOverflowException.cs (3)
17: base(SR.Arg_StackOverflowException) 23: base(message ?? SR.Arg_StackOverflowException) 29: base(message ?? SR.Arg_StackOverflowException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (10)
131throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart)); 137throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart)); 147throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart), assemblyNameException); 180SR.Format(SR.Argument_StartupHookAssemblyLoadFailed, startupHook.Path ?? startupHook.AssemblyName.ToString()), 217throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSignature,
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (10)
161throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 289throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 295throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 374throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 383throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 407throw new ArgumentException(SR.Arg_MustBeString); 468throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 622throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 680throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 1091throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType));
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (4)
161throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_PartialWCHAR); 167throw new ArgumentOutOfRangeException(nameof(ptr), SR.ArgumentOutOfRange_PartialWCHAR); 221throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_PartialWCHAR); 280throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_PartialWCHAR);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (5)
1205throw new ArgumentOutOfRangeException(nameof(startIndex), startIndex < 0 ? SR.ArgumentOutOfRange_StartIndex : SR.ArgumentOutOfRange_StartIndexLargerThanLength); 1222_ => throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)), 2545throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_StartIndexLargerThanLength); 2550throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (4)
126_ => throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)), 339_ => throw (value is null ? new ArgumentNullException(nameof(value)) : new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType))), 540_ => throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)), 669_ => throw (value is null ? new ArgumentNullException(nameof(value)) : new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType))),
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (3)
42_ => throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)), 177throw new ArgumentException(SR.Argument_ImplementIComparable); 233throw new ArgumentException(SR.Argument_InvalidFlag, nameof(options));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SystemException.cs (1)
15: base(SR.Arg_SystemException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
851throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 868throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (5)
42SR.Argument_FallbackBufferNotEmpty, nameof(value)); 233SR.ArgumentOutOfRange_IndexCountBuffer); 237SR.ArgumentOutOfRange_IndexCountBuffer); 258throw new ArgumentException(SR.Argument_ConversionOverflow); 300throw new ArgumentException(SR.Argument_ConversionOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (3)
66SR.Format(SR.Argument_InvalidCodePageBytesIndex, 80: base(SR.Arg_ArgumentException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (9)
127throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 134throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 150throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 182throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 189throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 199throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 241throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 312SR.Format(SR.Argument_RecursiveFallbackBytes,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (5)
59SR.ArgumentOutOfRange_IndexCountBuffer); 98SR.ArgumentOutOfRange_IndexCountBuffer); 102SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 151SR.ArgumentOutOfRange_IndexCountBuffer); 155SR.ArgumentOutOfRange_IndexCountBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderReplacementFallback.cs (1)
59throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(replacement));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (5)
42SR.Argument_FallbackBufferNotEmpty, nameof(value)); 231SR.ArgumentOutOfRange_IndexCountBuffer); 235SR.ArgumentOutOfRange_IndexCountBuffer); 258throw new ArgumentException(SR.Argument_ConversionOverflow); 299throw new ArgumentException(SR.Argument_ConversionOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (13)
39SR.Format(SR.Argument_InvalidCodePageConversionIndex, (int)charUnknown, index), charUnknown, index); 47SR.Format(SR.ArgumentOutOfRange_Range, 0xD800, 0xDBFF)); 52SR.Format(SR.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF)); 59SR.Format(SR.Argument_InvalidCodePageConversionIndex, iTemp, index), charUnknownHigh, charUnknownLow, index); 81: base(SR.Arg_ArgumentException) 111SR.Format(SR.ArgumentOutOfRange_Range, 0xD800, 0xDBFF)); 116SR.Format(SR.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (3)
285throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 357throw new ArgumentException(SR.Format(SR.Argument_RecursiveFallback, charRecursive), "chars");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderLatin1BestFitFallback.cs (4)
57SR.Format(SR.ArgumentOutOfRange_Range, 62SR.Format(SR.ArgumentOutOfRange_Range,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (7)
54SR.ArgumentOutOfRange_IndexCountBuffer); 88SR.ArgumentOutOfRange_IndexCountBuffer); 92SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 137SR.ArgumentOutOfRange_IndexCountBuffer); 141SR.ArgumentOutOfRange_IndexCountBuffer); 243throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, Encoding.EncodingName, _fallbackBuffer.GetType()));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (5)
59throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(replacement)); 122SR.Format(SR.ArgumentOutOfRange_Range, 0xD800, 0xDBFF)); 126SR.Format(SR.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (19)
222throw new ArgumentException(SR.Format(SR.Argument_CodepageNotSupported, codepage), nameof(codepage)); 240string exceptionMessage = SR.Format(SR.Encoding_UTF7_Disabled, moreInfoUrl); 249nameof(codepage), SR.Format(SR.ArgumentOutOfRange_Range, 0, 65535)); 252throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, codepage)); 334throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, _codePage)); 477throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 491throw new InvalidOperationException(SR.InvalidOperation_ReadOnly); 1099SR.Format(SR.Argument_EncodingConversionOverflowBytes, _codePage, EncoderFallback.GetType()), "bytes"); 1119throw new ArgumentException(SR.Argument_ConversionOverflow); 1127SR.Format(SR.Argument_EncodingConversionOverflowChars, _codePage, DecoderFallback.GetType()), "chars"); 1438throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (10)
94SR.Format(SR.Argument_EncodingNotSupported, name), 236case 1200: return SR.Globalization_cp_1200; 237case 1201: return SR.Globalization_cp_1201; 238case 12000: return SR.Globalization_cp_12000; 239case 12001: return SR.Globalization_cp_12001; 240case 20127: return SR.Globalization_cp_20127; 241case 28591: return SR.Globalization_cp_28591; 242case 65000: return SR.Globalization_cp_65000; 243case 65001: return SR.Globalization_cp_65001;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
166throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
1652throw new ArgumentException(SR.Arg_MustBeRune);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (2)
82throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_NeedNonNegNum); 87throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (34)
129throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength); 154throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_Capacity); 203throw new SerializationException(SR.Serialization_StringBuilderMaxCapacity); 214throw new SerializationException(SR.Serialization_StringBuilderCapacity); 274throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_Capacity); 278throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 338throw new ArgumentOutOfRangeException(null, SR.InvalidOperation_ConcurrentOperationsNotSupported); 364throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_StartIndexLargerThanLength); 369throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength); 435throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 714throw new ArgumentOutOfRangeException(nameof(repeatCount), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 760throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 809throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 848throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 865throw new ArgumentOutOfRangeException(nameof(Capacity), SR.ArgumentOutOfRange_Capacity); 903throw new ArgumentException(SR.ArgumentOutOfRange_OffsetOut); 915throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 920throw new ArgumentException(SR.Arg_LongerThanSrcString); 967throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1007throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1335throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1362throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1388throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1403throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1419throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1455throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2135throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2139throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2143throw new ArgumentException(SR.Arg_EmptySpan, nameof(oldValue)); 2264throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2269throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2391throw new ArgumentOutOfRangeException(nameof(valueCount), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 2639throw new ArgumentOutOfRangeException("requiredLength", SR.ArgumentOutOfRange_SmallCapacity); 2728throw new ArgumentOutOfRangeException("requiredLength", SR.ArgumentOutOfRange_SmallCapacity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (3)
77public override long Length => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 81get => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 447=> throw new NotSupportedException(SR.NotSupported_UnseekableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (20)
93throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 150throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 153throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 188throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 191throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 240throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 280throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 283throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 332throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 357throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 382throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType())); 600SR.Format(SR.Argument_RecursiveFallback, charLeftOver), nameof(chars)); 665throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType())); 938SR.Format(SR.Argument_RecursiveFallback, charLeftOver), nameof(chars)); 1759throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1779throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (17)
101throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 158throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 161throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 196throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 199throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 248throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 288throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 291throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 340throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 375throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType().ToString() ?? string.Empty)); 473throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 510throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType())); 817throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 1082throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1108throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (11)
137throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 194throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 197throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 232throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 235throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 284throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 324throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 327throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 376throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 748throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 905throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (2)
819throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 855throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (4)
89message: (charCount < 0) ? SR.ArgumentOutOfRange_NeedNonNegNum : SR.ArgumentOutOfRange_GetByteCountOverflow); 111message: (byteCount < 0) ? SR.ArgumentOutOfRange_NeedNonNegNum : SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\AbandonedMutexException.cs (6)
18: base(SR.Threading_AbandonedMutexException) 24: base(message ?? SR.Threading_AbandonedMutexException) 30: base(message ?? SR.Threading_AbandonedMutexException, inner) 36: base(SR.Threading_AbandonedMutexException) 43: base(message ?? SR.Threading_AbandonedMutexException) 50: base(message ?? SR.Threading_AbandonedMutexException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (1)
368throw new OperationCanceledException(SR.OperationCanceled, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (2)
309return Task.FromException(new ObjectDisposedException(GetType().FullName, SR.CancellationTokenSource_Disposed)); 8790 => throw new ArgumentException(SR.CancellationToken_CreateLinkedToken_TokensIsEmpty),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.cs (7)
71throw new ArgumentException(SR.Argument_InvalidFlag, nameof(mode)); 121throw new WaitHandleCannotBeOpenedException(SR.Format(SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle, name)); 123throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name)); 126throw new WaitHandleCannotBeOpenedException(SR.Format(SR.NamedWaitHandles_ExistingObjectIncompatibleWithCurrentUserOnly, name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Unix.cs (2)
31throw new PlatformNotSupportedException(SR.PlatformNotSupported_NamedSynchronizationPrimitives); 44throw new PlatformNotSupportedException(SR.PlatformNotSupported_NamedSynchronizationPrimitives);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (5)
134throw new InvalidOperationException(SR.InvalidOperation_CannotRestoreUnsuppressedFlow); 453SR.ExecutionContext_ExceptionInAsyncLocalNotification, 462throw new InvalidOperationException(SR.InvalidOperation_NullContext); 586throw new InvalidOperationException(SR.InvalidOperation_CannotUseAFCOtherThread); 601throw new InvalidOperationException(SR.InvalidOperation_AsyncFlowCtrlCtxMismatch);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (4)
252throw new NotSupportedException(SR.NotSupported_ReferenceEnumOrPrimitiveTypeRequired); 502throw new NotSupportedException(SR.NotSupported_ReferenceEnumOrPrimitiveTypeRequired); 659throw new NotSupportedException(SR.NotSupported_IntegerEnumOrPrimitiveTypeRequired); 802throw new NotSupportedException(SR.NotSupported_IntegerEnumOrPrimitiveTypeRequired);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LazyInitializer.cs (4)
67throw new MissingMemberException(SR.Lazy_CreateValue_NoParameterlessCtorForT); 114T value = valueFactory() ?? throw new InvalidOperationException(SR.Lazy_StaticInit_InvalidOperation); 168throw new MissingMemberException(SR.Lazy_CreateValue_NoParameterlessCtorForT); 267throw new InvalidOperationException(SR.Lazy_StaticInit_InvalidOperation);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
407throw new LockRecursionException(SR.Lock_Enter_LockRecursionException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (2)
141throw new InvalidOperationException(SR.Format(SR.ManualResetEventSlim_ctor_TooManyWaiters, NumWaitersState_MaxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Monitor.cs (1)
110throw new ArgumentException(SR.Argument_MustBeFalse, "lockTaken");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.cs (6)
142throw new WaitHandleCannotBeOpenedException(SR.Format(SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle, name)); 144throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name)); 147throw new WaitHandleCannotBeOpenedException(SR.Format(SR.NamedWaitHandles_ExistingObjectIncompatibleWithCurrentUserOnly, name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.Unix.cs (2)
28throw new WaitHandleCannotBeOpenedException(SR.Format(SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle, name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\NamedMutex.Unix.cs (2)
139throw new InvalidOperationException(SR.Arg_InvalidOperationException_CannotReleaseUnownedMutex); 272throw Interop.GetExceptionForIoErrno(errorInfo, SR.Arg_FailedToInitializePThreadMutex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\NamedWaitHandleOptions.cs (2)
140throw new ArgumentException(SR.Format(SR.NamedWaitHandles_IncompatibleNamePrefix, name), nameof(name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (2)
79throw new InvalidOperationException(SR.InvalidOperation_Overlapped_Pack); 104throw new InvalidOperationException(SR.InvalidOperation_Overlapped_Pack);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PreAllocatedOverlapped.PlatformNotSupported.cs (2)
12throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); 19throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (18)
307throw new LockRecursionException(SR.LockRecursionException_ReadAfterWriteNotAllowed); 321throw new LockRecursionException(SR.LockRecursionException_RecursiveReadNotAllowed); 455throw new LockRecursionException(SR.LockRecursionException_RecursiveWriteNotAllowed); 475throw new LockRecursionException(SR.LockRecursionException_WriteAfterReadNotAllowed); 512throw new LockRecursionException(SR.LockRecursionException_WriteAfterReadNotAllowed); 660throw new LockRecursionException(SR.LockRecursionException_RecursiveUpgradeNotAllowed); 665throw new LockRecursionException(SR.LockRecursionException_UpgradeAfterWriteNotAllowed); 674throw new LockRecursionException(SR.LockRecursionException_UpgradeAfterReadNotAllowed); 706throw new LockRecursionException(SR.LockRecursionException_UpgradeAfterReadNotAllowed); 777throw new SynchronizationLockException(SR.SynchronizationLockException_MisMatchedRead); 813throw new SynchronizationLockException(SR.SynchronizationLockException_MisMatchedWrite); 825throw new SynchronizationLockException(SR.SynchronizationLockException_MisMatchedWrite); 831throw new SynchronizationLockException(SR.SynchronizationLockException_MisMatchedWrite); 860throw new SynchronizationLockException(SR.SynchronizationLockException_MisMatchedUpgrade); 872throw new SynchronizationLockException(SR.SynchronizationLockException_MisMatchedUpgrade); 878throw new SynchronizationLockException(SR.SynchronizationLockException_MisMatchedUpgrade); 1255throw new SynchronizationLockException(SR.SynchronizationLockException_IncorrectDispose); 1258throw new SynchronizationLockException(SR.SynchronizationLockException_IncorrectDispose);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (7)
84throw new ArgumentException(SR.Argument_SemaphoreInitialMaximum); 134throw new WaitHandleCannotBeOpenedException(SR.Format(SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle, name)); 136throw new IOException(SR.Format(SR.IO_PathNotFound_Path, name)); 139throw new WaitHandleCannotBeOpenedException(SR.Format(SR.NamedWaitHandles_ExistingObjectIncompatibleWithCurrentUserOnly, name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Unix.cs (2)
31throw new PlatformNotSupportedException(SR.PlatformNotSupported_NamedSynchronizationPrimitives); 44throw new PlatformNotSupportedException(SR.PlatformNotSupported_NamedSynchronizationPrimitives);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreFullException.cs (3)
14public SemaphoreFullException() : base(SR.Threading_SemaphoreFullException) 18public SemaphoreFullException(string? message) : base(message ?? SR.Threading_SemaphoreFullException) 22public SemaphoreFullException(string? message, Exception? innerException) : base(message ?? SR.Threading_SemaphoreFullException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (11)
152nameof(initialCount), initialCount, SR.SemaphoreSlim_ctor_InitialCountWrong); 158throw new ArgumentOutOfRangeException(nameof(maxCount), maxCount, SR.SemaphoreSlim_ctor_MaxCountWrong); 217nameof(timeout), timeout, SR.SemaphoreSlim_Wait_TimeSpanTimeoutWrong); 247nameof(timeout), timeout, SR.SemaphoreSlim_Wait_TimeSpanTimeoutWrong); 270nameof(millisecondsTimeout), millisecondsTimeout, SR.SemaphoreSlim_Wait_TimeoutWrong); 293nameof(millisecondsTimeout), millisecondsTimeout, SR.SemaphoreSlim_Wait_TimeoutWrong); 557nameof(millisecondsTimeout), millisecondsTimeout, SR.SemaphoreSlim_Wait_TimeoutWrong); 589nameof(timeout), timeout, SR.SemaphoreSlim_Wait_TimeSpanTimeoutWrong); 622nameof(timeout), timeout, SR.SemaphoreSlim_Wait_TimeSpanTimeoutWrong); 652nameof(millisecondsTimeout), millisecondsTimeout, SR.SemaphoreSlim_Wait_TimeoutWrong); 839nameof(releaseCount), releaseCount, SR.SemaphoreSlim_Release_CountWrong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (5)
229nameof(timeout), timeout, SR.SpinLock_TryEnter_ArgumentOutOfRange); 281throw new ArgumentException(SR.SpinLock_TryReliableEnter_ArgumentException); 287nameof(millisecondsTimeout), millisecondsTimeout, SR.SpinLock_TryEnter_ArgumentOutOfRange); 418throw new LockRecursionException(SR.SpinLock_TryEnter_LockRecursionException); 574throw new InvalidOperationException(SR.SpinLock_IsHeldByCurrentThread);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SpinWait.cs (2)
286nameof(timeout), timeout, SR.SpinWait_SpinUntil_TimeoutWrong); 308nameof(millisecondsTimeout), millisecondsTimeout, SR.SpinWait_SpinUntil_TimeoutWrong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SynchronizationLockException.cs (3)
18: base(SR.Arg_SynchronizationLockException) 24: base(message ?? SR.Arg_SynchronizationLockException) 30: base(message ?? SR.Arg_SynchronizationLockException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (2)
349IsCompletedSuccessfully ? "" + m_result : SR.TaskT_DebuggerNoResult; 536new ArgumentOutOfRangeException(nameof(options), SR.TaskT_ConfigureAwait_InvalidOptions));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCanceledException.cs (5)
31public TaskCanceledException() : base(SR.TaskCanceledException_ctor_DefaultMessage) 40public TaskCanceledException(string? message) : base(message ?? SR.TaskCanceledException_ctor_DefaultMessage) 51public TaskCanceledException(string? message, Exception? innerException) : base(message ?? SR.TaskCanceledException_ctor_DefaultMessage, innerException) 63public TaskCanceledException(string? message, Exception? innerException, CancellationToken token) : base(message ?? SR.TaskCanceledException_ctor_DefaultMessage, innerException, token) 73base(SR.TaskCanceledException_ctor_DefaultMessage, task != null ? task.CancellationToken : CancellationToken.None)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (1)
329throw new ArgumentException(SR.Task_MustBeCompleted, nameof(completedTask));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (1)
327throw new ArgumentException(SR.Task_MustBeCompleted, nameof(completedTask));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (2)
65SR.TaskExceptionHolder_UnhandledException, 199throw new ArgumentException(SR.TaskExceptionHolder_UnknownExceptionType, nameof(exceptionObject));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (9)
1512throw new ArgumentOutOfRangeException(nameof(creationOptions), SR.Task_FromAsync_LongRunning); 1514throw new ArgumentOutOfRangeException(nameof(creationOptions), SR.Task_FromAsync_PreferFairness); 2349Task task = tasks[i] ?? throw new ArgumentException(SR.Task_MultiTaskContinuation_NullTask, nameof(tasks)); 2971throw new ArgumentException(SR.Task_MultiTaskContinuation_EmptyTaskList, nameof(tasks)); 2979throw new ArgumentException(SR.Task_MultiTaskContinuation_NullTask, nameof(tasks)); 2990throw new ArgumentException(SR.Task_MultiTaskContinuation_EmptyTaskList, nameof(tasks)); 2998throw new ArgumentException(SR.Task_MultiTaskContinuation_NullTask, nameof(tasks)); 3016throw new ArgumentOutOfRangeException(nameof(continuationOptions), SR.Task_ContinueWith_ESandLR); 3035throw new ArgumentOutOfRangeException(nameof(continuationOptions), SR.Task_MultiTaskContinuation_FireOptions);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (3)
196throw new InvalidOperationException(SR.TaskScheduler_InconsistentStateAfterTryExecuteTaskInline); 402throw new InvalidOperationException(SR.TaskScheduler_ExecuteTask_WrongTaskScheduler); 548throw new InvalidOperationException(SR.TaskScheduler_FromCurrentSynchronizationContext_NoCurrent);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskSchedulerException.cs (4)
29public TaskSchedulerException() : base(SR.TaskSchedulerException_ctor_DefaultMessage) // 38public TaskSchedulerException(string? message) : base(message ?? SR.TaskSchedulerException_ctor_DefaultMessage) 49: base(SR.TaskSchedulerException_ctor_DefaultMessage, innerException) 60public TaskSchedulerException(string? message, Exception? innerException) : base(message ?? SR.TaskSchedulerException_ctor_DefaultMessage, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
258SR.Argument_UnexpectedStateForKnownCallback); 669SR.Argument_UnexpectedStateForKnownCallback);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (12)
209throw new InvalidOperationException(SR.InvalidOperation_ThreadWrongThreadStart); 261throw new ThreadStateException(SR.ThreadState_NotStarted); 271throw new InvalidOperationException(SR.Thread_Operation_RequiresCurrentThread); 285throw new InvalidOperationException(SR.Thread_Operation_RequiresCurrentThread); 468throw new PlatformNotSupportedException(SR.PlatformNotSupported_ThreadAbort); 474throw new PlatformNotSupportedException(SR.PlatformNotSupported_ThreadAbort); 480throw new PlatformNotSupportedException(SR.PlatformNotSupported_ThreadAbort); 486throw new PlatformNotSupportedException(SR.PlatformNotSupported_ThreadSuspend); 492throw new PlatformNotSupportedException(SR.PlatformNotSupported_ThreadSuspend); 538throw new ArgumentOutOfRangeException(nameof(state), SR.ArgumentOutOfRange_Enum); 548throw new InvalidOperationException(SR.Thread_GetSetCompressedStack_NotSupported); 554throw new InvalidOperationException(SR.Thread_GetSetCompressedStack_NotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadInterruptedException.cs (1)
38=> SR.Threading_ThreadInterrupted;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (2)
325throw new InvalidOperationException(SR.ThreadLocal_Value_RecursiveCallsToValue); 427throw new InvalidOperationException(SR.ThreadLocal_ValuesNotAvailable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPool.Unix.cs (3)
100throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); 105throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); 109throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.PlatformNotSupported.cs (6)
23throw new ArgumentException(SR.Argument_InvalidHandle, nameof(handle)); 25throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); 33throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); 45throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); 53throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); 61throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
1396throw new ArgumentOutOfRangeException(nameof(millisecondsTimeOutInterval), SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal); 1416throw new ArgumentOutOfRangeException(nameof(millisecondsTimeOutInterval), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadStartException.cs (2)
14: base(SR.Arg_ThreadStartException) 20: base(SR.Arg_ThreadStartException, reason)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadStateException.cs (3)
18: base(SR.Arg_ThreadStateException) 24: base(message ?? SR.Arg_ThreadStateException) 30: base(message ?? SR.Arg_ThreadStateException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
624var e = new InvalidOperationException(SR.InvalidOperation_TimerAlreadyClosed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (4)
252WaitHandle waitHandle = waitHandles[i] ?? throw new ArgumentNullException($"waitHandles[{i}]", SR.ArgumentNull_ArrayElement); 302throw new ArgumentException(SR.Argument_EmptyWaithandleArray, nameof(waitHandles)); 306throw new NotSupportedException(SR.NotSupported_MaxWaitHandles); 496var ex = new InvalidOperationException(SR.InvalidOperation_InvalidHandle);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandleCannotBeOpenedException.cs (3)
14public WaitHandleCannotBeOpenedException() : base(SR.Threading_WaitHandleCannotBeOpenedException) 19public WaitHandleCannotBeOpenedException(string? message) : base(message ?? SR.Threading_WaitHandleCannotBeOpenedException) 24public WaitHandleCannotBeOpenedException(string? message, Exception? innerException) : base(message ?? SR.Threading_WaitHandleCannotBeOpenedException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.ThreadWaitInfo.Unix.cs (1)
270throw new OverflowException(SR.Overflow_MutexReacquireCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.Unix.cs (2)
403throw new PlatformNotSupportedException(SR.PlatformNotSupported_NamedSyncObjectWaitAnyWaitAll); 496throw new InvalidOperationException(SR.Threading_WaitHandleTooManyPosts, ex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.WaitableObject.Unix.cs (4)
329throw new OverflowException(SR.Overflow_MutexReacquireCount); 405throw new OverflowException(SR.Overflow_MutexReacquireCount); 440throw new OverflowException(SR.Overflow_MutexReacquireCount); 764throw new ApplicationException(SR.Arg_SynchronizationLockException);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (165)
83throw new ArgumentException(SR.Format(SR.Argument_TypeContainsReferences, targetType)); 101throw new ArgumentException(SR.Argument_DestinationTooShort, "destination"); 107throw new ArgumentException(SR.Arg_SpanMustHaveElementsForColor, paramName); 113throw new ArgumentException(SR.Argument_InvalidTimeSpanStyles, "styles"); 119throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, value, typeof(TEnum).Name), argumentName); 125throw new ArgumentException(SR.Argument_OverlapAlignmentMismatch); 131throw new ArgumentNullException("value", SR.ArgumentNull_TypedRefType); 143throw new ArgumentException(SR.Format(SR.ArgumentException_ValueTupleIncorrectType, obj.GetType()), "other"); 163throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer)); 218throw new ArgumentOutOfRangeException(nameof(month), month, SR.ArgumentOutOfRange_Month); 224throw new ArgumentOutOfRangeException(nameof(dayNumber), dayNumber, SR.ArgumentOutOfRange_DayNumber); 230throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 236throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 242throw new ArgumentOutOfRangeException(null, SR.Overflow_TimeSpanTooLong); 248throw new ArgumentOutOfRangeException(name, SR.ArgumentOutOfRange_RoundingDigits); 254throw new ArgumentOutOfRangeException(parameterName, value, SR.Format(SR.ArgumentOutOfRange_Range, minInclusive, maxInclusive)); 266throw new OverflowException(SR.Overflow_NegateTwosCompNum); 272throw new OverflowException(SR.Overflow_TimeSpanTooLong); 278throw new OverflowException(SR.Overflow_Duration); 284throw new ArgumentException(SR.Arg_CannotBeNaN); 290throw new ArgumentException(SR.Arg_CannotBeNaN, GetArgumentName(argument)); 309return new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key)); 381new EndOfStreamException(SR.IO_EOF_ReadBeyondEOF); 404throw new NullReferenceException(SR.Arg_NullArgumentNullRef); 428throw new NotSupportedException(SR.NotSupported_UnseekableStream); 434throw new NotSupportedException(SR.NotSupported_UnreadableStream); 440throw new NotSupportedException(SR.NotSupported_UnwritableStream); 458throw new ObjectDisposedException(objectName, SR.ObjectDisposed_StreamClosed); 464throw new ObjectDisposedException(null, SR.ObjectDisposed_FileClosed); 500throw new OutOfMemoryException(SR.OutOfMemory_StringTooLong); 506throw new OutOfMemoryException(SR.Lock_Enter_WaiterCountOverflow_OutOfMemoryException); 512throw new ArgumentException(SR.Argument_IncompatibleArrayType); 518throw new ArgumentException(SR.Arg_InvalidHandle, paramName); 524throw new ArgumentOutOfRangeException(nameof(state), state, SR.Argument_UnexpectedStateForKnownCallback); 530throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 536throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 548throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 554throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 560throw new InvalidOperationException(SR.InvalidOperation_NoValue); 566throw new InvalidOperationException(SR.InvalidOperation_ConcurrentOperationsNotSupported); 572throw new InvalidOperationException(SR.InvalidOperation_HandleIsNotInitialized); 578throw new InvalidOperationException(SR.InvalidOperation_HandleIsNotPinned); 590throw new InvalidOperationException(SR.InvalidOperation_InvalidUtf8); 596throw new FormatException(SR.Argument_BadFormatSpecifier); 602throw new FormatException(SR.Format_BadHexChar); 608throw new FormatException(SR.Format_BadHexLength); 614throw new FormatException(SR.Format_NeedSingleChar); 620throw new FormatException(SR.Format(SR.Format_BadBoolean, new string(value))); 626throw new ArgumentOutOfRangeException("precision", SR.Format(SR.Argument_PrecisionTooLarge, StandardFormat.MaxPrecision)); 632throw new ArgumentOutOfRangeException("symbol", SR.Argument_BadFormatSpecifier); 638throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_NeedNonNegNum); 644throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_Enum); 668throw new FormatException(SR.Format_InvalidString); 674throw new FormatException(SR.Format(SR.Format_InvalidStringWithOffsetAndReason, offset, GetResourceString(resource))); 680throw new FormatException(SR.Format_IndexOutOfRange); 686throw new SynchronizationLockException(SR.Lock_Exit_SynchronizationLockException); 692return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_MemberInfo, declaringType, memberInfo)); 697return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_Attribute, attribute)); 702return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_CustomAttributeData, customAttributeData)); 710return new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNum); 712return new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 715return new ArgumentException(SR.Argument_InvalidOffLen); 730return new ArgumentException(SR.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 735return new ArgumentException(SR.Format(SR.Arg_WrongType, value, targetType), nameof(value)); 740return new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key)); 762SR.InvalidOperation_EnumNotStarted : 763SR.InvalidOperation_EnumEnded); 1086return SR.ArgumentOutOfRange_IndexMustBeLessOrEqual; 1088return SR.ArgumentOutOfRange_IndexMustBeLess; 1090return SR.ArgumentOutOfRange_IndexCount; 1092return SR.ArgumentOutOfRange_IndexCountBuffer; 1094return SR.ArgumentOutOfRange_Count; 1096return SR.ArgumentOutOfRange_Year; 1098return SR.Arg_ArrayPlusOffTooSmall; 1100return SR.Arg_ByteArrayTooSmallForValue; 1102return SR.NotSupported_ReadOnlyCollection; 1104return SR.Arg_RankMultiDimNotSupported; 1106return SR.Arg_NonZeroLowerBound; 1108return SR.ArgumentOutOfRange_GetCharCountOverflow; 1110return SR.ArgumentOutOfRange_ListInsert; 1112return SR.ArgumentOutOfRange_NeedNonNegNum; 1114return SR.ArgumentOutOfRange_SmallCapacity; 1116return SR.Argument_InvalidOffLen; 1118return SR.Argument_CannotExtractScalar; 1120return SR.ArgumentOutOfRange_BiggerThanCollection; 1122return SR.Serialization_MissingKeys; 1124return SR.Serialization_NullKey; 1126return SR.NotSupported_KeyCollectionSet; 1128return SR.NotSupported_ValueCollectionSet; 1130return SR.InvalidOperation_NullArray; 1132return SR.TaskT_TransitionToFinal_AlreadyCompleted; 1134return SR.TaskCompletionSourceT_TrySetException_NullException; 1136return SR.TaskCompletionSourceT_TrySetException_NoExceptions; 1138return SR.NotSupported_StringComparison; 1140return SR.ConcurrentCollection_SyncRoot_NotSupported; 1142return SR.Task_MultiTaskContinuation_NullTask; 1144return SR.InvalidOperation_WrongAsyncResultOrEndCalledMultiple; 1146return SR.Task_MultiTaskContinuation_EmptyTaskList; 1148return SR.Task_Start_TaskCompleted; 1150return SR.Task_Start_Promise; 1152return SR.Task_Start_ContinuationTask; 1154return SR.Task_Start_AlreadyStarted; 1156return SR.Task_RunSynchronously_Continuation; 1158return SR.Task_RunSynchronously_Promise; 1160return SR.Task_RunSynchronously_TaskCompleted; 1162return SR.Task_RunSynchronously_AlreadyStarted; 1164return SR.AsyncMethodBuilder_InstanceNotInitialized; 1166return SR.Task_ContinueWith_ESandLR; 1168return SR.Task_ContinueWith_NotOnAnything; 1170return SR.Task_InvalidTimerTimeSpan; 1172return SR.Task_Delay_InvalidMillisecondsDelay; 1174return SR.Task_Dispose_NotCompleted; 1176return SR.Task_ThrowIfDisposed; 1178return SR.Task_WaitMulti_NullTask; 1180return SR.ArgumentException_OtherNotArrayOfCorrectLength; 1182return SR.ArgumentNull_Array; 1184return SR.ArgumentNull_SafeHandle; 1186return SR.ArgumentOutOfRange_EndIndexStartIndex; 1188return SR.ArgumentOutOfRange_Enum; 1190return SR.ArgumentOutOfRange_HugeArrayNotSupported; 1192return SR.Argument_AddingDuplicate; 1194return SR.Argument_InvalidArgumentForComparison; 1196return SR.Arg_LowerBoundsMustMatch; 1198return SR.Arg_MustBeType; 1200return SR.Arg_Need1DArray; 1202return SR.Arg_Need2DArray; 1204return SR.Arg_Need3DArray; 1206return SR.Arg_NeedAtLeast1Rank; 1208return SR.Arg_RankIndices; 1210return SR.Arg_RanksAndBounds; 1212return SR.InvalidOperation_IComparerFailed; 1214return SR.NotSupported_FixedSizeCollection; 1216return SR.Rank_MultiDimNotSupported; 1218return SR.Arg_TypeNotSupported; 1220return SR.Argument_SpansMustHaveSameLength; 1222return SR.Argument_InvalidFlag; 1224return SR.CancellationTokenSource_Disposed; 1226return SR.Argument_AlignmentMustBePow2; 1228return SR.ArgumentOutOfRange_NotGreaterThanBufferLength; 1230return SR.InvalidOperation_SpanOverlappedOperation; 1232return SR.InvalidOperation_TimeProviderNullLocalTimeZone; 1234return SR.InvalidOperation_TimeProviderInvalidTimestampFrequency; 1236return SR.Format_UnexpectedClosingBrace; 1238return SR.Format_UnclosedFormatItem; 1240return SR.Format_ExpectedAsciiDigit; 1242return SR.Argument_HasToBeArrayClass; 1244return SR.InvalidOperation_IncompatibleComparer; 1246return SR.ConcurrentDictionary_ItemKeyIsNull; 1248return SR.ConcurrentDictionary_TypeOfValueIncorrect; 1250return SR.InvalidOperation_NoElements;
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (22)
84throw new ArgumentOutOfRangeException(nameof(ticks), SR.ArgumentOutOfRange_TimeOnlyBadTicks); 415throw new ArgumentException(SR.Arg_MustBeTimeOnly); 460throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 488throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 522throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 527throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 535throw new FormatException(SR.Argument_BadFormatSpecifier); 638throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 690throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 698throw new FormatException(SR.Argument_BadFormatSpecifier); 766throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 771throw new ArgumentException(SR.Argument_InvalidDateStyles, nameof(style)); 779throw new FormatException(SR.Argument_BadFormatSpecifier); 924case ParseFailureKind.Argument_InvalidDateStyles: throw new ArgumentException(SR.Argument_InvalidDateStyles, "style"); 925case ParseFailureKind.Argument_BadFormatSpecifier: throw new FormatException(SR.Argument_BadFormatSpecifier); 926case ParseFailureKind.Format_BadTimeOnly: throw new FormatException(SR.Format(SR.Format_BadTimeOnly, s.ToString())); 929throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, s.ToString(), nameof(TimeOnly))); 999_ => throw new FormatException(SR.Format_InvalidString), 1051throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, format.ToString(), nameof(TimeOnly)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeoutException.cs (3)
18: base(SR.Arg_TimeoutException) 24: base(message ?? SR.Arg_TimeoutException) 30: base(message ?? SR.Arg_TimeoutException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
409throw new ArgumentException(SR.Arg_MustBeTimeSpan);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (9)
184throw new ArgumentException(SR.Argument_DateTimeKindMustBeUnspecifiedOrUtc, nameof(dateStart)); 189throw new ArgumentException(SR.Argument_DateTimeKindMustBeUnspecifiedOrUtc, nameof(dateEnd)); 194throw new ArgumentException(SR.Argument_TransitionTimesAreIdentical, nameof(daylightTransitionEnd)); 199throw new ArgumentException(SR.Argument_OutOfOrderDateTimes, nameof(dateStart)); 208throw new ArgumentOutOfRangeException(nameof(daylightDelta), daylightDelta, SR.ArgumentOutOfRange_UtcOffset); 213throw new ArgumentException(SR.Argument_TimeSpanHasSeconds, nameof(daylightDelta)); 218throw new ArgumentException(SR.Argument_DateTimeHasTimeOfDay, nameof(dateStart)); 223throw new ArgumentException(SR.Argument_DateTimeHasTimeOfDay, nameof(dateEnd)); 259throw new SerializationException(SR.Serialization_InvalidData, e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (20)
225throw new ArgumentException(SR.Argument_DateTimeOffsetIsNotAmbiguous, nameof(dateTimeOffset)); 239throw new ArgumentException(SR.Argument_DateTimeIsNotAmbiguous, nameof(dateTime)); 261throw new ArgumentException(SR.Argument_DateTimeIsNotAmbiguous, nameof(dateTime)); 509throw new SecurityException(SR.Format(SR.Security_CannotReadFileData, id), e); 511throw new TimeZoneNotFoundException(SR.Format(SR.TimeZoneNotFound_MissingData, id), e); 649throw new ArgumentException(SR.Argument_ConvertMismatch, nameof(sourceTimeZone)); 656throw new ArgumentException(SR.Argument_DateTimeIsInvalid, nameof(dateTime)); 751throw new ArgumentException(SR.Format(SR.Argument_InvalidSerializedString, source), nameof(source)); 1009throw new SerializationException(SR.Format(SR.Serialization_CorruptField, "SupportsDaylightSavingTime")); 1014throw new SerializationException(SR.Serialization_InvalidData, e); 1018throw new SerializationException(SR.Serialization_InvalidData, e); 1320throw new ArgumentOutOfRangeException(nameof(baseUtcOffset), SR.ArgumentOutOfRange_UtcOffset); 1325throw new ArgumentException(SR.Argument_TimeSpanHasSeconds, nameof(baseUtcOffset)); 1347throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesNoNulls); 1352throw new InvalidTimeZoneException(SR.ArgumentOutOfRange_UtcOffsetAndDaylightDelta); 1358throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesOutOfOrder);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (39)
167throw new SerializationException(SR.Serialization_InvalidData, ex); 171throw new SerializationException(SR.Serialization_InvalidData, ex); 388throw new SerializationException(SR.Format(SR.Serialization_InvalidEscapeSequence, c)); 401throw new SerializationException(SR.Serialization_InvalidData); 443throw new SerializationException(SR.Serialization_InvalidData); 451throw new SerializationException(SR.Serialization_InvalidData); 465throw new SerializationException(SR.Serialization_InvalidData); 469throw new SerializationException(SR.Serialization_InvalidData); 493throw new SerializationException(SR.Serialization_InvalidData); 497throw new SerializationException(SR.Serialization_InvalidData); 513throw new SerializationException(SR.Serialization_InvalidData); 527throw new SerializationException(SR.Format(SR.Serialization_InvalidEscapeSequence, string.Empty)); 530throw new SerializationException(SR.Serialization_InvalidData); 541throw new SerializationException(SR.Serialization_InvalidData); 558throw new SerializationException(SR.Serialization_InvalidData, e); 570throw new SerializationException(SR.Serialization_InvalidData); 583throw new SerializationException(SR.Serialization_InvalidData); 631throw new SerializationException(SR.Serialization_InvalidData); 657throw new SerializationException(SR.Serialization_InvalidData); 678throw new SerializationException(SR.Serialization_InvalidData, e); 709throw new SerializationException(SR.Serialization_InvalidData); 714throw new SerializationException(SR.Serialization_InvalidData, e); 739throw new SerializationException(SR.Serialization_InvalidData); 743throw new SerializationException(SR.Serialization_InvalidData); 762throw new SerializationException(SR.Serialization_InvalidData); 774throw new SerializationException(SR.Serialization_InvalidData); 790throw new SerializationException(SR.Serialization_InvalidData); 807throw new SerializationException(SR.Serialization_InvalidData); 833throw new SerializationException(SR.Serialization_InvalidData, e); 861throw new SerializationException(SR.Serialization_InvalidData); 866throw new SerializationException(SR.Serialization_InvalidData); 873throw new SerializationException(SR.Serialization_InvalidData); 881throw new SerializationException(SR.Serialization_InvalidData); 900throw new SerializationException(SR.Serialization_InvalidData, e); 914throw new SerializationException(SR.Serialization_InvalidData, e); 922throw new SerializationException(SR.Serialization_InvalidData); 952throw new SerializationException(SR.Serialization_InvalidData);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (7)
75throw new ArgumentException(SR.Argument_DateTimeKindMustBeUnspecified, nameof(timeOfDay)); 81throw new ArgumentOutOfRangeException(nameof(month), SR.ArgumentOutOfRange_MonthParam); 87throw new ArgumentOutOfRangeException(nameof(day), SR.ArgumentOutOfRange_DayParam); 93throw new ArgumentOutOfRangeException(nameof(week), SR.ArgumentOutOfRange_Week); 99throw new ArgumentOutOfRangeException(nameof(dayOfWeek), SR.ArgumentOutOfRange_DayOfWeek); 104throw new ArgumentException(SR.Argument_DateTimeHasTicks, nameof(timeOfDay)); 124throw new SerializationException(SR.Serialization_InvalidData, e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (7)
697throw new InvalidTimeZoneException(SR.InvalidTimeZone_NoTTInfoStructures); 865throw new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_UnparsablePosixMDateString, date.ToString())); 940throw new InvalidTimeZoneException(SR.InvalidTimeZone_InvalidJulianDay); 955throw new InvalidTimeZoneException(SR.InvalidTimeZone_InvalidJulianDay); 1311throw new ArgumentException(SR.Argument_TimeZoneInfoInvalidTZif, nameof(data)); 1345throw new ArgumentException(SR.Argument_TimeZoneInfoBadTZif, nameof(data));
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (9)
40throw new IOException(SR.IO_UnseekableFile); 45throw new IOException(fs.Length == 0 ? SR.IO_InvalidReadLength : SR.IO_FileTooLong); 82e = new TimeZoneNotFoundException(SR.Format(SR.InvalidTimeZone_InvalidId, id)); 132e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath), ex); 140e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Tuple.cs (17)
154throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 274throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 399throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 534throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 679throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 834throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 999throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 1128throw new ArgumentException(SR.ArgumentException_TupleLastArgumentNotATuple); 1179throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (27)
66public virtual bool IsByRefLike { [Intrinsic] get => throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 75public virtual int GetArrayRank() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 78public virtual Type GetGenericTypeDefinition() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 80public virtual Type[] GetGenericArguments() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 85public virtual int GenericParameterPosition => throw new InvalidOperationException(SR.Arg_NotGenericParameter); 90throw new InvalidOperationException(SR.Arg_NotGenericParameter); 248public virtual MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 289new ArgumentException(SR.Format(SR.Arg_MemberInfoNotFound, member.Name), nameof(member)); 488throw new ArgumentException(SR.ArgumentNull_ArrayValue, nameof(args)); 600public virtual InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 615public virtual Type? GetNullableUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 623throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 627throw new ArgumentException(SR.Argument_InvalidEnum, "enumType"); 636throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 652public virtual Array GetEnumValuesAsUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 693throw new ArgumentException(SR.Format(SR.FunctionPointer_InvalidCallingConvention, fullName), nameof(callingConventions)); 707throw new ArgumentException(SR.ManagedFunctionPointer_CallingConventionsNotAllowed, nameof(callingConventions)); 719throw new ArgumentException(SR.FunctionPointer_CallingConventionsUnbalanced, nameof(returnType)); 722throw new ArgumentException(SR.FunctionPointer_CallingConventionsUnbalanced, nameof(returnType)); 730throw new ArgumentException(SR.FunctionPointer_CallingConventionsUnbalanced, nameof(returnType)); 766public virtual Type MakeFunctionPointerType(Type[]? parameterTypes, bool isUnmanaged = false) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 770public virtual Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 819throw new ArgumentException(SR.Format(SR.Arg_NotGenericTypeDefinition, genericTypeDefinition), nameof(genericTypeDefinition)); 883public static Type? ReflectionOnlyGetType(string typeName, bool throwIfNotFound, bool ignoreCase) => throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (9)
25throw new ArgumentException(SR.Arg_MustBeEnum, nameof(value)); 34throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this)); 55throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType)); 62throw new InvalidOperationException(SR.InvalidOperation_UnknownEnumType); 71throw new ArgumentException(SR.Arg_MustBeEnum, nameof(value)); 76throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value)); 93throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (4)
443throw new InvalidFilterCriteriaException(SR.InvalidFilterCriteriaException_CritInt); 458throw new InvalidFilterCriteriaException(SR.InvalidFilterCriteriaException_CritInt); 492throw new InvalidFilterCriteriaException(SR.InvalidFilterCriteriaException_CritInt); 526throw new InvalidFilterCriteriaException(SR.InvalidFilterCriteriaException_CritString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeAccessException.cs (3)
17: base(SR.Arg_TypeAccessException) 23: base(message ?? SR.Arg_TypeAccessException) 29: base(message ?? SR.Arg_TypeAccessException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeInitializationException.cs (5)
22: base(SR.TypeInitialization_Default) 29: this(fullTypeName, SR.Format(SR.TypeInitialization_Type, fullTypeName), innerException) 35internal TypeInitializationException(string? message) : base(message ?? SR.TypeInitialization_Default) 41: base(message ?? SR.TypeInitialization_Default, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeLoadException.cs (1)
15: base(SR.Arg_TypeLoadException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeUnloadedException.cs (3)
15: base(SR.Arg_TypeUnloadedException) 21: base(message ?? SR.Arg_TypeUnloadedException) 27: base(message ?? SR.Arg_TypeUnloadedException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
63throw new ArgumentException(SR.Arg_MustBeUInt128); 2224static string IBinaryIntegerParseAndFormatInfo<UInt128>.OverflowMessage => SR.Overflow_UInt128;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (4)
63throw new ArgumentException(SR.Arg_MustBeUInt16); 240throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt16", "DateTime")); 1220static string IBinaryIntegerParseAndFormatInfo<ushort>.OverflowMessage => SR.Overflow_UInt16;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (4)
75throw new ArgumentException(SR.Arg_MustBeUInt32); 256throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt32", "DateTime")); 1291static string IBinaryIntegerParseAndFormatInfo<uint>.OverflowMessage => SR.Overflow_UInt32;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (4)
75throw new ArgumentException(SR.Arg_MustBeUInt64); 255throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt64", "DateTime")); 1292static string IBinaryIntegerParseAndFormatInfo<ulong>.OverflowMessage => SR.Overflow_UInt64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
211throw new ArgumentException(SR.Arg_MustBeUIntPtr);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UnauthorizedAccessException.cs (3)
18: base(SR.Arg_UnauthorizedAccessException) 24: base(message ?? SR.Arg_UnauthorizedAccessException) 30: base(message ?? SR.Arg_UnauthorizedAccessException, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (3)
45throw new NotSupportedException(SR.NotSupported_UnitySerHolder); 52throw new ArgumentException(SR.Format(SR.Argument_InvalidUnity, _data ?? "UnityType"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (1)
1856throw new ArgumentException(SR.ArgumentException_ValueTupleLastArgumentNotAValueTuple);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Version.cs (7)
124throw new ArgumentException(SR.Arg_MustBeVersion, nameof(version)); 223throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, "0", failureUpperBound), nameof(fieldCount)); 365if (throwOnFailure) throw new ArgumentException(SR.Arg_VersionString, nameof(input)); 382if (throwOnFailure) throw new ArgumentException(SR.Arg_VersionString, nameof(input)); 461throw new FormatException(SR.Format(SR.Format_InvalidStringWithValue, inputString));
src\runtime\src\libraries\System.Private.CoreLib\src\System\WeakReference.cs (1)
201throw new InvalidOperationException(SR.InvalidOperation_HandleIsNotInitialized);
src\runtime\src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (1)
105throw new InvalidOperationException(SR.InvalidOperation_HandleIsNotInitialized);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
207: throw new ArgumentException(SR.InvalidAssemblyName, nameof(assemblyName));
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (2)
199throw new ArgumentException(SR.Argument_AssemblyGetTypeCannotSpecifyAssembly); 205throw new IO.FileLoadException(SR.InvalidAssemblyName, _inputString.ToString());
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
351throw new ArgumentException(SR.Argument_InvalidTypeName, $"typeName@{errorIndex}");
System\Activator.NativeAot.cs (2)
46throw new MissingMethodException(SR.Format(SR.MissingConstructor_Name, typeof(T)));
System\ActivatorImplementation.cs (17)
43throw new MissingMethodException(SR.Format(SR.Arg_NoDefCTor, type)); 63throw new PlatformNotSupportedException(SR.NotSupported_ActivAttr); 96throw new MissingMethodException(SR.Format(SR.Arg_NoDefCTor, type)); 112throw new MissingMethodException(SR.Format(SR.Arg_NoDefCTor, type), innerMME); 117throw new MissingMethodException(SR.Format(SR.Arg_NoDefCTor, type)); 126throw new NotSupportedException(SR.NotSupported_CallToVarArg); 150throw new ArgumentException(SR.Arg_MustBeType, nameof(type)); 153throw new MissingMethodException(type.IsInterface ? SR.Acc_CreateInterface : SR.Acc_CreateAbst); // Strange but compatible exception. 156throw new ArgumentException(SR.Format(SR.Acc_CreateGenericEx, type)); 159throw new NotSupportedException(SR.NotSupported_ByRefLike); 165throw new NotSupportedException(SR.Acc_CreateVoid);
System\ArgIterator.cs (9)
14throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); 20throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); 25throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); 30throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); 35throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); 41throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); 47throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); 52throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator); 57throw new PlatformNotSupportedException(SR.PlatformNotSupported_ArgIterator);
System\Array.NativeAot.cs (13)
56throw new NotSupportedException(SR.NotSupported_ByRefLikeArray); 58throw new NotSupportedException(SR.NotSupported_VoidArray); 60throw new NotSupportedException(SR.NotSupported_OpenType); 67throw new PlatformNotSupportedException(SR.PlatformNotSupported_NonZeroLowerBound); 96throw new NotSupportedException(SR.NotSupported_OpenType); 103throw new PlatformNotSupportedException(SR.PlatformNotSupported_NonZeroLowerBound); 195throw new PlatformNotSupportedException(SR.PlatformNotSupported_NonZeroLowerBound); 244throw new PlatformNotSupportedException(SR.PlatformNotSupported_NonZeroLowerBound); 384throw new NotSupportedException(SR.NotSupported_Type); 411throw new InvalidCastException(SR.Format(SR.Arg_ObjObjEx, value.GetType(), Type.GetTypeFromHandle(new RuntimeTypeHandle(pElementEEType)))); 420throw new NotSupportedException(SR.NotSupported_Type); 430throw new InvalidCastException(SR.InvalidCast_StoreArrayElement);
System\Delegate.cs (3)
112throw new ArgumentException(SR.Arg_DlgtNullInst); 124throw new ArgumentException(SR.Arg_DlgtNullInst); 481throw new ArgumentException(SR.Arg_DlgtTypeMis);
System\Diagnostics\StackFrame.NativeAot.cs (6)
216string word_At = SR.UsingResourceKeys() ? "at" : SR.Word_At; 218string inFileLineNum = SR.UsingResourceKeys() ? "in {0}:line {1}" : SR.StackTrace_InFileLineNumber; 236builder.AppendLine(SR.UsingResourceKeys() ? 238SR.Exception_EndStackTraceFromPreviousThrow);
System\GC.NativeAot.cs (23)
155throw new ArgumentOutOfRangeException(nameof(mode), SR.ArgumentOutOfRange_Enum); 169throw new ArgumentException(SR.Argument_AggressiveGCRequiresMaxGeneration, nameof(generation)); 173throw new ArgumentException(SR.Argument_AggressiveGCRequiresBlocking, nameof(blocking)); 177throw new ArgumentException(SR.Argument_AggressiveGCRequiresCompacting, nameof(compacting)); 214SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 1, 99)); 221SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 1, 99)); 228throw new InvalidOperationException(SR.InvalidOperation_NotWithConcurrentGC); 287throw new InvalidOperationException(SR.InvalidOperation_NotWithConcurrentGC); 335throw new InvalidOperationException(SR.InvalidOperationException_NoGCRegionNotInProgress); 337throw new InvalidOperationException(SR.InvalidOperationException_NoGCRegionAllocationExceeded); 339throw new InvalidOperationException(SR.InvalidOperationException_NoGCRegionCallbackAlreadyRegistered); 425throw new ArgumentOutOfRangeException(nameof(lohSize), SR.ArgumentOutOfRange_NoGCLohSizeGreaterTotalSize); 440throw new InvalidOperationException(SR.InvalidOperationException_AlreadyInNoGCRegion); 442throw new ArgumentOutOfRangeException(nameof(totalSize), SR.ArgumentOutOfRangeException_NoGCRegionSizeTooLarge); 462SR.InvalidOperationException_NoGCRegionNotInProgress); 467SR.InvalidOperationException_NoGCRegionInduced); 472SR.InvalidOperationException_NoGCRegionAllocationExceeded); 782SR.Format( 783SR.ArgumentOutOfRange_Bounds_Lower_Upper, 906throw new InvalidOperationException(SR.InvalidOperationException_HardLimitTooLow); 908throw new InvalidOperationException(SR.InvalidOperationException_HardLimitInvalid);
System\InvokeUtils.cs (3)
434return new ArgumentException(SR.Format(SR.Arg_ObjObjEx, Type.GetTypeFromHandle(new RuntimeTypeHandle(srcEEType)), destinationTypeName)); 439return new InvalidCastException(SR.InvalidCast_StoreArrayElement);
System\IO\FileLoadException.NativeAot.cs (3)
10return fileName == null ? SR.IO_FileLoad : SR.Format(SR.IO_FileLoad_FileName, fileName);
System\Reflection\Assembly.NativeAot.cs (2)
29throw new NotSupportedException(SR.NotSupported_StackTraceSupportDisabled); 90throw new ArgumentException(SR.Format_StringZeroLength, nameof(partialName));
System\Reflection\AssemblyRuntimeNameHelpers.cs (1)
20throw new ArgumentException(SR.InvalidAssemblyName);
System\Reflection\ConstructorInvoker.cs (2)
29throw new ArgumentException(SR.Argument_MustBeRuntimeConstructorInfo, nameof(constructor)); 123throw new TargetParameterCountException(SR.Arg_ParmCnt);
System\Reflection\DynamicInvokeInfo.cs (4)
390throw new NotSupportedException(SR.NotSupported_ByRefLike); 395throw new TargetParameterCountException(SR.Arg_ParmCnt); 569throw new ArgumentException(SR.Arg_VarMissNull, "parameters"); 846Exception exception = new NullReferenceException(SR.NullReference_InvokeNullRefReturned);
System\Reflection\Emit\ReflectionEmitThrower.cs (1)
10throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionEmit);
System\Reflection\MethodInvoker.cs (2)
46throw new ArgumentException(SR.Argument_MustBeRuntimeMethod, nameof(method)); 140throw new TargetParameterCountException(SR.Arg_ParmCnt);
System\Reflection\Runtime\EventInfos\NativeFormat\NativeFormatRuntimeEventInfo.cs (1)
151throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\FieldInfos\NativeFormat\NativeFormatRuntimeFieldInfo.cs (1)
75throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\FieldInfos\RuntimeFieldInfo.cs (2)
108throw new ArgumentException(SR.Arg_TypedReference_Null); 142throw new ArgumentException(SR.Arg_TypedReference_Null);
System\Reflection\Runtime\General\Helpers.cs (2)
80string message = SR.Format(SR.TypeLoad_ResolveTypeFromAssembly, typeName, assemblyName);
System\Reflection\Runtime\General\ThunkedApis.cs (1)
76throw new NotSupportedException(SR.NotSupported_CodeBase);
System\Reflection\Runtime\General\TypeUnifier.cs (10)
122throw new TypeLoadException(SR.Format(SR.ArgumentException_InvalidArrayElementType, elementType)); 187throw new TypeLoadException(SR.Format(SR.ArgumentException_InvalidArrayElementType, elementType)); 226throw new TypeLoadException(SR.Format(SR.CannotCreateByRefOfByRef, key.ElementType)); 270throw new TypeLoadException(SR.Format(SR.CannotCreatePointerOfByRef, key.ElementType)); 392throw new ArgumentException(SR.Format(SR.ArgumentException_InvalidTypeArgument, genericTypeArgument));
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (1)
132throw new ArgumentException(SR.Arg_DlgtTargMeth);
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (1)
73throw new InvalidOperationException(SR.InvalidOperation_NoValue);
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (1)
184throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\MethodInfos\OpenMethodInvoker.cs (8)
19throw new InvalidOperationException(SR.Arg_UnboundGenParam); 24throw new InvalidOperationException(SR.Arg_UnboundGenParam); 29throw new InvalidOperationException(SR.Arg_UnboundGenParam); 34throw new InvalidOperationException(SR.Arg_UnboundGenParam); 39throw new InvalidOperationException(SR.Arg_UnboundGenParam); 44throw new InvalidOperationException(SR.Arg_UnboundGenParam); 49throw new InvalidOperationException(SR.Arg_UnboundGenParam); 56throw new InvalidOperationException(SR.Arg_UnboundGenParam);
System\Reflection\Runtime\MethodInfos\RuntimeConstructedGenericMethodInfo.cs (2)
139throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this));
System\Reflection\Runtime\MethodInfos\RuntimeConstructorInfo.cs (1)
86throw new PlatformNotSupportedException(SR.Acc_NotClassInit);
System\Reflection\Runtime\MethodInfos\RuntimeMethodInfo.cs (3)
74throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(delegateType)); 79throw new ArgumentException(SR.Arg_MustBeDelegate); 83throw new ArgumentException(SR.Arg_DlgtTargMeth);
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (7)
128throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this)); 137throw new PlatformNotSupportedException(SR.Format(SR.Reflection_CustomReflectionObjectsNotSupported, typeArguments[i])); 140throw new BadImageFormatException(SR.CannotUseByRefLikeTypeInInstantiation); 145throw new ArgumentException(SR.Format(SR.Argument_NotEnoughGenArguments, typeArguments.Length, GenericTypeParameters.Length));
System\Reflection\Runtime\MethodInfos\RuntimePlainConstructorInfo.cs (3)
160throw new MemberAccessException(SR.Format(SR.Acc_CreateAbstEx, _common.DefiningTypeInfo.FullName)); 163throw new MemberAccessException(SR.Acc_NotClassInit);
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticConstructorInfo.cs (1)
75throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticMethodInfo.cs (3)
116throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this)); 147throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\Modules\NativeFormat\NativeFormatRuntimeModule.cs (1)
39throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\ParameterInfos\NativeFormat\NativeFormatMethodParameterInfo.cs (1)
58throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\PropertyInfos\NativeFormat\NativeFormatRuntimePropertyInfo.cs (1)
123throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\PropertyInfos\RuntimePropertyInfo.cs (1)
332throw new InvalidOperationException(SR.Arg_EnumLitValueNotFound);
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeGenericParameterTypeInfo.cs (1)
48throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeNamedTypeInfo.cs (1)
125throw new InvalidOperationException(SR.NoMetadataTokenAvailable);
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (25)
115throw new InvalidOperationException(SR.Arg_NotGenericParameter); 151throw new InvalidOperationException(SR.Arg_NotGenericParameter); 163throw new InvalidOperationException(SR.Arg_NotGenericParameter); 190throw new InvalidOperationException(SR.Arg_GenericParameter); 195throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(interfaceType)); 201throw new ArgumentException(SR.Argument_InterfaceMap); 204throw new ArgumentException(SR.Arg_MustBeInterface); 207throw new ArgumentException(SR.Arg_NotFoundIFace); 212throw new ArgumentException(SR.Argument_ArrayGetInterfaceMap); 242throw new InvalidOperationException(SR.InvalidOperation_NotFunctionPointer); 247throw new InvalidOperationException(SR.InvalidOperation_NotFunctionPointer); 252throw new InvalidOperationException(SR.InvalidOperation_NotFunctionPointer); 376throw new ArgumentException(SR.Argument_HasToBeArrayClass); 390throw new InvalidOperationException(SR.Arg_NotGenericParameter); 399throw new InvalidOperationException(SR.InvalidOperation_NotGenericType); 427throw new InvalidOperationException(SR.Format(SR.FunctionPointer_ReturnTypeInvalid, this)); 441throw new ArgumentException(SR.Format(SR.FunctionPointer_ParameterInvalid, rtType), nameof(parameterTypes)); 464throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericTypeDefinition, this)); 490throw new PlatformNotSupportedException(SR.Format(SR.Reflection_CustomReflectionObjectsNotSupported, typeArguments[i])); 507throw new TypeLoadException(SR.CannotUseByRefLikeTypeInInstantiation); 539throw new PlatformNotSupportedException(SR.PlatformNotSupported_NoTypeHandleForOpenTypes);
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.GetMember.cs (2)
132throw new ArgumentException(SR.Format(SR.Arg_MemberInfoNotFound, member.Name), nameof(member));
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.InvokeMember.cs (16)
29throw new InvalidOperationException(SR.Arg_GenericParameter); 34throw new ArgumentException(SR.Arg_NoAccessSpec, nameof(bindingFlags)); 52throw new ArgumentException(SR.Arg_NamedParamTooBig, nameof(namedParams)); 58throw new ArgumentException(SR.Arg_NamedParamTooBig, nameof(namedParams)); 65throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); 71throw new ArgumentException(SR.Arg_NamedParamNull, nameof(namedParams)); 86throw new ArgumentException(SR.Arg_CreatInstAccess, nameof(bindingFlags)); 117throw new ArgumentException(SR.Arg_FldSetGet, nameof(bindingFlags)); 121throw new ArgumentException(SR.Arg_FldGetPropSet, nameof(bindingFlags)); 131throw new ArgumentException(SR.Arg_FldSetPropGet, nameof(bindingFlags)); 135throw new ArgumentException(SR.Arg_FldSetInvoke, nameof(bindingFlags)); 184throw new ArgumentException(SR.Arg_IndexMustBeInt); 209throw new ArgumentException(SR.Arg_FldGetArgErr, nameof(bindingFlags)); 218throw new ArgumentException(SR.Arg_FldSetArgErr, nameof(bindingFlags)); 246throw new ArgumentException(SR.Arg_PropSetGet, nameof(bindingFlags)); 255throw new ArgumentException(SR.Arg_PropSetInvoke, nameof(bindingFlags));
System\Reflection\TypeNameResolver.NativeAot.cs (10)
51throw new TypeLoadException(SR.Arg_TypeLoadNullStr); 86return throwOnError ? throw new ArgumentException(SR.Argument_AssemblyGetTypeCannotSpecifyAssembly) : null; 111throw new FileNotFoundException(SR.Format(SR.FileNotFound_ResolveAssembly, assemblyName)); 148SR.Format(SR.TypeLoad_ResolveType, escapedTypeName) : 149SR.Format(SR.TypeLoad_ResolveTypeFromAssembly, escapedTypeName, assembly.FullName), 237throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveNestedType,
System\Runtime\CompilerServices\ClassConstructorRunner.cs (1)
97TypeInitializationException wrappedException = new TypeInitializationException(null, SR.TypeInitialization_Type_NoTypeAvailable, e);
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (19)
35throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized); 43throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized); 226throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized, nameof(method)); 232throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized, nameof(method)); 245throw new ArgumentException(SR.Arg_MustBeType, nameof(type)); 266throw new ArgumentException(SR.Arg_MustBeType, nameof(type)); 300throw new ArgumentNullException(nameof(type), SR.ArgumentNull_Type); 305throw new SerializationException(SR.Format(SR.Serialization_InvalidType, type)); 310throw new ArgumentException(SR.Argument_InvalidValue); 315throw new MemberAccessException(SR.Acc_CreateGeneric); 320throw new NotSupportedException(SR.NotSupported_ManagedActivation); 325throw new MemberAccessException(SR.Acc_CreateAbst); 332throw new ArgumentException(SR.Argument_InvalidValue); 338throw new ArgumentException(SR.Argument_NoUninitializedStrings); 348throw new NotSupportedException(SR.NotSupported_ByRefLike); 384throw new ArgumentException(SR.Arg_TypeNotSupported); 394throw new NotSupportedException(SR.NotSupported_ByRefLike); 418throw new ArgumentException(SR.Arg_TypeNotSupported);
System\Runtime\InteropServices\IDynamicInterfaceCastable.cs (8)
62throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, instance.GetType(), Type.GetTypeFromMethodTable(interfaceType))); 67throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_NotInterface, Type.GetTypeFromMethodTable(resolvedImplType))); 73throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_MissingImplementationAttribute, Type.GetTypeFromMethodTable(resolvedImplType), nameof(DynamicInterfaceCastableImplementationAttribute))); 87throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_DoesNotImplementRequested, Type.GetTypeFromMethodTable(resolvedImplType), Type.GetTypeFromMethodTable(interfaceType)));
System\Runtime\InteropServices\Marshal.NativeAot.cs (9)
27throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, t)); 44throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo, nameof(fieldName)); 48throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t)); 57throw new ArgumentException(SR.Argument_StructMustNotBeValueClass, nameof(structure)); 98throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(structuretype)); 104throw new ArgumentException(SR.Format(SR.Argument_MustHaveLayoutOrBeBlittable, structuretype)); 127throw new ArgumentException(SR.Argument_NeedNonGenericObject, nameof(structure));
System\Runtime\InteropServices\PInvokeMarshal.cs (4)
56throw new ArgumentException(SR.Argument_NeedNonGenericType, "delegate"); 222Environment.FailFast(SR.Delegate_GarbageCollected); 235throw new ArgumentException(SR.Arg_MustBeDelegate, "t"); 297Environment.FailFast(SR.Delegate_GarbageCollected);
System\Runtime\ThunkPool.cs (1)
322throw new PlatformNotSupportedException(SR.PlatformNotSupported_DynamicEntrypoint);
System\RuntimeMethodHandle.cs (1)
101throw new ArgumentNullException(null, SR.Arg_InvalidHandle);
System\RuntimeType.NativeAot.cs (19)
95throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value)); 101throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 109throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 120throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 143throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 161throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, value.GetType(), Enum.InternalGetUnderlyingType(this))); 163throw new InvalidOperationException(SR.InvalidOperation_UnknownEnumType); 169throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, value.GetType(), this)); 175throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, value.GetType(), underlyingType)); 186throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 205throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 325return pEEType->IsArray ? pEEType->ArrayRank : throw new ArgumentException(SR.Argument_HasToBeArrayClass); 429throw new InvalidOperationException(SR.InvalidOperation_NotGenericType); 577throw new InvalidOperationException(SR.InvalidOperation_NotFunctionPointer); 602throw new InvalidOperationException(SR.InvalidOperation_NotFunctionPointer); 703throw new InvalidOperationException(SR.InvalidOperation_NotFunctionPointer);
System\Threading\Thread.NativeAot.cs (10)
141throw new ThreadStateException(SR.ThreadState_Dead_State); 149throw new ThreadStateException(SR.ThreadState_Dead_State); 181throw new ThreadStateException(SR.ThreadState_Dead_State); 189throw new ThreadStateException(SR.ThreadState_Dead_State); 228throw new ThreadStateException(SR.ThreadState_Dead_Priority); 244throw new ArgumentOutOfRangeException(SR.Argument_InvalidFlag); 248throw new ThreadStateException(SR.ThreadState_Dead_Priority); 256throw new ThreadStateException(SR.ThreadState_SetPriorityFailed); 309SR.ArgumentOutOfRange_NeedNonNegOrNegative1); 362throw new ThreadStateException(SR.ThreadState_AlreadyStarted);
System\Threading\Thread.NativeAot.Unix.cs (1)
106throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop);
System\TypedReference.cs (1)
64public override bool Equals(object? o) { throw new NotSupportedException(SR.NotSupported_NYI); }
System\TypeLoadException.NativeAot.cs (1)
10_message ??= SR.Arg_TypeLoadException;