Update more resource designer files

This commit is contained in:
Pranav K 2017-04-04 13:54:05 -07:00
parent e5ccac8bf6
commit 2d19a82678
6 changed files with 114 additions and 224 deletions

View File

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

View File

@ -15,128 +15,112 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages
/// </summary> /// </summary>
internal static string PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable internal static string PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable
{ {
get { return GetString("PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable"); } get => GetString("PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable");
} }
/// <summary> /// <summary>
/// The route for the page at '{0}' cannot start with / or ~/. Pages do not support overriding the file path of the page. /// The route for the page at '{0}' cannot start with / or ~/. Pages do not support overriding the file path of the page.
/// </summary> /// </summary>
internal static string FormatPageActionDescriptorProvider_RouteTemplateCannotBeOverrideable(object p0) internal static string FormatPageActionDescriptorProvider_RouteTemplateCannotBeOverrideable(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable"), p0);
}
/// <summary> /// <summary>
/// The '{0}' property of '{1}' must not be null. /// The '{0}' property of '{1}' must not be null.
/// </summary> /// </summary>
internal static string PropertyOfTypeCannotBeNull internal static string PropertyOfTypeCannotBeNull
{ {
get { return GetString("PropertyOfTypeCannotBeNull"); } get => GetString("PropertyOfTypeCannotBeNull");
} }
/// <summary> /// <summary>
/// The '{0}' property of '{1}' must not be null. /// The '{0}' property of '{1}' must not be null.
/// </summary> /// </summary>
internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1);
}
/// <summary> /// <summary>
/// Page created by '{0}' must be an instance of '{1}'. /// Page created by '{0}' must be an instance of '{1}'.
/// </summary> /// </summary>
internal static string ActivatedInstance_MustBeAnInstanceOf internal static string ActivatedInstance_MustBeAnInstanceOf
{ {
get { return GetString("ActivatedInstance_MustBeAnInstanceOf"); } get => GetString("ActivatedInstance_MustBeAnInstanceOf");
} }
/// <summary> /// <summary>
/// Page created by '{0}' must be an instance of '{1}'. /// Page created by '{0}' must be an instance of '{1}'.
/// </summary> /// </summary>
internal static string FormatActivatedInstance_MustBeAnInstanceOf(object p0, object p1) internal static string FormatActivatedInstance_MustBeAnInstanceOf(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("ActivatedInstance_MustBeAnInstanceOf"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("ActivatedInstance_MustBeAnInstanceOf"), p0, p1);
}
/// <summary> /// <summary>
/// Argument '{0}' is not the same instance used to create '{1}'. /// Argument '{0}' is not the same instance used to create '{1}'.
/// </summary> /// </summary>
internal static string PageViewResult_ContextIsInvalid internal static string PageViewResult_ContextIsInvalid
{ {
get { return GetString("PageViewResult_ContextIsInvalid"); } get => GetString("PageViewResult_ContextIsInvalid");
} }
/// <summary> /// <summary>
/// Argument '{0}' is not the same instance used to create '{1}'. /// Argument '{0}' is not the same instance used to create '{1}'.
/// </summary> /// </summary>
internal static string FormatPageViewResult_ContextIsInvalid(object p0, object p1) internal static string FormatPageViewResult_ContextIsInvalid(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("PageViewResult_ContextIsInvalid"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("PageViewResult_ContextIsInvalid"), p0, p1);
}
/// <summary> /// <summary>
/// Value cannot be null or empty. /// Value cannot be null or empty.
/// </summary> /// </summary>
internal static string ArgumentCannotBeNullOrEmpty internal static string ArgumentCannotBeNullOrEmpty
{ {
get { return GetString("ArgumentCannotBeNullOrEmpty"); } get => GetString("ArgumentCannotBeNullOrEmpty");
} }
/// <summary> /// <summary>
/// Value cannot be null or empty. /// Value cannot be null or empty.
/// </summary> /// </summary>
internal static string FormatArgumentCannotBeNullOrEmpty() internal static string FormatArgumentCannotBeNullOrEmpty()
{ => GetString("ArgumentCannotBeNullOrEmpty");
return GetString("ArgumentCannotBeNullOrEmpty");
}
/// <summary> /// <summary>
/// Unsupported handler method return type '{0}'. /// Unsupported handler method return type '{0}'.
/// </summary> /// </summary>
internal static string UnsupportedHandlerMethodType internal static string UnsupportedHandlerMethodType
{ {
get { return GetString("UnsupportedHandlerMethodType"); } get => GetString("UnsupportedHandlerMethodType");
} }
/// <summary> /// <summary>
/// Unsupported handler method return type '{0}'. /// Unsupported handler method return type '{0}'.
/// </summary> /// </summary>
internal static string FormatUnsupportedHandlerMethodType(object p0) internal static string FormatUnsupportedHandlerMethodType(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedHandlerMethodType"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedHandlerMethodType"), p0);
}
/// <summary> /// <summary>
/// Multiple handlers matched. The following handlers matched route data and had all constraints satisfied:{0}{0}{1} /// Multiple handlers matched. The following handlers matched route data and had all constraints satisfied:{0}{0}{1}
/// </summary> /// </summary>
internal static string AmbiguousHandler internal static string AmbiguousHandler
{ {
get { return GetString("AmbiguousHandler"); } get => GetString("AmbiguousHandler");
} }
/// <summary> /// <summary>
/// Multiple handlers matched. The following handlers matched route data and had all constraints satisfied:{0}{0}{1} /// Multiple handlers matched. The following handlers matched route data and had all constraints satisfied:{0}{0}{1}
/// </summary> /// </summary>
internal static string FormatAmbiguousHandler(object p0, object p1) internal static string FormatAmbiguousHandler(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("AmbiguousHandler"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("AmbiguousHandler"), p0, p1);
}
/// <summary> /// <summary>
/// Path must be an application relative path that starts with a forward slash '/'. /// Path must be an application relative path that starts with a forward slash '/'.
/// </summary> /// </summary>
internal static string PathMustBeAnAppRelativePath internal static string PathMustBeAnAppRelativePath
{ {
get { return GetString("PathMustBeAnAppRelativePath"); } get => GetString("PathMustBeAnAppRelativePath");
} }
/// <summary> /// <summary>
/// Path must be an application relative path that starts with a forward slash '/'. /// Path must be an application relative path that starts with a forward slash '/'.
/// </summary> /// </summary>
internal static string FormatPathMustBeAnAppRelativePath() internal static string FormatPathMustBeAnAppRelativePath()
{ => GetString("PathMustBeAnAppRelativePath");
return GetString("PathMustBeAnAppRelativePath");
}
private static string GetString(string name, params string[] formatterNames) private static string GetString(string name, params string[] formatterNames)
{ {

View File

@ -15,208 +15,182 @@ namespace Microsoft.AspNetCore.Mvc.TagHelpers
/// </summary> /// </summary>
internal static string AnchorTagHelper_CannotDetermineHrefRouteActionOrControllerSpecified internal static string AnchorTagHelper_CannotDetermineHrefRouteActionOrControllerSpecified
{ {
get { return GetString("AnchorTagHelper_CannotDetermineHrefRouteActionOrControllerSpecified"); } get => GetString("AnchorTagHelper_CannotDetermineHrefRouteActionOrControllerSpecified");
} }
/// <summary> /// <summary>
/// Cannot determine an '{4}' attribute for {0}. An {0} with a specified '{1}' must not have an '{2}' or '{3}' attribute. /// Cannot determine an '{4}' attribute for {0}. An {0} with a specified '{1}' must not have an '{2}' or '{3}' attribute.
/// </summary> /// </summary>
internal static string FormatAnchorTagHelper_CannotDetermineHrefRouteActionOrControllerSpecified(object p0, object p1, object p2, object p3, object p4) internal static string FormatAnchorTagHelper_CannotDetermineHrefRouteActionOrControllerSpecified(object p0, object p1, object p2, object p3, object p4)
{ => string.Format(CultureInfo.CurrentCulture, GetString("AnchorTagHelper_CannotDetermineHrefRouteActionOrControllerSpecified"), p0, p1, p2, p3, p4);
return string.Format(CultureInfo.CurrentCulture, GetString("AnchorTagHelper_CannotDetermineHrefRouteActionOrControllerSpecified"), p0, p1, p2, p3, p4);
}
/// <summary> /// <summary>
/// Cannot override the '{9}' attribute for {0}. An {0} with a specified '{9}' must not have attributes starting with '{8}' or an '{1}', '{2}', '{3}', '{4}', '{5}', '{6}', or '{7}' attribute. /// Cannot override the '{9}' attribute for {0}. An {0} with a specified '{9}' must not have attributes starting with '{8}' or an '{1}', '{2}', '{3}', '{4}', '{5}', '{6}', or '{7}' attribute.
/// </summary> /// </summary>
internal static string AnchorTagHelper_CannotOverrideHref internal static string AnchorTagHelper_CannotOverrideHref
{ {
get { return GetString("AnchorTagHelper_CannotOverrideHref"); } get => GetString("AnchorTagHelper_CannotOverrideHref");
} }
/// <summary> /// <summary>
/// Cannot override the '{9}' attribute for {0}. An {0} with a specified '{9}' must not have attributes starting with '{8}' or an '{1}', '{2}', '{3}', '{4}', '{5}', '{6}', or '{7}' attribute. /// Cannot override the '{9}' attribute for {0}. An {0} with a specified '{9}' must not have attributes starting with '{8}' or an '{1}', '{2}', '{3}', '{4}', '{5}', '{6}', or '{7}' attribute.
/// </summary> /// </summary>
internal static string FormatAnchorTagHelper_CannotOverrideHref(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7, object p8, object p9) internal static string FormatAnchorTagHelper_CannotOverrideHref(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7, object p8, object p9)
{ => string.Format(CultureInfo.CurrentCulture, GetString("AnchorTagHelper_CannotOverrideHref"), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
return string.Format(CultureInfo.CurrentCulture, GetString("AnchorTagHelper_CannotOverrideHref"), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
}
/// <summary> /// <summary>
/// Cannot override the '{1}' attribute for {0}. A {0} with a specified '{1}' must not have attributes starting with '{7}' or an '{2}', '{3}', '{4}', '{5}', or '{6}' attribute. /// Cannot override the '{1}' attribute for {0}. A {0} with a specified '{1}' must not have attributes starting with '{7}' or an '{2}', '{3}', '{4}', '{5}', or '{6}' attribute.
/// </summary> /// </summary>
internal static string FormTagHelper_CannotOverrideAction internal static string FormTagHelper_CannotOverrideAction
{ {
get { return GetString("FormTagHelper_CannotOverrideAction"); } get => GetString("FormTagHelper_CannotOverrideAction");
} }
/// <summary> /// <summary>
/// Cannot override the '{1}' attribute for {0}. A {0} with a specified '{1}' must not have attributes starting with '{7}' or an '{2}', '{3}', '{4}', '{5}', or '{6}' attribute. /// Cannot override the '{1}' attribute for {0}. A {0} with a specified '{1}' must not have attributes starting with '{7}' or an '{2}', '{3}', '{4}', '{5}', or '{6}' attribute.
/// </summary> /// </summary>
internal static string FormatFormTagHelper_CannotOverrideAction(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7) internal static string FormatFormTagHelper_CannotOverrideAction(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7)
{ => string.Format(CultureInfo.CurrentCulture, GetString("FormTagHelper_CannotOverrideAction"), p0, p1, p2, p3, p4, p5, p6, p7);
return string.Format(CultureInfo.CurrentCulture, GetString("FormTagHelper_CannotOverrideAction"), p0, p1, p2, p3, p4, p5, p6, p7);
}
/// <summary> /// <summary>
/// Unexpected '{1}' expression result type '{2}' for {0}. '{1}' must be of type '{3}' or '{4}' that can be parsed as a '{3}' if '{5}' is '{6}'. /// Unexpected '{1}' expression result type '{2}' for {0}. '{1}' must be of type '{3}' or '{4}' that can be parsed as a '{3}' if '{5}' is '{6}'.
/// </summary> /// </summary>
internal static string InputTagHelper_InvalidExpressionResult internal static string InputTagHelper_InvalidExpressionResult
{ {
get { return GetString("InputTagHelper_InvalidExpressionResult"); } get => GetString("InputTagHelper_InvalidExpressionResult");
} }
/// <summary> /// <summary>
/// Unexpected '{1}' expression result type '{2}' for {0}. '{1}' must be of type '{3}' or '{4}' that can be parsed as a '{3}' if '{5}' is '{6}'. /// Unexpected '{1}' expression result type '{2}' for {0}. '{1}' must be of type '{3}' or '{4}' that can be parsed as a '{3}' if '{5}' is '{6}'.
/// </summary> /// </summary>
internal static string FormatInputTagHelper_InvalidExpressionResult(object p0, object p1, object p2, object p3, object p4, object p5, object p6) internal static string FormatInputTagHelper_InvalidExpressionResult(object p0, object p1, object p2, object p3, object p4, object p5, object p6)
{ => string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_InvalidExpressionResult"), p0, p1, p2, p3, p4, p5, p6);
return string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_InvalidExpressionResult"), p0, p1, p2, p3, p4, p5, p6);
}
/// <summary> /// <summary>
/// Unexpected expression result value '{1}' for {0}. '{1}' cannot be parsed as a '{2}'. /// Unexpected expression result value '{1}' for {0}. '{1}' cannot be parsed as a '{2}'.
/// </summary> /// </summary>
internal static string InputTagHelper_InvalidStringResult internal static string InputTagHelper_InvalidStringResult
{ {
get { return GetString("InputTagHelper_InvalidStringResult"); } get => GetString("InputTagHelper_InvalidStringResult");
} }
/// <summary> /// <summary>
/// Unexpected expression result value '{1}' for {0}. '{1}' cannot be parsed as a '{2}'. /// Unexpected expression result value '{1}' for {0}. '{1}' cannot be parsed as a '{2}'.
/// </summary> /// </summary>
internal static string FormatInputTagHelper_InvalidStringResult(object p0, object p1, object p2) internal static string FormatInputTagHelper_InvalidStringResult(object p0, object p1, object p2)
{ => string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_InvalidStringResult"), p0, p1, p2);
return string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_InvalidStringResult"), p0, p1, p2);
}
/// <summary> /// <summary>
/// '{1}' must not be null for {0} if '{2}' is '{3}'. /// '{1}' must not be null for {0} if '{2}' is '{3}'.
/// </summary> /// </summary>
internal static string InputTagHelper_ValueRequired internal static string InputTagHelper_ValueRequired
{ {
get { return GetString("InputTagHelper_ValueRequired"); } get => GetString("InputTagHelper_ValueRequired");
} }
/// <summary> /// <summary>
/// '{1}' must not be null for {0} if '{2}' is '{3}'. /// '{1}' must not be null for {0} if '{2}' is '{3}'.
/// </summary> /// </summary>
internal static string FormatInputTagHelper_ValueRequired(object p0, object p1, object p2, object p3) internal static string FormatInputTagHelper_ValueRequired(object p0, object p1, object p2, object p3)
{ => string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_ValueRequired"), p0, p1, p2, p3);
return string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_ValueRequired"), p0, p1, p2, p3);
}
/// <summary> /// <summary>
/// The {2} was unable to provide metadata about '{1}' expression value '{3}' for {0}. /// The {2} was unable to provide metadata about '{1}' expression value '{3}' for {0}.
/// </summary> /// </summary>
internal static string TagHelpers_NoProvidedMetadata internal static string TagHelpers_NoProvidedMetadata
{ {
get { return GetString("TagHelpers_NoProvidedMetadata"); } get => GetString("TagHelpers_NoProvidedMetadata");
} }
/// <summary> /// <summary>
/// The {2} was unable to provide metadata about '{1}' expression value '{3}' for {0}. /// The {2} was unable to provide metadata about '{1}' expression value '{3}' for {0}.
/// </summary> /// </summary>
internal static string FormatTagHelpers_NoProvidedMetadata(object p0, object p1, object p2, object p3) internal static string FormatTagHelpers_NoProvidedMetadata(object p0, object p1, object p2, object p3)
{ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_NoProvidedMetadata"), p0, p1, p2, p3);
return string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_NoProvidedMetadata"), p0, p1, p2, p3);
}
/// <summary> /// <summary>
/// The value of argument '{0}' ({1}) is invalid for Enum type '{2}'. /// The value of argument '{0}' ({1}) is invalid for Enum type '{2}'.
/// </summary> /// </summary>
internal static string InvalidEnumArgument internal static string InvalidEnumArgument
{ {
get { return GetString("InvalidEnumArgument"); } get => GetString("InvalidEnumArgument");
} }
/// <summary> /// <summary>
/// The value of argument '{0}' ({1}) is invalid for Enum type '{2}'. /// The value of argument '{0}' ({1}) is invalid for Enum type '{2}'.
/// </summary> /// </summary>
internal static string FormatInvalidEnumArgument(object p0, object p1, object p2) internal static string FormatInvalidEnumArgument(object p0, object p1, object p2)
{ => string.Format(CultureInfo.CurrentCulture, GetString("InvalidEnumArgument"), p0, p1, p2);
return string.Format(CultureInfo.CurrentCulture, GetString("InvalidEnumArgument"), p0, p1, p2);
}
/// <summary> /// <summary>
/// The attribute '{0}' does not exist in the {1}. /// The attribute '{0}' does not exist in the {1}.
/// </summary> /// </summary>
internal static string TagHelperOutput_AttributeDoesNotExist internal static string TagHelperOutput_AttributeDoesNotExist
{ {
get { return GetString("TagHelperOutput_AttributeDoesNotExist"); } get => GetString("TagHelperOutput_AttributeDoesNotExist");
} }
/// <summary> /// <summary>
/// The attribute '{0}' does not exist in the {1}. /// The attribute '{0}' does not exist in the {1}.
/// </summary> /// </summary>
internal static string FormatTagHelperOutput_AttributeDoesNotExist(object p0, object p1) internal static string FormatTagHelperOutput_AttributeDoesNotExist(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperOutput_AttributeDoesNotExist"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("TagHelperOutput_AttributeDoesNotExist"), p0, p1);
}
/// <summary> /// <summary>
/// Cannot determine an '{4}' attribute for {0}. A {0} with a specified '{1}' must not have an '{2}', '{3}', or '{5}' attribute. /// Cannot determine an '{4}' attribute for {0}. A {0} with a specified '{1}' must not have an '{2}', '{3}', or '{5}' attribute.
/// </summary> /// </summary>
internal static string FormTagHelper_CannotDetermineActionWithRouteAndActionOrControllerSpecified internal static string FormTagHelper_CannotDetermineActionWithRouteAndActionOrControllerSpecified
{ {
get { return GetString("FormTagHelper_CannotDetermineActionWithRouteAndActionOrControllerSpecified"); } get => GetString("FormTagHelper_CannotDetermineActionWithRouteAndActionOrControllerSpecified");
} }
/// <summary> /// <summary>
/// Cannot determine an '{4}' attribute for {0}. A {0} with a specified '{1}' must not have an '{2}', '{3}', or '{5}' attribute. /// Cannot determine an '{4}' attribute for {0}. A {0} with a specified '{1}' must not have an '{2}', '{3}', or '{5}' attribute.
/// </summary> /// </summary>
internal static string FormatFormTagHelper_CannotDetermineActionWithRouteAndActionOrControllerSpecified(object p0, object p1, object p2, object p3, object p4, object p5) internal static string FormatFormTagHelper_CannotDetermineActionWithRouteAndActionOrControllerSpecified(object p0, object p1, object p2, object p3, object p4, object p5)
{ => string.Format(CultureInfo.CurrentCulture, GetString("FormTagHelper_CannotDetermineActionWithRouteAndActionOrControllerSpecified"), p0, p1, p2, p3, p4, p5);
return string.Format(CultureInfo.CurrentCulture, GetString("FormTagHelper_CannotDetermineActionWithRouteAndActionOrControllerSpecified"), p0, p1, p2, p3, p4, p5);
}
/// <summary> /// <summary>
/// The '{0}' property of '{1}' must not be null. /// The '{0}' property of '{1}' must not be null.
/// </summary> /// </summary>
internal static string PropertyOfTypeCannotBeNull internal static string PropertyOfTypeCannotBeNull
{ {
get { return GetString("PropertyOfTypeCannotBeNull"); } get => GetString("PropertyOfTypeCannotBeNull");
} }
/// <summary> /// <summary>
/// The '{0}' property of '{1}' must not be null. /// The '{0}' property of '{1}' must not be null.
/// </summary> /// </summary>
internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1);
}
/// <summary> /// <summary>
/// Cannot override the '{7}' attribute for &lt;{0}&gt;. &lt;{0}&gt; elements with a specified '{7}' must not have attributes starting with '{6}' or an '{1}', '{2}', '{3}', '{4}', or '{5}' attribute. /// Cannot override the '{7}' attribute for &lt;{0}&gt;. &lt;{0}&gt; elements with a specified '{7}' must not have attributes starting with '{6}' or an '{1}', '{2}', '{3}', '{4}', or '{5}' attribute.
/// </summary> /// </summary>
internal static string FormActionTagHelper_CannotOverrideFormAction internal static string FormActionTagHelper_CannotOverrideFormAction
{ {
get { return GetString("FormActionTagHelper_CannotOverrideFormAction"); } get => GetString("FormActionTagHelper_CannotOverrideFormAction");
} }
/// <summary> /// <summary>
/// Cannot override the '{7}' attribute for &lt;{0}&gt;. &lt;{0}&gt; elements with a specified '{7}' must not have attributes starting with '{6}' or an '{1}', '{2}', '{3}', '{4}', or '{5}' attribute. /// Cannot override the '{7}' attribute for &lt;{0}&gt;. &lt;{0}&gt; elements with a specified '{7}' must not have attributes starting with '{6}' or an '{1}', '{2}', '{3}', '{4}', or '{5}' attribute.
/// </summary> /// </summary>
internal static string FormatFormActionTagHelper_CannotOverrideFormAction(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7) internal static string FormatFormActionTagHelper_CannotOverrideFormAction(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7)
{ => string.Format(CultureInfo.CurrentCulture, GetString("FormActionTagHelper_CannotOverrideFormAction"), p0, p1, p2, p3, p4, p5, p6, p7);
return string.Format(CultureInfo.CurrentCulture, GetString("FormActionTagHelper_CannotOverrideFormAction"), p0, p1, p2, p3, p4, p5, p6, p7);
}
/// <summary> /// <summary>
/// Cannot determine a '{4}' attribute for &lt;{0}&gt;. &lt;{0}&gt; elements with a specified '{1}' must not have an '{2}', '{3}', or '{5}' attribute. /// Cannot determine a '{4}' attribute for &lt;{0}&gt;. &lt;{0}&gt; elements with a specified '{1}' must not have an '{2}', '{3}', or '{5}' attribute.
/// </summary> /// </summary>
internal static string FormActionTagHelper_CannotDetermineFormActionRouteActionOrControllerSpecified internal static string FormActionTagHelper_CannotDetermineFormActionRouteActionOrControllerSpecified
{ {
get { return GetString("FormActionTagHelper_CannotDetermineFormActionRouteActionOrControllerSpecified"); } get => GetString("FormActionTagHelper_CannotDetermineFormActionRouteActionOrControllerSpecified");
} }
/// <summary> /// <summary>
/// Cannot determine a '{4}' attribute for &lt;{0}&gt;. &lt;{0}&gt; elements with a specified '{1}' must not have an '{2}', '{3}', or '{5}' attribute. /// Cannot determine a '{4}' attribute for &lt;{0}&gt;. &lt;{0}&gt; elements with a specified '{1}' must not have an '{2}', '{3}', or '{5}' attribute.
/// </summary> /// </summary>
internal static string FormatFormActionTagHelper_CannotDetermineFormActionRouteActionOrControllerSpecified(object p0, object p1, object p2, object p3, object p4, object p5) internal static string FormatFormActionTagHelper_CannotDetermineFormActionRouteActionOrControllerSpecified(object p0, object p1, object p2, object p3, object p4, object p5)
{ => string.Format(CultureInfo.CurrentCulture, GetString("FormActionTagHelper_CannotDetermineFormActionRouteActionOrControllerSpecified"), p0, p1, p2, p3, p4, p5);
return string.Format(CultureInfo.CurrentCulture, GetString("FormActionTagHelper_CannotDetermineFormActionRouteActionOrControllerSpecified"), p0, p1, p2, p3, p4, p5);
}
private static string GetString(string name, params string[] formatterNames) private static string GetString(string name, params string[] formatterNames)
{ {

View File

@ -795,7 +795,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
=> string.Format(CultureInfo.CurrentCulture, GetString("ViewEnginesAreRequired"), p0, p1, p2); => string.Format(CultureInfo.CurrentCulture, GetString("ViewEnginesAreRequired"), p0, p1, p2);
/// <summary> /// <summary>
/// TempData property {0} is not declared as a primitive type or string. /// The '{0}.{1}' property with {2} is invalid. A property using {2} must be of primitive or string type.
/// </summary> /// </summary>
internal static string TempDataProperties_PrimitiveTypeOrString internal static string TempDataProperties_PrimitiveTypeOrString
{ {
@ -803,13 +803,13 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
} }
/// <summary> /// <summary>
/// TempData property {0} is not declared as a primitive type or string. /// The '{0}.{1}' property with {2} is invalid. A property using {2} must be of primitive or string type.
/// </summary> /// </summary>
internal static string FormatTempDataProperties_PrimitiveTypeOrString(object p0, object p1, object p2) internal static string FormatTempDataProperties_PrimitiveTypeOrString(object p0, object p1, object p2)
=> string.Format(CultureInfo.CurrentCulture, GetString("TempDataProperties_PrimitiveTypeOrString"), p0, p1, p2); => string.Format(CultureInfo.CurrentCulture, GetString("TempDataProperties_PrimitiveTypeOrString"), p0, p1, p2);
/// <summary> /// <summary>
/// TempData property {0} does not have a public getter or setter. /// The '{0}.{1}' property with {2} is invalid. A property using {2} must have a public getter and setter.
/// </summary> /// </summary>
internal static string TempDataProperties_PublicGetterSetter internal static string TempDataProperties_PublicGetterSetter
{ {
@ -817,7 +817,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
} }
/// <summary> /// <summary>
/// TempData property {0} does not have a public getter or setter. /// The '{0}.{1}' property with {2} is invalid. A property using {2} must have a public getter and setter.
/// </summary> /// </summary>
internal static string FormatTempDataProperties_PublicGetterSetter(object p0, object p1, object p2) internal static string FormatTempDataProperties_PublicGetterSetter(object p0, object p1, object p2)
=> string.Format(CultureInfo.CurrentCulture, GetString("TempDataProperties_PublicGetterSetter"), p0, p1, p2); => string.Format(CultureInfo.CurrentCulture, GetString("TempDataProperties_PublicGetterSetter"), p0, p1, p2);

View File

@ -15,176 +15,154 @@ namespace Microsoft.AspNetCore.Mvc.WebApiCompatShim
/// </summary> /// </summary>
internal static string HttpError_BadRequest internal static string HttpError_BadRequest
{ {
get { return GetString("HttpError_BadRequest"); } get => GetString("HttpError_BadRequest");
} }
/// <summary> /// <summary>
/// The request is invalid. /// The request is invalid.
/// </summary> /// </summary>
internal static string FormatHttpError_BadRequest() internal static string FormatHttpError_BadRequest()
{ => GetString("HttpError_BadRequest");
return GetString("HttpError_BadRequest");
}
/// <summary> /// <summary>
/// An error has occurred. /// An error has occurred.
/// </summary> /// </summary>
internal static string HttpError_GenericError internal static string HttpError_GenericError
{ {
get { return GetString("HttpError_GenericError"); } get => GetString("HttpError_GenericError");
} }
/// <summary> /// <summary>
/// An error has occurred. /// An error has occurred.
/// </summary> /// </summary>
internal static string FormatHttpError_GenericError() internal static string FormatHttpError_GenericError()
{ => GetString("HttpError_GenericError");
return GetString("HttpError_GenericError");
}
/// <summary> /// <summary>
/// The model state is valid. /// The model state is valid.
/// </summary> /// </summary>
internal static string HttpError_ValidModelState internal static string HttpError_ValidModelState
{ {
get { return GetString("HttpError_ValidModelState"); } get => GetString("HttpError_ValidModelState");
} }
/// <summary> /// <summary>
/// The model state is valid. /// The model state is valid.
/// </summary> /// </summary>
internal static string FormatHttpError_ValidModelState() internal static string FormatHttpError_ValidModelState()
{ => GetString("HttpError_ValidModelState");
return GetString("HttpError_ValidModelState");
}
/// <summary> /// <summary>
/// Could not find a formatter matching the media type '{0}' that can write an instance of '{1}'. /// Could not find a formatter matching the media type '{0}' that can write an instance of '{1}'.
/// </summary> /// </summary>
internal static string HttpRequestMessage_CouldNotFindMatchingFormatter internal static string HttpRequestMessage_CouldNotFindMatchingFormatter
{ {
get { return GetString("HttpRequestMessage_CouldNotFindMatchingFormatter"); } get => GetString("HttpRequestMessage_CouldNotFindMatchingFormatter");
} }
/// <summary> /// <summary>
/// Could not find a formatter matching the media type '{0}' that can write an instance of '{1}'. /// Could not find a formatter matching the media type '{0}' that can write an instance of '{1}'.
/// </summary> /// </summary>
internal static string FormatHttpRequestMessage_CouldNotFindMatchingFormatter(object p0, object p1) internal static string FormatHttpRequestMessage_CouldNotFindMatchingFormatter(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("HttpRequestMessage_CouldNotFindMatchingFormatter"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("HttpRequestMessage_CouldNotFindMatchingFormatter"), p0, p1);
}
/// <summary> /// <summary>
/// The {0} instance is not properly initialized. Use {1} to create an {0} for the current request. /// The {0} instance is not properly initialized. Use {1} to create an {0} for the current request.
/// </summary> /// </summary>
internal static string HttpRequestMessage_MustHaveHttpContext internal static string HttpRequestMessage_MustHaveHttpContext
{ {
get { return GetString("HttpRequestMessage_MustHaveHttpContext"); } get => GetString("HttpRequestMessage_MustHaveHttpContext");
} }
/// <summary> /// <summary>
/// The {0} instance is not properly initialized. Use {1} to create an {0} for the current request. /// The {0} instance is not properly initialized. Use {1} to create an {0} for the current request.
/// </summary> /// </summary>
internal static string FormatHttpRequestMessage_MustHaveHttpContext(object p0, object p1) internal static string FormatHttpRequestMessage_MustHaveHttpContext(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("HttpRequestMessage_MustHaveHttpContext"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("HttpRequestMessage_MustHaveHttpContext"), p0, p1);
}
/// <summary> /// <summary>
/// The {0} only supports writing objects of type {1}. /// The {0} only supports writing objects of type {1}.
/// </summary> /// </summary>
internal static string HttpResponseMessageFormatter_UnsupportedType internal static string HttpResponseMessageFormatter_UnsupportedType
{ {
get { return GetString("HttpResponseMessageFormatter_UnsupportedType"); } get => GetString("HttpResponseMessageFormatter_UnsupportedType");
} }
/// <summary> /// <summary>
/// The {0} only supports writing objects of type {1}. /// The {0} only supports writing objects of type {1}.
/// </summary> /// </summary>
internal static string FormatHttpResponseMessageFormatter_UnsupportedType(object p0, object p1) internal static string FormatHttpResponseMessageFormatter_UnsupportedType(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("HttpResponseMessageFormatter_UnsupportedType"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("HttpResponseMessageFormatter_UnsupportedType"), p0, p1);
}
/// <summary> /// <summary>
/// The key is invalid JQuery syntax because it is missing a closing bracket. /// The key is invalid JQuery syntax because it is missing a closing bracket.
/// </summary> /// </summary>
internal static string JQuerySyntaxMissingClosingBracket internal static string JQuerySyntaxMissingClosingBracket
{ {
get { return GetString("JQuerySyntaxMissingClosingBracket"); } get => GetString("JQuerySyntaxMissingClosingBracket");
} }
/// <summary> /// <summary>
/// The key is invalid JQuery syntax because it is missing a closing bracket. /// The key is invalid JQuery syntax because it is missing a closing bracket.
/// </summary> /// </summary>
internal static string FormatJQuerySyntaxMissingClosingBracket() internal static string FormatJQuerySyntaxMissingClosingBracket()
{ => GetString("JQuerySyntaxMissingClosingBracket");
return GetString("JQuerySyntaxMissingClosingBracket");
}
/// <summary> /// <summary>
/// The number of keys in a NameValueCollection has exceeded the limit of '{0}'. You can adjust it by modifying the MaxHttpCollectionKeys property on the '{1}' class. /// The number of keys in a NameValueCollection has exceeded the limit of '{0}'. You can adjust it by modifying the MaxHttpCollectionKeys property on the '{1}' class.
/// </summary> /// </summary>
internal static string MaxHttpCollectionKeyLimitReached internal static string MaxHttpCollectionKeyLimitReached
{ {
get { return GetString("MaxHttpCollectionKeyLimitReached"); } get => GetString("MaxHttpCollectionKeyLimitReached");
} }
/// <summary> /// <summary>
/// The number of keys in a NameValueCollection has exceeded the limit of '{0}'. You can adjust it by modifying the MaxHttpCollectionKeys property on the '{1}' class. /// The number of keys in a NameValueCollection has exceeded the limit of '{0}'. You can adjust it by modifying the MaxHttpCollectionKeys property on the '{1}' class.
/// </summary> /// </summary>
internal static string FormatMaxHttpCollectionKeyLimitReached(object p0, object p1) internal static string FormatMaxHttpCollectionKeyLimitReached(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("MaxHttpCollectionKeyLimitReached"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("MaxHttpCollectionKeyLimitReached"), p0, p1);
}
/// <summary> /// <summary>
/// Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details. /// Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.
/// </summary> /// </summary>
internal static string HttpResponseExceptionMessage internal static string HttpResponseExceptionMessage
{ {
get { return GetString("HttpResponseExceptionMessage"); } get => GetString("HttpResponseExceptionMessage");
} }
/// <summary> /// <summary>
/// Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details. /// Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.
/// </summary> /// </summary>
internal static string FormatHttpResponseExceptionMessage() internal static string FormatHttpResponseExceptionMessage()
{ => GetString("HttpResponseExceptionMessage");
return GetString("HttpResponseExceptionMessage");
}
/// <summary> /// <summary>
/// Failed to generate a URL using route '{0}'. /// Failed to generate a URL using route '{0}'.
/// </summary> /// </summary>
internal static string CreatedAtRoute_RouteFailed internal static string CreatedAtRoute_RouteFailed
{ {
get { return GetString("CreatedAtRoute_RouteFailed"); } get => GetString("CreatedAtRoute_RouteFailed");
} }
/// <summary> /// <summary>
/// Failed to generate a URL using route '{0}'. /// Failed to generate a URL using route '{0}'.
/// </summary> /// </summary>
internal static string FormatCreatedAtRoute_RouteFailed(object p0) internal static string FormatCreatedAtRoute_RouteFailed(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("CreatedAtRoute_RouteFailed"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("CreatedAtRoute_RouteFailed"), p0);
}
/// <summary> /// <summary>
/// URL /// URL
/// </summary> /// </summary>
internal static string BindingSource_URL internal static string BindingSource_URL
{ {
get { return GetString("BindingSource_URL"); } get => GetString("BindingSource_URL");
} }
/// <summary> /// <summary>
/// URL /// URL
/// </summary> /// </summary>
internal static string FormatBindingSource_URL() internal static string FormatBindingSource_URL()
{ => GetString("BindingSource_URL");
return GetString("BindingSource_URL");
}
private static string GetString(string name, params string[] formatterNames) private static string GetString(string name, params string[] formatterNames)
{ {

View File

@ -15,64 +15,56 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations.Test
/// </summary> /// </summary>
internal static string CompareAttributeTestResource internal static string CompareAttributeTestResource
{ {
get { return GetString("CompareAttributeTestResource"); } get => GetString("CompareAttributeTestResource");
} }
/// <summary> /// <summary>
/// Comparing {0} to {1}. /// Comparing {0} to {1}.
/// </summary> /// </summary>
internal static string FormatCompareAttributeTestResource(object p0, object p1) internal static string FormatCompareAttributeTestResource(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("CompareAttributeTestResource"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("CompareAttributeTestResource"), p0, p1);
}
/// <summary> /// <summary>
/// description from resources /// description from resources
/// </summary> /// </summary>
internal static string DisplayAttribute_Description internal static string DisplayAttribute_Description
{ {
get { return GetString("DisplayAttribute_Description"); } get => GetString("DisplayAttribute_Description");
} }
/// <summary> /// <summary>
/// description from resources /// description from resources
/// </summary> /// </summary>
internal static string FormatDisplayAttribute_Description() internal static string FormatDisplayAttribute_Description()
{ => GetString("DisplayAttribute_Description");
return GetString("DisplayAttribute_Description");
}
/// <summary> /// <summary>
/// name from resources /// name from resources
/// </summary> /// </summary>
internal static string DisplayAttribute_Name internal static string DisplayAttribute_Name
{ {
get { return GetString("DisplayAttribute_Name"); } get => GetString("DisplayAttribute_Name");
} }
/// <summary> /// <summary>
/// name from resources /// name from resources
/// </summary> /// </summary>
internal static string FormatDisplayAttribute_Name() internal static string FormatDisplayAttribute_Name()
{ => GetString("DisplayAttribute_Name");
return GetString("DisplayAttribute_Name");
}
/// <summary> /// <summary>
/// prompt from resources /// prompt from resources
/// </summary> /// </summary>
internal static string DisplayAttribute_Prompt internal static string DisplayAttribute_Prompt
{ {
get { return GetString("DisplayAttribute_Prompt"); } get => GetString("DisplayAttribute_Prompt");
} }
/// <summary> /// <summary>
/// prompt from resources /// prompt from resources
/// </summary> /// </summary>
internal static string FormatDisplayAttribute_Prompt() internal static string FormatDisplayAttribute_Prompt()
{ => GetString("DisplayAttribute_Prompt");
return GetString("DisplayAttribute_Prompt");
}
private static string GetString(string name, params string[] formatterNames) private static string GetString(string name, params string[] formatterNames)
{ {