<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0-rc.1.25451.107" />

SR

static class SR
using FxResources.Microsoft.Extensions.Logging.Abstractions; using System.Resources; using System.Runtime.CompilerServices; namespace System { internal static class SR { private static readonly bool s_usingResourceKeys = GetUsingResourceKeysSwitchValue(); private static ResourceManager s_resourceManager; internal static ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new ResourceManager(typeof(FxResources.Microsoft.Extensions.Logging.Abstractions.SR))); internal static string UnexpectedNumberOfNamedParameters => GetResourceString("UnexpectedNumberOfNamedParameters"); private static bool GetUsingResourceKeysSwitchValue() { if (!AppContext.TryGetSwitch("System.Resources.UseSystemResourceKeys", out bool isEnabled)) return false; return isEnabled; } internal static bool UsingResourceKeys() { return s_usingResourceKeys; } private static string GetResourceString(string resourceKey) { if (!UsingResourceKeys()) { string result = null; try { result = ResourceManager.GetString(resourceKey); return result; } catch (MissingManifestResourceException) { return result; } } return resourceKey; } private static string GetResourceString(string resourceKey, string defaultString) { string resourceString = GetResourceString(resourceKey); if (!(resourceKey == resourceString) && resourceString != null) return resourceString; return defaultString; } [NullableContext(1)] internal static string Format(string resourceFormat, [Nullable(2)] object p1) { if (UsingResourceKeys()) { global::<>y__InlineArray2<object> buffer = default(global::<>y__InlineArray2<object>); global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray2<object>, object>(ref buffer, 0) = resourceFormat; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray2<object>, object>(ref buffer, 1) = p1; return string.Join(", ", global::<PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<global::<>y__InlineArray2<object>, object>(ref buffer, 2)); } return string.Format(resourceFormat, p1); } [NullableContext(1)] internal static string Format(string resourceFormat, [Nullable(2)] object p1, [Nullable(2)] object p2) { if (UsingResourceKeys()) { global::<>y__InlineArray3<object> buffer = default(global::<>y__InlineArray3<object>); global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray3<object>, object>(ref buffer, 0) = resourceFormat; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray3<object>, object>(ref buffer, 1) = p1; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray3<object>, object>(ref buffer, 2) = p2; return string.Join(", ", global::<PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<global::<>y__InlineArray3<object>, object>(ref buffer, 3)); } return string.Format(resourceFormat, p1, p2); } [NullableContext(2)] [return: Nullable(1)] internal static string Format([Nullable(1)] string resourceFormat, object p1, object p2, object p3) { if (UsingResourceKeys()) { global::<>y__InlineArray4<object> buffer = default(global::<>y__InlineArray4<object>); global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray4<object>, object>(ref buffer, 0) = resourceFormat; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray4<object>, object>(ref buffer, 1) = p1; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray4<object>, object>(ref buffer, 2) = p2; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray4<object>, object>(ref buffer, 3) = p3; return string.Join(", ", global::<PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<global::<>y__InlineArray4<object>, object>(ref buffer, 4)); } return string.Format(resourceFormat, p1, p2, p3); } [NullableContext(1)] internal static string Format(string resourceFormat, [Nullable(2)] params object[] args) { if (args != null) { if (UsingResourceKeys()) return resourceFormat + ", " + string.Join(", ", args); return string.Format(resourceFormat, args); } return resourceFormat; } [NullableContext(1)] internal static string Format([Nullable(2)] IFormatProvider provider, string resourceFormat, [Nullable(2)] object p1) { if (UsingResourceKeys()) { global::<>y__InlineArray2<object> buffer = default(global::<>y__InlineArray2<object>); global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray2<object>, object>(ref buffer, 0) = resourceFormat; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray2<object>, object>(ref buffer, 1) = p1; return string.Join(", ", global::<PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<global::<>y__InlineArray2<object>, object>(ref buffer, 2)); } return string.Format(provider, resourceFormat, p1); } [NullableContext(2)] [return: Nullable(1)] internal static string Format(IFormatProvider provider, [Nullable(1)] string resourceFormat, object p1, object p2) { if (UsingResourceKeys()) { global::<>y__InlineArray3<object> buffer = default(global::<>y__InlineArray3<object>); global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray3<object>, object>(ref buffer, 0) = resourceFormat; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray3<object>, object>(ref buffer, 1) = p1; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray3<object>, object>(ref buffer, 2) = p2; return string.Join(", ", global::<PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<global::<>y__InlineArray3<object>, object>(ref buffer, 3)); } return string.Format(provider, resourceFormat, p1, p2); } [NullableContext(2)] [return: Nullable(1)] internal static string Format(IFormatProvider provider, [Nullable(1)] string resourceFormat, object p1, object p2, object p3) { if (UsingResourceKeys()) { global::<>y__InlineArray4<object> buffer = default(global::<>y__InlineArray4<object>); global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray4<object>, object>(ref buffer, 0) = resourceFormat; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray4<object>, object>(ref buffer, 1) = p1; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray4<object>, object>(ref buffer, 2) = p2; global::<PrivateImplementationDetails>.InlineArrayElementRef<global::<>y__InlineArray4<object>, object>(ref buffer, 3) = p3; return string.Join(", ", global::<PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<global::<>y__InlineArray4<object>, object>(ref buffer, 4)); } return string.Format(provider, resourceFormat, p1, p2, p3); } [NullableContext(1)] internal static string Format([Nullable(2)] IFormatProvider provider, string resourceFormat, [Nullable(2)] params object[] args) { if (args != null) { if (UsingResourceKeys()) return resourceFormat + ", " + string.Join(", ", args); return string.Format(provider, resourceFormat, args); } return resourceFormat; } } }