// namespace Microsoft.AspNet.Mvc.ModelBinding { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Mvc.ModelBinding.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// The argument '{0}' is null or empty. /// internal static string ArgumentNullOrEmpty { get { return GetString("ArgumentNullOrEmpty"); } } /// /// The argument '{0}' is null or empty. /// internal static string FormatArgumentNullOrEmpty(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("ArgumentNullOrEmpty"), p0); } /// /// The property {0}.{1} could not be found. /// internal static string Common_PropertyNotFound { get { return GetString("Common_PropertyNotFound"); } } /// /// The property {0}.{1} could not be found. /// internal static string FormatCommon_PropertyNotFound(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("Common_PropertyNotFound"), p0, p1); } /// /// The key is invalid JQuery syntax because it is missing a closing bracket. /// internal static string JQuerySyntaxMissingClosingBracket { get { return GetString("JQuerySyntaxMissingClosingBracket"); } } /// /// The key is invalid JQuery syntax because it is missing a closing bracket. /// internal static string FormatJQuerySyntaxMissingClosingBracket() { return GetString("JQuerySyntaxMissingClosingBracket"); } /// /// The value '{0}' is not valid for {1}. /// internal static string ModelBinderConfig_ValueInvalid { get { return GetString("ModelBinderConfig_ValueInvalid"); } } /// /// The value '{0}' is not valid for {1}. /// internal static string FormatModelBinderConfig_ValueInvalid(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderConfig_ValueInvalid"), p0, p1); } /// /// A value is required. /// internal static string ModelBinderConfig_ValueRequired { get { return GetString("ModelBinderConfig_ValueRequired"); } } /// /// A value is required. /// internal static string FormatModelBinderConfig_ValueRequired() { return GetString("ModelBinderConfig_ValueRequired"); } /// /// The binding context has a null Model, but this binder requires a non-null model of type '{0}'. /// internal static string ModelBinderUtil_ModelCannotBeNull { get { return GetString("ModelBinderUtil_ModelCannotBeNull"); } } /// /// The binding context has a null Model, but this binder requires a non-null model of type '{0}'. /// internal static string FormatModelBinderUtil_ModelCannotBeNull(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderUtil_ModelCannotBeNull"), p0); } /// /// The binding context has a Model of type '{0}', but this binder can only operate on models of type '{1}'. /// internal static string ModelBinderUtil_ModelInstanceIsWrong { get { return GetString("ModelBinderUtil_ModelInstanceIsWrong"); } } /// /// The binding context has a Model of type '{0}', but this binder can only operate on models of type '{1}'. /// internal static string FormatModelBinderUtil_ModelInstanceIsWrong(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderUtil_ModelInstanceIsWrong"), p0, p1); } /// /// The binding context cannot have a null ModelMetadata. /// internal static string ModelBinderUtil_ModelMetadataCannotBeNull { get { return GetString("ModelBinderUtil_ModelMetadataCannotBeNull"); } } /// /// The binding context cannot have a null ModelMetadata. /// internal static string FormatModelBinderUtil_ModelMetadataCannotBeNull() { return GetString("ModelBinderUtil_ModelMetadataCannotBeNull"); } /// /// The binding context has a ModelType of '{0}', but this binder can only operate on models of type '{1}'. /// internal static string ModelBinderUtil_ModelTypeIsWrong { get { return GetString("ModelBinderUtil_ModelTypeIsWrong"); } } /// /// The binding context has a ModelType of '{0}', but this binder can only operate on models of type '{1}'. /// internal static string FormatModelBinderUtil_ModelTypeIsWrong(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderUtil_ModelTypeIsWrong"), p0, p1); } /// /// 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"); } /// /// The parameter conversion from type '{0}' to type '{1}' failed. See the inner exception for more information. /// internal static string ValueProviderResult_ConversionThrew { get { return GetString("ValueProviderResult_ConversionThrew"); } } /// /// The parameter conversion from type '{0}' to type '{1}' failed. See the inner exception for more information. /// internal static string FormatValueProviderResult_ConversionThrew(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ValueProviderResult_ConversionThrew"), p0, p1); } /// /// The parameter conversion from type '{0}' to type '{1}' failed because no type converter can convert between these types. /// internal static string ValueProviderResult_NoConverterExists { get { return GetString("ValueProviderResult_NoConverterExists"); } } /// /// The parameter conversion from type '{0}' to type '{1}' failed because no type converter can convert between these types. /// internal static string FormatValueProviderResult_NoConverterExists(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ValueProviderResult_NoConverterExists"), 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; } } }