// namespace Microsoft.AspNetCore.Mvc.Abstractions { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNetCore.Mvc.Abstractions.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Value cannot be null or empty. /// internal static string ArgumentCannotBeNullOrEmpty { get => GetString("ArgumentCannotBeNullOrEmpty"); } /// /// Value cannot be null or empty. /// internal static string FormatArgumentCannotBeNullOrEmpty() => GetString("ArgumentCannotBeNullOrEmpty"); /// /// The ModelMetadata property must be set before accessing this property. /// internal static string ModelBindingContext_ModelMetadataMustBeSet { get => GetString("ModelBindingContext_ModelMetadataMustBeSet"); } /// /// The ModelMetadata property must be set before accessing this property. /// internal static string FormatModelBindingContext_ModelMetadataMustBeSet() => GetString("ModelBindingContext_ModelMetadataMustBeSet"); /// /// A field previously marked invalid should not be marked valid. /// internal static string Validation_InvalidFieldCannotBeReset { get => GetString("Validation_InvalidFieldCannotBeReset"); } /// /// A field previously marked invalid should not be marked valid. /// internal static string FormatValidation_InvalidFieldCannotBeReset() => GetString("Validation_InvalidFieldCannotBeReset"); /// /// A field previously marked invalid should not be marked skipped. /// internal static string Validation_InvalidFieldCannotBeReset_ToSkipped { get => GetString("Validation_InvalidFieldCannotBeReset_ToSkipped"); } /// /// A field previously marked invalid should not be marked skipped. /// internal static string FormatValidation_InvalidFieldCannotBeReset_ToSkipped() => GetString("Validation_InvalidFieldCannotBeReset_ToSkipped"); /// /// The maximum number of allowed model errors has been reached. /// internal static string ModelStateDictionary_MaxModelStateErrors { get => GetString("ModelStateDictionary_MaxModelStateErrors"); } /// /// The maximum number of allowed model errors has been reached. /// internal static string FormatModelStateDictionary_MaxModelStateErrors() => GetString("ModelStateDictionary_MaxModelStateErrors"); /// /// Body /// internal static string BindingSource_Body { get => GetString("BindingSource_Body"); } /// /// Body /// internal static string FormatBindingSource_Body() => GetString("BindingSource_Body"); /// /// Custom /// internal static string BindingSource_Custom { get => GetString("BindingSource_Custom"); } /// /// Custom /// internal static string FormatBindingSource_Custom() => GetString("BindingSource_Custom"); /// /// Form /// internal static string BindingSource_Form { get => GetString("BindingSource_Form"); } /// /// Form /// internal static string FormatBindingSource_Form() => GetString("BindingSource_Form"); /// /// Header /// internal static string BindingSource_Header { get => GetString("BindingSource_Header"); } /// /// Header /// internal static string FormatBindingSource_Header() => GetString("BindingSource_Header"); /// /// Services /// internal static string BindingSource_Services { get => GetString("BindingSource_Services"); } /// /// Services /// internal static string FormatBindingSource_Services() => GetString("BindingSource_Services"); /// /// ModelBinding /// internal static string BindingSource_ModelBinding { get => GetString("BindingSource_ModelBinding"); } /// /// ModelBinding /// internal static string FormatBindingSource_ModelBinding() => GetString("BindingSource_ModelBinding"); /// /// Path /// internal static string BindingSource_Path { get => GetString("BindingSource_Path"); } /// /// Path /// internal static string FormatBindingSource_Path() => GetString("BindingSource_Path"); /// /// Query /// internal static string BindingSource_Query { get => GetString("BindingSource_Query"); } /// /// Query /// internal static string FormatBindingSource_Query() => GetString("BindingSource_Query"); /// /// The provided binding source '{0}' is a composite. '{1}' requires that the source must represent a single type of input. /// internal static string BindingSource_CannotBeComposite { get => GetString("BindingSource_CannotBeComposite"); } /// /// The provided binding source '{0}' is a composite. '{1}' requires that the source must represent a single type of input. /// internal static string FormatBindingSource_CannotBeComposite(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeComposite"), p0, p1); /// /// The provided binding source '{0}' is not a request-based binding source. '{1}' requires that the source must represent data from an HTTP request. /// internal static string BindingSource_MustBeFromRequest { get => GetString("BindingSource_MustBeFromRequest"); } /// /// The provided binding source '{0}' is not a request-based binding source. '{1}' requires that the source must represent data from an HTTP request. /// internal static string FormatBindingSource_MustBeFromRequest(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_MustBeFromRequest"), p0, p1); /// /// The provided binding source '{0}' is a greedy data source. '{1}' does not support greedy data sources. /// internal static string BindingSource_CannotBeGreedy { get => GetString("BindingSource_CannotBeGreedy"); } /// /// The provided binding source '{0}' is a greedy data source. '{1}' does not support greedy data sources. /// internal static string FormatBindingSource_CannotBeGreedy(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeGreedy"), p0, p1); /// /// The provided binding source '{0}' is not a greedy data source. '{1}' only supports greedy data sources. /// internal static string BindingSource_MustBeGreedy { get => GetString("BindingSource_MustBeGreedy"); } /// /// The provided binding source '{0}' is not a greedy data source. '{1}' only supports greedy data sources. /// internal static string FormatBindingSource_MustBeGreedy(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_MustBeGreedy"), p0, p1); /// /// Special /// internal static string BindingSource_Special { get => GetString("BindingSource_Special"); } /// /// Special /// internal static string FormatBindingSource_Special() => GetString("BindingSource_Special"); /// /// FormFile /// internal static string BindingSource_FormFile { get => GetString("BindingSource_FormFile"); } /// /// FormFile /// internal static string FormatBindingSource_FormFile() => GetString("BindingSource_FormFile"); 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; } } }