<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0-preview.4.20251.6" />

SR

static class SR
using FxResources.System.Security.Principal.Windows; using System.Resources; using System.Runtime.CompilerServices; namespace System { internal static class SR { private static ResourceManager s_resourceManager; internal static ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new ResourceManager(typeof(FxResources.System.Security.Principal.Windows.SR))); internal static string Arg_EmptyCollection => GetResourceString("Arg_EmptyCollection", null); internal static string Arg_EnumIllegalVal => GetResourceString("Arg_EnumIllegalVal", null); internal static string Argument_ImpersonateUser => GetResourceString("Argument_ImpersonateUser", null); internal static string Argument_ImproperType => GetResourceString("Argument_ImproperType", null); internal static string Argument_InvalidImpersonationToken => GetResourceString("Argument_InvalidImpersonationToken", null); internal static string Argument_InvalidValue => GetResourceString("Argument_InvalidValue", null); internal static string Argument_TokenZero => GetResourceString("Argument_TokenZero", null); internal static string ArgumentOutOfRange_ArrayTooSmall => GetResourceString("ArgumentOutOfRange_ArrayTooSmall", null); internal static string ArgumentOutOfRange_NeedNonNegNum => GetResourceString("ArgumentOutOfRange_NeedNonNegNum", null); internal static string Argument_StringZeroLength => GetResourceString("Argument_StringZeroLength", null); internal static string IdentityReference_AccountNameTooLong => GetResourceString("IdentityReference_AccountNameTooLong", null); internal static string IdentityReference_CannotCreateLogonIdsSid => GetResourceString("IdentityReference_CannotCreateLogonIdsSid", null); internal static string IdentityReference_DomainNameTooLong => GetResourceString("IdentityReference_DomainNameTooLong", null); internal static string IdentityReference_DomainSidRequired => GetResourceString("IdentityReference_DomainSidRequired", null); internal static string IdentityReference_IdentifierAuthorityTooLarge => GetResourceString("IdentityReference_IdentifierAuthorityTooLarge", null); internal static string IdentityReference_IdentityNotMapped => GetResourceString("IdentityReference_IdentityNotMapped", null); internal static string IdentityReference_InvalidNumberOfSubauthorities => GetResourceString("IdentityReference_InvalidNumberOfSubauthorities", null); internal static string IdentityReference_InvalidSidRevision => GetResourceString("IdentityReference_InvalidSidRevision", null); internal static string IdentityReference_MustBeIdentityReference => GetResourceString("IdentityReference_MustBeIdentityReference", null); internal static string IdentityReference_NotAWindowsDomain => GetResourceString("IdentityReference_NotAWindowsDomain", null); internal static string PlatformNotSupported_Principal => GetResourceString("PlatformNotSupported_Principal", null); [MethodImpl(MethodImplOptions.NoInlining)] private static bool UsingResourceKeys() { return false; } internal static string GetResourceString(string resourceKey, string defaultString = null) { if (UsingResourceKeys()) return defaultString ?? resourceKey; string text = null; try { text = ResourceManager.GetString(resourceKey); } catch (MissingManifestResourceException) { } if (defaultString != null && resourceKey.Equals(text)) return defaultString; return text; } 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); } 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(IFormatProvider provider, string resourceFormat, object p1) { if (UsingResourceKeys()) return string.Join(", ", resourceFormat, p1); return string.Format(provider, resourceFormat, p1); } internal static string Format(IFormatProvider provider, string resourceFormat, object p1, object p2) { if (UsingResourceKeys()) return string.Join(", ", resourceFormat, p1, p2); return string.Format(provider, resourceFormat, p1, p2); } internal static string Format(IFormatProvider provider, string resourceFormat, object p1, object p2, object p3) { if (UsingResourceKeys()) return string.Join(", ", resourceFormat, p1, p2, p3); return string.Format(provider, resourceFormat, p1, p2, p3); } internal static string Format(IFormatProvider provider, string resourceFormat, params object[] args) { if (args != null) { if (UsingResourceKeys()) return resourceFormat + ", " + string.Join(", ", args); return string.Format(provider, resourceFormat, args); } return resourceFormat; } } }