// namespace Microsoft.AspNetCore.Authentication.Facebook { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNetCore.Authentication.Facebook.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// The '{0}' option must be provided. /// internal static string Exception_OptionMustBeProvided { get { return GetString("Exception_OptionMustBeProvided"); } } /// /// The '{0}' option must be provided. /// internal static string FormatException_OptionMustBeProvided(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); } 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; } } }