// namespace Microsoft.AspNet.Mvc.Abstractions { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Mvc.Abstractions.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Value cannot be null or empty. /// internal static string ArgumentCannotBeNullOrEmpty { get { return GetString("ArgumentCannotBeNullOrEmpty"); } } /// /// Value cannot be null or empty. /// internal static string FormatArgumentCannotBeNullOrEmpty() { return GetString("ArgumentCannotBeNullOrEmpty"); } /// /// The ModelMetadata property must be set before accessing this property. /// internal static string ModelBindingContext_ModelMetadataMustBeSet { get { return GetString("ModelBindingContext_ModelMetadataMustBeSet"); } } /// /// The ModelMetadata property must be set before accessing this property. /// internal static string FormatModelBindingContext_ModelMetadataMustBeSet() { return GetString("ModelBindingContext_ModelMetadataMustBeSet"); } /// /// A field previously marked invalid should not be marked valid. /// internal static string Validation_InvalidFieldCannotBeReset { get { return GetString("Validation_InvalidFieldCannotBeReset"); } } /// /// A field previously marked invalid should not be marked valid. /// internal static string FormatValidation_InvalidFieldCannotBeReset() { return GetString("Validation_InvalidFieldCannotBeReset"); } /// /// A field previously marked invalid should not be marked skipped. /// internal static string Validation_InvalidFieldCannotBeReset_ToSkipped { get { return GetString("Validation_InvalidFieldCannotBeReset_ToSkipped"); } } /// /// A field previously marked invalid should not be marked skipped. /// internal static string FormatValidation_InvalidFieldCannotBeReset_ToSkipped() { return GetString("Validation_InvalidFieldCannotBeReset_ToSkipped"); } /// /// The maximum number of allowed model errors has been reached. /// internal static string ModelStateDictionary_MaxModelStateErrors { get { return GetString("ModelStateDictionary_MaxModelStateErrors"); } } /// /// The maximum number of allowed model errors has been reached. /// internal static string FormatModelStateDictionary_MaxModelStateErrors() { return GetString("ModelStateDictionary_MaxModelStateErrors"); } /// /// Body /// internal static string BindingSource_Body { get { return GetString("BindingSource_Body"); } } /// /// Body /// internal static string FormatBindingSource_Body() { return GetString("BindingSource_Body"); } /// /// Custom /// internal static string BindingSource_Custom { get { return GetString("BindingSource_Custom"); } } /// /// Custom /// internal static string FormatBindingSource_Custom() { return GetString("BindingSource_Custom"); } /// /// Form /// internal static string BindingSource_Form { get { return GetString("BindingSource_Form"); } } /// /// Form /// internal static string FormatBindingSource_Form() { return GetString("BindingSource_Form"); } /// /// Header /// internal static string BindingSource_Header { get { return GetString("BindingSource_Header"); } } /// /// Header /// internal static string FormatBindingSource_Header() { return GetString("BindingSource_Header"); } /// /// Services /// internal static string BindingSource_Services { get { return GetString("BindingSource_Services"); } } /// /// Services /// internal static string FormatBindingSource_Services() { return GetString("BindingSource_Services"); } /// /// ModelBinding /// internal static string BindingSource_ModelBinding { get { return GetString("BindingSource_ModelBinding"); } } /// /// ModelBinding /// internal static string FormatBindingSource_ModelBinding() { return GetString("BindingSource_ModelBinding"); } /// /// Path /// internal static string BindingSource_Path { get { return GetString("BindingSource_Path"); } } /// /// Path /// internal static string FormatBindingSource_Path() { return GetString("BindingSource_Path"); } /// /// Query /// internal static string BindingSource_Query { get { return GetString("BindingSource_Query"); } } /// /// Query /// internal static string FormatBindingSource_Query() { return 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 { return 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) { return 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 { return 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) { return 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 { return 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) { return 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 { return 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) { return string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_MustBeGreedy"), p0, p1); } /// /// The supplied value is invalid for {0}. /// internal static string ModelError_InvalidValue_GenericMessage { get { return GetString("ModelError_InvalidValue_GenericMessage"); } } /// /// The supplied value is invalid for {0}. /// internal static string FormatModelError_InvalidValue_GenericMessage(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("ModelError_InvalidValue_GenericMessage"), p0); } /// /// The value '{0}' is not valid for {1}. /// internal static string ModelError_InvalidValue_MessageWithModelValue { get { return GetString("ModelError_InvalidValue_MessageWithModelValue"); } } /// /// The value '{0}' is not valid for {1}. /// internal static string FormatModelError_InvalidValue_MessageWithModelValue(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ModelError_InvalidValue_MessageWithModelValue"), p0, p1); } 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; } } }