241 references to Format
System.Private.CoreLib (241)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
455throw new IOException(SR.Format(errorInfo.Error == Interop.Error.EFBIG
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (3)
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));
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (2)
338throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Boolean", "Char")); 398throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Boolean", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
249throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Byte", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Char.cs (5)
519throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Boolean")); 569throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Single")); 574throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Double")); 579throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Decimal")); 584throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
891throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, _buckets[bucketNumber].key, key));
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (1)
107throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, node.key, key));
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
219throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, value.GetType().FullName, targetType.FullName));
src\libraries\System.Private.CoreLib\src\System\CurrentSystemTimeZone.cs (1)
118throw new ArgumentOutOfRangeException(nameof(year), SR.Format(SR.ArgumentOutOfRange_Range, 1, 9999));
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (2)
700throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, s.ToString(), nameof(DateOnly))); 828throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, format.ToString(), nameof(DateOnly)));
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (3)
224private static void ThrowMillisecondOutOfRange() => throw new ArgumentOutOfRangeException("millisecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, MillisPerSecond - 1)); 225private static void ThrowMicrosecondOutOfRange() => throw new ArgumentOutOfRangeException("microsecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, MicrosecondsPerMillisecond - 1)); 2007private static InvalidCastException InvalidCast(string to) => new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, nameof(DateTime), to));
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (2)
634SR.Format(SR.ArgumentOutOfRange_Range, UnixMinSeconds, UnixMaxSeconds)); 649SR.Format(SR.ArgumentOutOfRange_Range, MinMilliseconds, MaxMilliseconds));
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (3)
688throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, nameof(MidpointRounding)), nameof(mode)); 1041throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Decimal", "Char")); 1101throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Decimal", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (1)
638ContractHelper.TriggerFailure(kind, SR.Format(SR.MustUseCCRewrite, contractKind, simpleName), null, null, null);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (2)
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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (19)
488return SR.Format(SR.EventSource_ToString, Name, Guid); 2052ReportOutOfBandMessage(SR.Format(SR.EventSource_VarArgsParameterMismatch, eventId, infos[i].Name)); 3182manifest.ManifestError(SR.Format(SR.EventSource_AbstractMustNotDeclareEventMethods, method.Name, eventAttribute.EventId)); 3216manifest.ManifestError(SR.Format(SR.EventSource_EventMustNotBeExplicitImplementation, method.Name, eventAttribute.EventId)); 3421manifest.ManifestError(SR.Format(SR.EventSource_EnumKindMismatch, staticField.FieldType.Name, providerEnumKind)); 3546manifest.ManifestError(SR.Format(SR.EventSource_EventIdReused, evtName, evtId), true); 3585manifest.ManifestError(SR.Format(SR.EventSource_EventMustHaveTaskIfNonDefaultOpcode, evtName, evtId)); 5191ManifestError(SR.Format(SR.EventSource_IllegalOpcodeValue, name, value)); 5209ManifestError(SR.Format(SR.EventSource_IllegalTaskValue, name, value)); 5226ManifestError(SR.Format(SR.EventSource_KeywordNeedPowerOfTwo, $"0x{value:x}", name), true); 5232ManifestError(SR.Format(SR.EventSource_IllegalKeywordsValue, name, $"0x{value:x}")); 5252ManifestError(SR.Format(SR.EventSource_EventChannelOutOfRange, name, value)); 5258ManifestError(SR.Format(SR.EventSource_ChannelTypeDoesNotMatchEventChannelValue, 5755ManifestError(SR.Format(SR.EventSource_UndefinedChannel, channel, eventName)); 5767ManifestError(SR.Format(SR.EventSource_UndefinedChannel, channel, eventName)); 5775ManifestError(SR.Format(SR.EventSource_EventWithAdminChannelMustHaveMessage, eventName, info.Name)); 5819ManifestError(SR.Format(SR.EventSource_UndefinedOpcode, opcode, eventName), true); 5847ManifestError(SR.Format(SR.EventSource_UndefinedKeyword, "0x" + bit.ToString("x", CultureInfo.CurrentCulture), eventName), true); 5991ManifestError(SR.Format(SR.EventSource_UnsupportedMessageProperty, evtName, eventMessage));
src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
459throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Double", "Char")); 519throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Double", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Enum.cs (5)
406throw new ArgumentException(SR.Format(SR.Argument_EnumTypeDoesNotMatch, flag.GetType(), GetType())); 1291throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, target.GetType(), GetType())); 1638throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, rtType)); 1651throw new ArgumentException(SR.Format(SR.Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType)); 2192DateTime IConvertible.ToDateTime(IFormatProvider? provider) => throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Enum", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (4)
139throw new ArgumentException(SR.Format(SR.Argument_ResultCalendarRange, minValue, maxValue)); 506SR.Format(SR.ArgumentOutOfRange_Range, DayOfWeek.Sunday, DayOfWeek.Saturday)); 517SR.Format(SR.ArgumentOutOfRange_Range, CalendarWeekRule.FirstDay, CalendarWeekRule.FirstFourDayWeek)), 703SR.Format(SR.ArgumentOutOfRange_Range, 0, MillisPerSecond - 1));
src\libraries\System.Private.CoreLib\src\System\Globalization\ChineseLunisolarCalendar.cs (2)
258throw new ArgumentOutOfRangeException("year", lunarYear, SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear)); 277throw new ArgumentOutOfRangeException(nameof(year), year, SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
522SR.Format(SR.ArgumentOutOfRange_Range, CultureTypes.NeutralCultures, CultureTypes.FrameworkCultures));
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
1117throw new CultureNotFoundException("name/altName", SR.Format(SR.Argument_OneOfCulturesNotSupported, name, altName));
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
638SR.Format(SR.ArgumentOutOfRange_Range, DayOfWeek.Sunday, DayOfWeek.Saturday)); 668SR.Format(SR.ArgumentOutOfRange_Range, CalendarWeekRule.FirstDay, CalendarWeekRule.FirstFourDayWeek));
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
5189return new FormatException(SR.Format(SR.Format_BadDateTimeCalendar, new string(result.failureSpanArgument), result.calendar)); 5207return new FormatException(SR.Format(SR.Format_UnknownDateTimeWord, new string(result.failureSpanArgument), result.failureIntArgument));
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (7)
41SR.Format(SR.ArgumentOutOfRange_Range, 1, 60)); 58SR.Format(SR.ArgumentOutOfRange_Range, 1, 60)); 176SR.Format(SR.ArgumentOutOfRange_Range, MinEraCalendarYear(era), MaxEraCalendarYear(era))); 253SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 431SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 604SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 669SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxCalendarYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (11)
54SR.Format(SR.ArgumentOutOfRange_Range, GregorianCalendarTypes.Localized, GregorianCalendarTypes.TransliteratedFrench)); 71SR.Format(SR.ArgumentOutOfRange_Range, GregorianCalendarTypes.Localized, GregorianCalendarTypes.TransliteratedFrench)); 144SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 257SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 296SR.Format(SR.ArgumentOutOfRange_Range, 1, 12)); 308SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 315SR.Format(SR.ArgumentOutOfRange_Range, 1, GetDaysInMonth(year, month))); 337SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 358SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 365SR.Format(SR.ArgumentOutOfRange_Range, 1, 12)); 430SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (5)
132SR.Format( 246SR.Format( 442SR.Format( 482SR.Format( 530SR.Format(SR.ArgumentOutOfRange_Range, m_minYear, m_maxYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (4)
299SR.Format(SR.ArgumentOutOfRange_Range, MinHebrewYear, MaxHebrewYear)); 317SR.Format(SR.ArgumentOutOfRange_Range, 1, monthsInYear)); 335SR.Format(SR.ArgumentOutOfRange_Range, 1, daysInMonth)); 884SR.Format(SR.ArgumentOutOfRange_Range, MinHebrewYear, MaxHebrewYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (8)
127SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, MinAdvancedHijri, MaxAdvancedHijri)); 165SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarYear)); 179SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarMonth)); 274SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 374SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 407SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 440SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxCalendarYear)); 461SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
276SR.Format(SR.ArgumentOutOfRange_Range, 99, _helper.MaxYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseLunisolarCalendar.cs (1)
148SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (6)
68SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 106SR.Format(SR.ArgumentOutOfRange_Range, 1, monthDays)); 187SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 311SR.Format(SR.ArgumentOutOfRange_Range, 0, MillisPerSecond - 1)); 333SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxYear)); 348SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 1, MaxYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
169SR.Format(SR.ArgumentOutOfRange_Range, 99, _helper.MaxYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanLunisolarCalendar.cs (2)
1190SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear)); 1212SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (8)
80SR.Format(SR.ArgumentOutOfRange_CalendarRange, s_minDate, s_maxDate)); 100SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarYear)); 114SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarMonth)); 226SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 338SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 377SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 411SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxCalendarYear)); 431SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxCalendarYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
168SR.Format(SR.ArgumentOutOfRange_Range, 99, _helper.MaxYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanLunisolarCalendar.cs (1)
204SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
150SR.Format(SR.ArgumentOutOfRange_Range, 99, _helper.MaxYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (6)
324SR.Format(SR.ArgumentOutOfRange_Range, MinCalendarYear, MaxCalendarYear)); 417SR.Format(SR.ArgumentOutOfRange_Range, -120000, 120000)); 546SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 585SR.Format(SR.ArgumentOutOfRange_Day, daysInMonth, month)); 617SR.Format(SR.ArgumentOutOfRange_Range, MinCalendarYear, MaxCalendarYear)); 640SR.Format(SR.ArgumentOutOfRange_Range, MinCalendarYear, MaxCalendarYear));
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
252throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int16", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
261throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int32", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
258throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int64", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
98throw new ArgumentException(SR.Format(SR.Argument_InvalidSubPath, path, FullPath), nameof(path));
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
194throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, options.Mode, options.Access), nameof(options));
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
148throw new IOException(SR.Format(SR.IO_CannotReplaceSameFile, sourceFullPath, destFullPath));
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (1)
105throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, mode, access), nameof(access));
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1443throw new ArgumentException(SR.Format(SR.Argument_MinMaxValue, min, max));
src\libraries\System.Private.CoreLib\src\System\MissingFieldException.cs (1)
57return SR.Format(SR.MissingField_Name, ClassName, MemberName);
src\libraries\System.Private.CoreLib\src\System\MissingMemberException.cs (1)
70return SR.Format(SR.MissingMember_Name, ClassName, MemberName);
src\libraries\System.Private.CoreLib\src\System\MissingMethodException.cs (1)
52SR.Format(SR.MissingMethod_Name, ClassName, MemberName);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
338throw new ArgumentOutOfRangeException("minValue", SR.Format(SR.Argument_MinMaxValue, "minValue", "maxValue"));
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (2)
128throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeOptionalCustomModifiers), nameof(parameterTypes))); 131throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeRequiredCustomModifiers), nameof(parameterTypes)));
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (1)
484throw new FieldAccessException(SR.Format(SR.RFLCT_CannotSetInitonlyStaticField, fieldInfo.Name, fieldInfo.DeclaringType));
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvokerCommon.cs (1)
99throw new TargetException(SR.Format(SR.RFLCT_Targ_ITargMismatch_WithType, method.DeclaringType, target.GetType()));
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (3)
158throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_Asm_Culture, a, attr.CultureName), e); 347throw new MissingManifestResourceException(SR.Format(SR.MissingManifestResource_MultipleBlobs, name, satellite.ToString())); 438throw new MissingSatelliteAssemblyException(SR.Format(SR.MissingSatelliteAssembly_Culture_Name, _mediator.NeutralResourcesCulture, satAssemName), missingCultureName);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
540throw new ArgumentException(SR.Format(SR.Arg_InvalidSatelliteContract_Asm_Ver, a, v));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
88throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResType_SerBlobMismatch, type.FullName, graph.GetType().FullName));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
848throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (2)
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)));
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\VersioningHelper.cs (1)
37throw new ArgumentException(SR.Format(SR.Argument_ResourceScopeWrongDirection, fromResType, toResType), nameof(from));
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (5)
214throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this)); 229throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType)); 737SR.Format(SR.Argument_NotEnoughGenArguments, genericArguments.Length, genericParameters.Length)); 804throw new ArgumentException(SR.Format(SR.Arg_ObjObjEx, value?.GetType(), this)); 875throw new ArgumentException(SR.Format(SR.Arg_ObjObjEx, value?.GetType(), this));
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
255throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "SByte", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
454throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Single", "Char")); 514throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Single", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
204throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSignature,
src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (1)
66SR.Format(SR.Argument_InvalidCodePageBytesIndex,
src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (6)
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); 111SR.Format(SR.ArgumentOutOfRange_Range, 0xD800, 0xDBFF)); 116SR.Format(SR.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF));
src\libraries\System.Private.CoreLib\src\System\Text\EncoderLatin1BestFitFallback.cs (2)
57SR.Format(SR.ArgumentOutOfRange_Range, 62SR.Format(SR.ArgumentOutOfRange_Range,
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
243throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, Encoding.EncodingName, _fallbackBuffer.GetType()));
src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (2)
122SR.Format(SR.ArgumentOutOfRange_Range, 0xD800, 0xDBFF)); 126SR.Format(SR.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF));
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (4)
249nameof(codepage), SR.Format(SR.ArgumentOutOfRange_Range, 0, 65535)); 1099SR.Format(SR.Argument_EncodingConversionOverflowBytes, _codePage, EncoderFallback.GetType()), "bytes"); 1127SR.Format(SR.Argument_EncodingConversionOverflowChars, _codePage, DecoderFallback.GetType()), "chars"); 1438throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty,
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
373throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType())); 656throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType()));
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
366throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType().ToString() ?? string.Empty)); 501throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType()));
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (6)
119throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, value, typeof(TEnum).Name), argumentName); 260throw new ArgumentOutOfRangeException(parameterName, value, SR.Format(SR.ArgumentOutOfRange_Range, minInclusive, maxInclusive)); 680throw new FormatException(SR.Format(SR.Format_InvalidStringWithOffsetAndReason, offset, GetResourceString(resource))); 698return new AmbiguousMatchException(SR.Format(SR.Arg_AmbiguousMatchException_MemberInfo, declaringType, memberInfo)); 736return new ArgumentException(SR.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 741return new ArgumentException(SR.Format(SR.Arg_WrongType, value, targetType), nameof(value));
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (2)
870throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, s.ToString(), nameof(TimeOnly))); 996throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, format.ToString(), nameof(TimeOnly)));
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
127e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath), ex); 135e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath));
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (2)
34throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this)); 55throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType));
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
246throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt16", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
256throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt32", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
255throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt64", "DateTime"));
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
222throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, "0", failureUpperBound), nameof(fieldCount));
src\System\GC.CoreCLR.cs (3)
81SR.Format( 408SR.Format( 417SR.Format(
src\System\Reflection\Emit\DynamicILGenerator.cs (3)
484throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(requiredCustomModifiers), nameof(parameterTypes))); 487throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(optionalCustomModifiers), nameof(parameterTypes))); 1036throw new ArgumentException(SR.Format(SR.Argument_MethodDeclaringTypeGenericLcg, m, t));
src\System\Reflection\Emit\RuntimeILGenerator.cs (1)
217throw new NotSupportedException(SR.Format(SR.NotSupported_IllegalOneByteBranch, fixupData.m_fixupPos, updateAddr));
src\System\Reflection\Emit\SignatureHelper.cs (2)
806throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(requiredCustomModifiers), nameof(arguments))); 809throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(optionalCustomModifiers), nameof(arguments)));
src\System\Reflection\FieldInfo.CoreCLR.cs (1)
17throw new ArgumentException(SR.Format(
src\System\Reflection\MethodBase.CoreCLR.cs (1)
24throw new ArgumentException(SR.Format(
src\System\Reflection\RuntimeAssembly.cs (1)
240throw new TypeLoadException(SR.Format(SR.ClassLoad_General /* TypeLoad_TypeNotFoundInAssembly */, typeName, FullName));
src\System\Reflection\RuntimeModule.cs (15)
56SR.Format(SR.Argument_InvalidToken, tk, this)); 59throw new ArgumentException(SR.Format(SR.Argument_InvalidToken, tk, this), 85throw new ArgumentException(SR.Format(SR.Argument_ResolveMethod, tk, this), 93throw new ArgumentException(SR.Format(SR.Argument_ResolveMethod, tk, this), 139SR.Format(SR.Argument_InvalidToken, tk, this)); 156throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this), nameof(metadataToken)); 169SR.Format(SR.Argument_InvalidToken, tk, this)); 186throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this), 194throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this), 232throw new ArgumentException(SR.Format(SR.Argument_ResolveType, tk, this), nameof(metadataToken)); 277SR.Format(SR.Argument_InvalidToken, tk, this)); 294throw new ArgumentException(SR.Format(SR.Argument_ResolveMember, tk, this), 304SR.Format(SR.Argument_ResolveString, metadataToken, this)); 308SR.Format(SR.Argument_InvalidToken, tk, this)); 314SR.Format(SR.Argument_ResolveString, metadataToken, this));
src\System\Reflection\TypeNameResolver.CoreCLR.cs (2)
216SR.Format(SR.TypeLoad_ResolveTypeFromAssembly, escapedTypeName, assembly.FullName)); 307throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveTypeFromAssembly, parsedName.FullName, (requestingAssembly ?? coreLib).FullName));
src\System\Runtime\InteropServices\DynamicInterfaceCastableHelpers.cs (4)
20throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, castable.GetType(), interfaceType)); 30throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, castable.GetType(), interfaceType)); 37throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_MissingImplementationAttribute, implType, nameof(DynamicInterfaceCastableImplementationAttribute))); 40throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_DoesNotImplementRequested, implType, interfaceType));
src\System\RuntimeHandles.cs (3)
1332SR.Format(SR.Argument_InvalidToken, typeToken, new ModuleHandle(module))); 1385SR.Format(SR.Argument_InvalidToken, methodToken, new ModuleHandle(module))); 1438SR.Format(SR.Argument_InvalidToken, fieldToken, new ModuleHandle(module)));
src\System\RuntimeType.ActivatorCache.cs (1)
59string friendlyMessage = SR.Format(SR.Activator_CannotCreateInstance, rt, ex.Message);
src\System\RuntimeType.CoreCLR.cs (4)
1849throw new ArgumentException(SR.Format( 1877throw new ArgumentException(SR.Format( 1899throw new ArgumentException(SR.Format( 1961throw new ArgumentException(SR.Format(