SR
using FxResources.Microsoft.CSharp;
using System.Resources;
using System.Runtime.CompilerServices;
namespace System
{
internal static class SR
{
private static ResourceManager s_resourceManager;
private const string s_resourcesName = "FxResources.Microsoft.CSharp.SR";
private static ResourceManager ResourceManager {
get {
if (s_resourceManager == null)
s_resourceManager = new ResourceManager(ResourceType);
return s_resourceManager;
}
}
internal static string InternalCompilerError => GetResourceString("InternalCompilerError", null);
internal static string BindRequireArguments => GetResourceString("BindRequireArguments", null);
internal static string BindCallFailedOverloadResolution => GetResourceString("BindCallFailedOverloadResolution", null);
internal static string BindBinaryOperatorRequireTwoArguments => GetResourceString("BindBinaryOperatorRequireTwoArguments", null);
internal static string BindUnaryOperatorRequireOneArgument => GetResourceString("BindUnaryOperatorRequireOneArgument", null);
internal static string BindPropertyFailedMethodGroup => GetResourceString("BindPropertyFailedMethodGroup", null);
internal static string BindPropertyFailedEvent => GetResourceString("BindPropertyFailedEvent", null);
internal static string BindInvokeFailedNonDelegate => GetResourceString("BindInvokeFailedNonDelegate", null);
internal static string BindImplicitConversionRequireOneArgument => GetResourceString("BindImplicitConversionRequireOneArgument", null);
internal static string BindExplicitConversionRequireOneArgument => GetResourceString("BindExplicitConversionRequireOneArgument", null);
internal static string BindBinaryAssignmentRequireTwoArguments => GetResourceString("BindBinaryAssignmentRequireTwoArguments", null);
internal static string BindBinaryAssignmentFailedNullReference => GetResourceString("BindBinaryAssignmentFailedNullReference", null);
internal static string NullReferenceOnMemberException => GetResourceString("NullReferenceOnMemberException", null);
internal static string BindCallToConditionalMethod => GetResourceString("BindCallToConditionalMethod", null);
internal static string BindToVoidMethodButExpectResult => GetResourceString("BindToVoidMethodButExpectResult", null);
internal static string BadBinaryOps => GetResourceString("BadBinaryOps", null);
internal static string IntDivByZero => GetResourceString("IntDivByZero", null);
internal static string BadIndexLHS => GetResourceString("BadIndexLHS", null);
internal static string BadIndexCount => GetResourceString("BadIndexCount", null);
internal static string BadUnaryOp => GetResourceString("BadUnaryOp", null);
internal static string NoImplicitConv => GetResourceString("NoImplicitConv", null);
internal static string NoExplicitConv => GetResourceString("NoExplicitConv", null);
internal static string ConstOutOfRange => GetResourceString("ConstOutOfRange", null);
internal static string AmbigBinaryOps => GetResourceString("AmbigBinaryOps", null);
internal static string AmbigUnaryOp => GetResourceString("AmbigUnaryOp", null);
internal static string ValueCantBeNull => GetResourceString("ValueCantBeNull", null);
internal static string WrongNestedThis => GetResourceString("WrongNestedThis", null);
internal static string NoSuchMember => GetResourceString("NoSuchMember", null);
internal static string ObjectRequired => GetResourceString("ObjectRequired", null);
internal static string AmbigCall => GetResourceString("AmbigCall", null);
internal static string BadAccess => GetResourceString("BadAccess", null);
internal static string MethDelegateMismatch => GetResourceString("MethDelegateMismatch", null);
internal static string AssgLvalueExpected => GetResourceString("AssgLvalueExpected", null);
internal static string NoConstructors => GetResourceString("NoConstructors", null);
internal static string BadDelegateConstructor => GetResourceString("BadDelegateConstructor", null);
internal static string PropertyLacksGet => GetResourceString("PropertyLacksGet", null);
internal static string ObjectProhibited => GetResourceString("ObjectProhibited", null);
internal static string AssgReadonly => GetResourceString("AssgReadonly", null);
internal static string RefReadonly => GetResourceString("RefReadonly", null);
internal static string AssgReadonlyStatic => GetResourceString("AssgReadonlyStatic", null);
internal static string RefReadonlyStatic => GetResourceString("RefReadonlyStatic", null);
internal static string AssgReadonlyProp => GetResourceString("AssgReadonlyProp", null);
internal static string AbstractBaseCall => GetResourceString("AbstractBaseCall", null);
internal static string RefProperty => GetResourceString("RefProperty", null);
internal static string ManagedAddr => GetResourceString("ManagedAddr", null);
internal static string FixedNotNeeded => GetResourceString("FixedNotNeeded", null);
internal static string UnsafeNeeded => GetResourceString("UnsafeNeeded", null);
internal static string BadBoolOp => GetResourceString("BadBoolOp", null);
internal static string MustHaveOpTF => GetResourceString("MustHaveOpTF", null);
internal static string CheckedOverflow => GetResourceString("CheckedOverflow", null);
internal static string ConstOutOfRangeChecked => GetResourceString("ConstOutOfRangeChecked", null);
internal static string AmbigMember => GetResourceString("AmbigMember", null);
internal static string SizeofUnsafe => GetResourceString("SizeofUnsafe", null);
internal static string FieldInitRefNonstatic => GetResourceString("FieldInitRefNonstatic", null);
internal static string CallingFinalizeDepracated => GetResourceString("CallingFinalizeDepracated", null);
internal static string CallingBaseFinalizeDeprecated => GetResourceString("CallingBaseFinalizeDeprecated", null);
internal static string BadCastInFixed => GetResourceString("BadCastInFixed", null);
internal static string NoImplicitConvCast => GetResourceString("NoImplicitConvCast", null);
internal static string InaccessibleGetter => GetResourceString("InaccessibleGetter", null);
internal static string InaccessibleSetter => GetResourceString("InaccessibleSetter", null);
internal static string BadArity => GetResourceString("BadArity", null);
internal static string BadTypeArgument => GetResourceString("BadTypeArgument", null);
internal static string TypeArgsNotAllowed => GetResourceString("TypeArgsNotAllowed", null);
internal static string HasNoTypeVars => GetResourceString("HasNoTypeVars", null);
internal static string NewConstraintNotSatisfied => GetResourceString("NewConstraintNotSatisfied", null);
internal static string GenericConstraintNotSatisfiedRefType => GetResourceString("GenericConstraintNotSatisfiedRefType", null);
internal static string GenericConstraintNotSatisfiedNullableEnum => GetResourceString("GenericConstraintNotSatisfiedNullableEnum", null);
internal static string GenericConstraintNotSatisfiedNullableInterface => GetResourceString("GenericConstraintNotSatisfiedNullableInterface", null);
internal static string GenericConstraintNotSatisfiedTyVar => GetResourceString("GenericConstraintNotSatisfiedTyVar", null);
internal static string GenericConstraintNotSatisfiedValType => GetResourceString("GenericConstraintNotSatisfiedValType", null);
internal static string TypeVarCantBeNull => GetResourceString("TypeVarCantBeNull", null);
internal static string BadRetType => GetResourceString("BadRetType", null);
internal static string CantInferMethTypeArgs => GetResourceString("CantInferMethTypeArgs", null);
internal static string MethGrpToNonDel => GetResourceString("MethGrpToNonDel", null);
internal static string RefConstraintNotSatisfied => GetResourceString("RefConstraintNotSatisfied", null);
internal static string ValConstraintNotSatisfied => GetResourceString("ValConstraintNotSatisfied", null);
internal static string CircularConstraint => GetResourceString("CircularConstraint", null);
internal static string BaseConstraintConflict => GetResourceString("BaseConstraintConflict", null);
internal static string ConWithValCon => GetResourceString("ConWithValCon", null);
internal static string AmbigUDConv => GetResourceString("AmbigUDConv", null);
internal static string PredefinedTypeNotFound => GetResourceString("PredefinedTypeNotFound", null);
internal static string PredefinedTypeBadType => GetResourceString("PredefinedTypeBadType", null);
internal static string BindToBogus => GetResourceString("BindToBogus", null);
internal static string CantCallSpecialMethod => GetResourceString("CantCallSpecialMethod", null);
internal static string BogusType => GetResourceString("BogusType", null);
internal static string MissingPredefinedMember => GetResourceString("MissingPredefinedMember", null);
internal static string LiteralDoubleCast => GetResourceString("LiteralDoubleCast", null);
internal static string UnifyingInterfaceInstantiations => GetResourceString("UnifyingInterfaceInstantiations", null);
internal static string ConvertToStaticClass => GetResourceString("ConvertToStaticClass", null);
internal static string GenericArgIsStaticClass => GetResourceString("GenericArgIsStaticClass", null);
internal static string PartialMethodToDelegate => GetResourceString("PartialMethodToDelegate", null);
internal static string IncrementLvalueExpected => GetResourceString("IncrementLvalueExpected", null);
internal static string NoSuchMemberOrExtension => GetResourceString("NoSuchMemberOrExtension", null);
internal static string ValueTypeExtDelegate => GetResourceString("ValueTypeExtDelegate", null);
internal static string BadArgCount => GetResourceString("BadArgCount", null);
internal static string BadArgTypes => GetResourceString("BadArgTypes", null);
internal static string BadArgType => GetResourceString("BadArgType", null);
internal static string RefLvalueExpected => GetResourceString("RefLvalueExpected", null);
internal static string BadProtectedAccess => GetResourceString("BadProtectedAccess", null);
internal static string BindToBogusProp2 => GetResourceString("BindToBogusProp2", null);
internal static string BindToBogusProp1 => GetResourceString("BindToBogusProp1", null);
internal static string BadDelArgCount => GetResourceString("BadDelArgCount", null);
internal static string BadDelArgTypes => GetResourceString("BadDelArgTypes", null);
internal static string AssgReadonlyLocal => GetResourceString("AssgReadonlyLocal", null);
internal static string RefReadonlyLocal => GetResourceString("RefReadonlyLocal", null);
internal static string ReturnNotLValue => GetResourceString("ReturnNotLValue", null);
internal static string BadArgExtraRef => GetResourceString("BadArgExtraRef", null);
internal static string BadArgRef => GetResourceString("BadArgRef", null);
internal static string AssgReadonly2 => GetResourceString("AssgReadonly2", null);
internal static string RefReadonly2 => GetResourceString("RefReadonly2", null);
internal static string AssgReadonlyStatic2 => GetResourceString("AssgReadonlyStatic2", null);
internal static string RefReadonlyStatic2 => GetResourceString("RefReadonlyStatic2", null);
internal static string AssgReadonlyLocalCause => GetResourceString("AssgReadonlyLocalCause", null);
internal static string RefReadonlyLocalCause => GetResourceString("RefReadonlyLocalCause", null);
internal static string ThisStructNotInAnonMeth => GetResourceString("ThisStructNotInAnonMeth", null);
internal static string DelegateOnNullable => GetResourceString("DelegateOnNullable", null);
internal static string BadCtorArgCount => GetResourceString("BadCtorArgCount", null);
internal static string BadExtensionArgTypes => GetResourceString("BadExtensionArgTypes", null);
internal static string BadInstanceArgType => GetResourceString("BadInstanceArgType", null);
internal static string BadArgTypesForCollectionAdd => GetResourceString("BadArgTypesForCollectionAdd", null);
internal static string InitializerAddHasParamModifiers => GetResourceString("InitializerAddHasParamModifiers", null);
internal static string NonInvocableMemberCalled => GetResourceString("NonInvocableMemberCalled", null);
internal static string NamedArgumentSpecificationBeforeFixedArgument => GetResourceString("NamedArgumentSpecificationBeforeFixedArgument", null);
internal static string BadNamedArgument => GetResourceString("BadNamedArgument", null);
internal static string BadNamedArgumentForDelegateInvoke => GetResourceString("BadNamedArgumentForDelegateInvoke", null);
internal static string DuplicateNamedArgument => GetResourceString("DuplicateNamedArgument", null);
internal static string NamedArgumentUsedInPositional => GetResourceString("NamedArgumentUsedInPositional", null);
internal static Type ResourceType => typeof(FxResources.Microsoft.CSharp.SR);
[MethodImpl(MethodImplOptions.NoInlining)]
private static bool UsingResourceKeys()
{
return false;
}
internal static string GetResourceString(string resourceKey, string defaultString)
{
string text = null;
try {
text = ResourceManager.GetString(resourceKey);
} catch (MissingManifestResourceException) {
}
if (defaultString != null && resourceKey.Equals(text, StringComparison.Ordinal))
return defaultString;
return text;
}
internal static string Format(string resourceFormat, params object[] args)
{
if (args != null) {
if (UsingResourceKeys())
return resourceFormat + string.Join(", ", args);
return string.Format(resourceFormat, args);
}
return resourceFormat;
}
internal static string Format(string resourceFormat, object p1)
{
if (UsingResourceKeys())
return string.Join(", ", resourceFormat, p1);
return string.Format(resourceFormat, p1);
}
internal static string Format(string resourceFormat, object p1, object p2)
{
if (UsingResourceKeys())
return string.Join(", ", resourceFormat, p1, p2);
return string.Format(resourceFormat, p1, p2);
}
internal static string Format(string resourceFormat, object p1, object p2, object p3)
{
if (UsingResourceKeys())
return string.Join(", ", resourceFormat, p1, p2, p3);
return string.Format(resourceFormat, p1, p2, p3);
}
}
}