// namespace Microsoft.CodeAnalysis.Razor.Workspaces { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.CodeAnalysis.Razor.Workspaces.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Value cannot be null or an empty string. /// internal static string ArgumentCannotBeNullOrEmpty { get => GetString("ArgumentCannotBeNullOrEmpty"); } /// /// Value cannot be null or an empty string. /// internal static string FormatArgumentCannotBeNullOrEmpty() => GetString("ArgumentCannotBeNullOrEmpty"); /// /// {0} must be called on a background thread. /// internal static string ForegroundDispatcher_AssertBackgroundThread { get => GetString("ForegroundDispatcher_AssertBackgroundThread"); } /// /// {0} must be called on a background thread. /// internal static string FormatForegroundDispatcher_AssertBackgroundThread(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("ForegroundDispatcher_AssertBackgroundThread"), p0); /// /// {0} must be called on the foreground thread. /// internal static string ForegroundDispatcher_AssertForegroundThread { get => GetString("ForegroundDispatcher_AssertForegroundThread"); } /// /// {0} must be called on the foreground thread. /// internal static string FormatForegroundDispatcher_AssertForegroundThread(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("ForegroundDispatcher_AssertForegroundThread"), p0); /// /// The method /// internal static string ForegroundDispatcher_NoMethodNamePlaceholder { get => GetString("ForegroundDispatcher_NoMethodNamePlaceholder"); } /// /// The method /// internal static string FormatForegroundDispatcher_NoMethodNamePlaceholder() => GetString("ForegroundDispatcher_NoMethodNamePlaceholder"); private static string GetString(string name, params string[] formatterNames) { var value = _resourceManager.GetString(name); System.Diagnostics.Debug.Assert(value != null); if (formatterNames != null) { for (var i = 0; i < formatterNames.Length; i++) { value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}"); } } return value; } } }