// namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Test { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNetCore.Mvc.ViewFeatures.Test.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Comparing {0} to {1}. /// internal static string CompareAttributeTestResource { get => GetString("CompareAttributeTestResource"); } /// /// Comparing {0} to {1}. /// internal static string FormatCompareAttributeTestResource(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("CompareAttributeTestResource"), p0, p1); /// /// description from resources /// internal static string DisplayAttribute_Description { get => GetString("DisplayAttribute_Description"); } /// /// description from resources /// internal static string FormatDisplayAttribute_Description() => GetString("DisplayAttribute_Description"); /// /// name from resources /// internal static string DisplayAttribute_Name { get => GetString("DisplayAttribute_Name"); } /// /// name from resources /// internal static string FormatDisplayAttribute_Name() => GetString("DisplayAttribute_Name"); /// /// Error about '{0}' from resources. /// internal static string RemoteAttribute_Error { get => GetString("RemoteAttribute_Error"); } /// /// Error about '{0}' from resources. /// internal static string FormatRemoteAttribute_Error(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("RemoteAttribute_Error"), 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; } } }