diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Properties/Resources.Designer.cs b/src/Microsoft.AspNetCore.Mvc.Core/Properties/Resources.Designer.cs index b16b71757b..955084fc27 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Properties/Resources.Designer.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Properties/Resources.Designer.cs @@ -15,1424 +15,1246 @@ namespace Microsoft.AspNetCore.Mvc.Core /// internal static string MatchAllContentTypeIsNotAllowed { - get { return GetString("MatchAllContentTypeIsNotAllowed"); } + get => GetString("MatchAllContentTypeIsNotAllowed"); } /// /// The argument '{0}' is invalid. Media types which match all types or match all subtypes are not supported. /// internal static string FormatMatchAllContentTypeIsNotAllowed(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MatchAllContentTypeIsNotAllowed"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MatchAllContentTypeIsNotAllowed"), p0); /// /// The content-type '{0}' added in the '{1}' property is invalid. Media types which match all types or match all subtypes are not supported. /// internal static string ObjectResult_MatchAllContentType { - get { return GetString("ObjectResult_MatchAllContentType"); } + get => GetString("ObjectResult_MatchAllContentType"); } /// /// The content-type '{0}' added in the '{1}' property is invalid. Media types which match all types or match all subtypes are not supported. /// internal static string FormatObjectResult_MatchAllContentType(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ObjectResult_MatchAllContentType"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ObjectResult_MatchAllContentType"), p0, p1); /// /// The method '{0}' on type '{1}' returned an instance of '{2}'. Make sure to call Unwrap on the returned value to avoid unobserved faulted Task. /// internal static string ActionExecutor_WrappedTaskInstance { - get { return GetString("ActionExecutor_WrappedTaskInstance"); } + get => GetString("ActionExecutor_WrappedTaskInstance"); } /// /// The method '{0}' on type '{1}' returned an instance of '{2}'. Make sure to call Unwrap on the returned value to avoid unobserved faulted Task. /// internal static string FormatActionExecutor_WrappedTaskInstance(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ActionExecutor_WrappedTaskInstance"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ActionExecutor_WrappedTaskInstance"), p0, p1, p2); /// /// The method '{0}' on type '{1}' returned a Task instance even though it is not an asynchronous method. /// internal static string ActionExecutor_UnexpectedTaskInstance { - get { return GetString("ActionExecutor_UnexpectedTaskInstance"); } + get => GetString("ActionExecutor_UnexpectedTaskInstance"); } /// /// The method '{0}' on type '{1}' returned a Task instance even though it is not an asynchronous method. /// internal static string FormatActionExecutor_UnexpectedTaskInstance(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ActionExecutor_UnexpectedTaskInstance"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ActionExecutor_UnexpectedTaskInstance"), p0, p1); /// /// An action invoker could not be created for action '{0}'. /// internal static string ActionInvokerFactory_CouldNotCreateInvoker { - get { return GetString("ActionInvokerFactory_CouldNotCreateInvoker"); } + get => GetString("ActionInvokerFactory_CouldNotCreateInvoker"); } /// /// An action invoker could not be created for action '{0}'. /// internal static string FormatActionInvokerFactory_CouldNotCreateInvoker(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ActionInvokerFactory_CouldNotCreateInvoker"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ActionInvokerFactory_CouldNotCreateInvoker"), p0); /// /// The action descriptor must be of type '{0}'. /// internal static string ActionDescriptorMustBeBasedOnControllerAction { - get { return GetString("ActionDescriptorMustBeBasedOnControllerAction"); } + get => GetString("ActionDescriptorMustBeBasedOnControllerAction"); } /// /// The action descriptor must be of type '{0}'. /// internal static string FormatActionDescriptorMustBeBasedOnControllerAction(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ActionDescriptorMustBeBasedOnControllerAction"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ActionDescriptorMustBeBasedOnControllerAction"), p0); /// /// Value cannot be null or empty. /// internal static string ArgumentCannotBeNullOrEmpty { - get { return GetString("ArgumentCannotBeNullOrEmpty"); } + get => GetString("ArgumentCannotBeNullOrEmpty"); } /// /// Value cannot be null or empty. /// internal static string FormatArgumentCannotBeNullOrEmpty() - { - return GetString("ArgumentCannotBeNullOrEmpty"); - } + => GetString("ArgumentCannotBeNullOrEmpty"); /// /// The '{0}' property of '{1}' must not be null. /// internal static string PropertyOfTypeCannotBeNull { - get { return GetString("PropertyOfTypeCannotBeNull"); } + get => GetString("PropertyOfTypeCannotBeNull"); } /// /// The '{0}' property of '{1}' must not be null. /// internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); /// /// The '{0}' method of type '{1}' cannot return a null value. /// internal static string TypeMethodMustReturnNotNullValue { - get { return GetString("TypeMethodMustReturnNotNullValue"); } + get => GetString("TypeMethodMustReturnNotNullValue"); } /// /// The '{0}' method of type '{1}' cannot return a null value. /// internal static string FormatTypeMethodMustReturnNotNullValue(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("TypeMethodMustReturnNotNullValue"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("TypeMethodMustReturnNotNullValue"), p0, p1); /// /// The value '{0}' is invalid. /// internal static string ModelBinding_NullValueNotValid { - get { return GetString("ModelBinding_NullValueNotValid"); } + get => GetString("ModelBinding_NullValueNotValid"); } /// /// The value '{0}' is invalid. /// internal static string FormatModelBinding_NullValueNotValid(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ModelBinding_NullValueNotValid"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinding_NullValueNotValid"), p0); /// /// The passed expression of expression node type '{0}' is invalid. Only simple member access expressions for model properties are supported. /// internal static string Invalid_IncludePropertyExpression { - get { return GetString("Invalid_IncludePropertyExpression"); } + get => GetString("Invalid_IncludePropertyExpression"); } /// /// The passed expression of expression node type '{0}' is invalid. Only simple member access expressions for model properties are supported. /// internal static string FormatInvalid_IncludePropertyExpression(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Invalid_IncludePropertyExpression"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("Invalid_IncludePropertyExpression"), p0); /// /// No route matches the supplied values. /// internal static string NoRoutesMatched { - get { return GetString("NoRoutesMatched"); } + get => GetString("NoRoutesMatched"); } /// /// No route matches the supplied values. /// internal static string FormatNoRoutesMatched() - { - return GetString("NoRoutesMatched"); - } + => GetString("NoRoutesMatched"); /// /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. /// internal static string AsyncActionFilter_InvalidShortCircuit { - get { return GetString("AsyncActionFilter_InvalidShortCircuit"); } + get => GetString("AsyncActionFilter_InvalidShortCircuit"); } /// /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. /// internal static string FormatAsyncActionFilter_InvalidShortCircuit(object p0, object p1, object p2, object p3) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AsyncActionFilter_InvalidShortCircuit"), p0, p1, p2, p3); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AsyncActionFilter_InvalidShortCircuit"), p0, p1, p2, p3); /// /// If an {0} cancels execution by setting the {1} property of {2} to 'true', then it cannot call the next filter by invoking {3}. /// internal static string AsyncResultFilter_InvalidShortCircuit { - get { return GetString("AsyncResultFilter_InvalidShortCircuit"); } + get => GetString("AsyncResultFilter_InvalidShortCircuit"); } /// /// If an {0} cancels execution by setting the {1} property of {2} to 'true', then it cannot call the next filter by invoking {3}. /// internal static string FormatAsyncResultFilter_InvalidShortCircuit(object p0, object p1, object p2, object p3) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AsyncResultFilter_InvalidShortCircuit"), p0, p1, p2, p3); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AsyncResultFilter_InvalidShortCircuit"), p0, p1, p2, p3); /// /// The type provided to '{0}' must implement '{1}'. /// internal static string FilterFactoryAttribute_TypeMustImplementIFilter { - get { return GetString("FilterFactoryAttribute_TypeMustImplementIFilter"); } + get => GetString("FilterFactoryAttribute_TypeMustImplementIFilter"); } /// /// The type provided to '{0}' must implement '{1}'. /// internal static string FormatFilterFactoryAttribute_TypeMustImplementIFilter(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("FilterFactoryAttribute_TypeMustImplementIFilter"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("FilterFactoryAttribute_TypeMustImplementIFilter"), p0, p1); /// /// Cannot return null from an action method with a return type of '{0}'. /// internal static string ActionResult_ActionReturnValueCannotBeNull { - get { return GetString("ActionResult_ActionReturnValueCannotBeNull"); } + get => GetString("ActionResult_ActionReturnValueCannotBeNull"); } /// /// Cannot return null from an action method with a return type of '{0}'. /// internal static string FormatActionResult_ActionReturnValueCannotBeNull(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ActionResult_ActionReturnValueCannotBeNull"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ActionResult_ActionReturnValueCannotBeNull"), p0); /// /// The type '{0}' must derive from '{1}'. /// internal static string TypeMustDeriveFromType { - get { return GetString("TypeMustDeriveFromType"); } + get => GetString("TypeMustDeriveFromType"); } /// /// The type '{0}' must derive from '{1}'. /// internal static string FormatTypeMustDeriveFromType(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("TypeMustDeriveFromType"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("TypeMustDeriveFromType"), p0, p1); /// /// No encoding found for input formatter '{0}'. There must be at least one supported encoding registered in order for the formatter to read content. /// internal static string InputFormatterNoEncoding { - get { return GetString("InputFormatterNoEncoding"); } + get => GetString("InputFormatterNoEncoding"); } /// /// No encoding found for input formatter '{0}'. There must be at least one supported encoding registered in order for the formatter to read content. /// internal static string FormatInputFormatterNoEncoding(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("InputFormatterNoEncoding"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("InputFormatterNoEncoding"), p0); /// /// Unsupported content type '{0}'. /// internal static string UnsupportedContentType { - get { return GetString("UnsupportedContentType"); } + get => GetString("UnsupportedContentType"); } /// /// Unsupported content type '{0}'. /// internal static string FormatUnsupportedContentType(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedContentType"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedContentType"), p0); /// /// No supported media type registered for output formatter '{0}'. There must be at least one supported media type registered in order for the output formatter to write content. /// internal static string OutputFormatterNoMediaType { - get { return GetString("OutputFormatterNoMediaType"); } + get => GetString("OutputFormatterNoMediaType"); } /// /// No supported media type registered for output formatter '{0}'. There must be at least one supported media type registered in order for the output formatter to write content. /// internal static string FormatOutputFormatterNoMediaType(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("OutputFormatterNoMediaType"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("OutputFormatterNoMediaType"), p0); /// /// The following errors occurred with attribute routing information:{0}{0}{1} /// internal static string AttributeRoute_AggregateErrorMessage { - get { return GetString("AttributeRoute_AggregateErrorMessage"); } + get => GetString("AttributeRoute_AggregateErrorMessage"); } /// /// The following errors occurred with attribute routing information:{0}{0}{1} /// internal static string FormatAttributeRoute_AggregateErrorMessage(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_AggregateErrorMessage"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_AggregateErrorMessage"), p0, p1); /// /// The attribute route '{0}' cannot contain a parameter named '{{{1}}}'. Use '[{1}]' in the route template to insert the value '{2}'. /// internal static string AttributeRoute_CannotContainParameter { - get { return GetString("AttributeRoute_CannotContainParameter"); } + get => GetString("AttributeRoute_CannotContainParameter"); } /// /// The attribute route '{0}' cannot contain a parameter named '{{{1}}}'. Use '[{1}]' in the route template to insert the value '{2}'. /// internal static string FormatAttributeRoute_CannotContainParameter(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_CannotContainParameter"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_CannotContainParameter"), p0, p1, p2); /// /// For action: '{0}'{1}Error: {2} /// internal static string AttributeRoute_IndividualErrorMessage { - get { return GetString("AttributeRoute_IndividualErrorMessage"); } + get => GetString("AttributeRoute_IndividualErrorMessage"); } /// /// For action: '{0}'{1}Error: {2} /// internal static string FormatAttributeRoute_IndividualErrorMessage(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_IndividualErrorMessage"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_IndividualErrorMessage"), p0, p1, p2); /// /// An empty replacement token ('[]') is not allowed. /// internal static string AttributeRoute_TokenReplacement_EmptyTokenNotAllowed { - get { return GetString("AttributeRoute_TokenReplacement_EmptyTokenNotAllowed"); } + get => GetString("AttributeRoute_TokenReplacement_EmptyTokenNotAllowed"); } /// /// An empty replacement token ('[]') is not allowed. /// internal static string FormatAttributeRoute_TokenReplacement_EmptyTokenNotAllowed() - { - return GetString("AttributeRoute_TokenReplacement_EmptyTokenNotAllowed"); - } + => GetString("AttributeRoute_TokenReplacement_EmptyTokenNotAllowed"); /// /// Token delimiters ('[', ']') are imbalanced. /// internal static string AttributeRoute_TokenReplacement_ImbalancedSquareBrackets { - get { return GetString("AttributeRoute_TokenReplacement_ImbalancedSquareBrackets"); } + get => GetString("AttributeRoute_TokenReplacement_ImbalancedSquareBrackets"); } /// /// Token delimiters ('[', ']') are imbalanced. /// internal static string FormatAttributeRoute_TokenReplacement_ImbalancedSquareBrackets() - { - return GetString("AttributeRoute_TokenReplacement_ImbalancedSquareBrackets"); - } + => GetString("AttributeRoute_TokenReplacement_ImbalancedSquareBrackets"); /// /// The route template '{0}' has invalid syntax. {1} /// internal static string AttributeRoute_TokenReplacement_InvalidSyntax { - get { return GetString("AttributeRoute_TokenReplacement_InvalidSyntax"); } + get => GetString("AttributeRoute_TokenReplacement_InvalidSyntax"); } /// /// The route template '{0}' has invalid syntax. {1} /// internal static string FormatAttributeRoute_TokenReplacement_InvalidSyntax(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_TokenReplacement_InvalidSyntax"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_TokenReplacement_InvalidSyntax"), p0, p1); /// /// While processing template '{0}', a replacement value for the token '{1}' could not be found. Available tokens: '{2}'. To use a '[' or ']' as a literal string in a route or within a constraint, use '[[' or ']]' instead. /// internal static string AttributeRoute_TokenReplacement_ReplacementValueNotFound { - get { return GetString("AttributeRoute_TokenReplacement_ReplacementValueNotFound"); } + get => GetString("AttributeRoute_TokenReplacement_ReplacementValueNotFound"); } /// /// While processing template '{0}', a replacement value for the token '{1}' could not be found. Available tokens: '{2}'. To use a '[' or ']' as a literal string in a route or within a constraint, use '[[' or ']]' instead. /// internal static string FormatAttributeRoute_TokenReplacement_ReplacementValueNotFound(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_TokenReplacement_ReplacementValueNotFound"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_TokenReplacement_ReplacementValueNotFound"), p0, p1, p2); /// /// A replacement token is not closed. /// internal static string AttributeRoute_TokenReplacement_UnclosedToken { - get { return GetString("AttributeRoute_TokenReplacement_UnclosedToken"); } + get => GetString("AttributeRoute_TokenReplacement_UnclosedToken"); } /// /// A replacement token is not closed. /// internal static string FormatAttributeRoute_TokenReplacement_UnclosedToken() - { - return GetString("AttributeRoute_TokenReplacement_UnclosedToken"); - } + => GetString("AttributeRoute_TokenReplacement_UnclosedToken"); /// /// An unescaped '[' token is not allowed inside of a replacement token. Use '[[' to escape. /// internal static string AttributeRoute_TokenReplacement_UnescapedBraceInToken { - get { return GetString("AttributeRoute_TokenReplacement_UnescapedBraceInToken"); } + get => GetString("AttributeRoute_TokenReplacement_UnescapedBraceInToken"); } /// /// An unescaped '[' token is not allowed inside of a replacement token. Use '[[' to escape. /// internal static string FormatAttributeRoute_TokenReplacement_UnescapedBraceInToken() - { - return GetString("AttributeRoute_TokenReplacement_UnescapedBraceInToken"); - } + => GetString("AttributeRoute_TokenReplacement_UnescapedBraceInToken"); /// /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. /// internal static string UnableToFindServices { - get { return GetString("UnableToFindServices"); } + get => GetString("UnableToFindServices"); } /// /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. /// internal static string FormatUnableToFindServices(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("UnableToFindServices"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("UnableToFindServices"), p0, p1, p2); /// /// Action: '{0}' - Template: '{1}' /// internal static string AttributeRoute_DuplicateNames_Item { - get { return GetString("AttributeRoute_DuplicateNames_Item"); } + get => GetString("AttributeRoute_DuplicateNames_Item"); } /// /// Action: '{0}' - Template: '{1}' /// internal static string FormatAttributeRoute_DuplicateNames_Item(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_DuplicateNames_Item"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_DuplicateNames_Item"), p0, p1); /// /// Attribute routes with the same name '{0}' must have the same template:{1}{2} /// internal static string AttributeRoute_DuplicateNames { - get { return GetString("AttributeRoute_DuplicateNames"); } + get => GetString("AttributeRoute_DuplicateNames"); } /// /// Attribute routes with the same name '{0}' must have the same template:{1}{2} /// internal static string FormatAttributeRoute_DuplicateNames(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_DuplicateNames"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_DuplicateNames"), p0, p1, p2); /// /// Error {0}:{1}{2} /// internal static string AttributeRoute_AggregateErrorMessage_ErrorNumber { - get { return GetString("AttributeRoute_AggregateErrorMessage_ErrorNumber"); } + get => GetString("AttributeRoute_AggregateErrorMessage_ErrorNumber"); } /// /// Error {0}:{1}{2} /// internal static string FormatAttributeRoute_AggregateErrorMessage_ErrorNumber(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_AggregateErrorMessage_ErrorNumber"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_AggregateErrorMessage_ErrorNumber"), p0, p1, p2); /// /// A method '{0}' must not define attribute routed actions and non attribute routed actions at the same time:{1}{2}{1}{1}Use 'AcceptVerbsAttribute' to create a single route that allows multiple HTTP verbs and defines a route, or set a route template in all attributes that constrain HTTP verbs. /// internal static string AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod { - get { return GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod"); } + get => GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod"); } /// /// A method '{0}' must not define attribute routed actions and non attribute routed actions at the same time:{1}{2}{1}{1}Use 'AcceptVerbsAttribute' to create a single route that allows multiple HTTP verbs and defines a route, or set a route template in all attributes that constrain HTTP verbs. /// internal static string FormatAttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod"), p0, p1, p2); /// /// Action: '{0}' - Route Template: '{1}' - HTTP Verbs: '{2}' /// internal static string AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item { - get { return GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item"); } + get => GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item"); } /// /// Action: '{0}' - Route Template: '{1}' - HTTP Verbs: '{2}' /// internal static string FormatAttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item"), p0, p1, p2); /// /// (none) /// internal static string AttributeRoute_NullTemplateRepresentation { - get { return GetString("AttributeRoute_NullTemplateRepresentation"); } + get => GetString("AttributeRoute_NullTemplateRepresentation"); } /// /// (none) /// internal static string FormatAttributeRoute_NullTemplateRepresentation() - { - return GetString("AttributeRoute_NullTemplateRepresentation"); - } + => GetString("AttributeRoute_NullTemplateRepresentation"); /// /// Multiple actions matched. The following actions matched route data and had all constraints satisfied:{0}{0}{1} /// internal static string DefaultActionSelector_AmbiguousActions { - get { return GetString("DefaultActionSelector_AmbiguousActions"); } + get => GetString("DefaultActionSelector_AmbiguousActions"); } /// /// Multiple actions matched. The following actions matched route data and had all constraints satisfied:{0}{0}{1} /// internal static string FormatDefaultActionSelector_AmbiguousActions(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("DefaultActionSelector_AmbiguousActions"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("DefaultActionSelector_AmbiguousActions"), p0, p1); /// /// Could not find file: {0} /// internal static string FileResult_InvalidPath { - get { return GetString("FileResult_InvalidPath"); } + get => GetString("FileResult_InvalidPath"); } /// /// Could not find file: {0} /// internal static string FormatFileResult_InvalidPath(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("FileResult_InvalidPath"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("FileResult_InvalidPath"), p0); /// /// The input was not valid. /// internal static string SerializableError_DefaultError { - get { return GetString("SerializableError_DefaultError"); } + get => GetString("SerializableError_DefaultError"); } /// /// The input was not valid. /// internal static string FormatSerializableError_DefaultError() - { - return GetString("SerializableError_DefaultError"); - } + => GetString("SerializableError_DefaultError"); /// /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. /// internal static string AsyncResourceFilter_InvalidShortCircuit { - get { return GetString("AsyncResourceFilter_InvalidShortCircuit"); } + get => GetString("AsyncResourceFilter_InvalidShortCircuit"); } /// /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. /// internal static string FormatAsyncResourceFilter_InvalidShortCircuit(object p0, object p1, object p2, object p3) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AsyncResourceFilter_InvalidShortCircuit"), p0, p1, p2, p3); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AsyncResourceFilter_InvalidShortCircuit"), p0, p1, p2, p3); /// /// If the '{0}' property is not set to true, '{1}' property must be specified. /// internal static string ResponseCache_SpecifyDuration { - get { return GetString("ResponseCache_SpecifyDuration"); } + get => GetString("ResponseCache_SpecifyDuration"); } /// /// If the '{0}' property is not set to true, '{1}' property must be specified. /// internal static string FormatResponseCache_SpecifyDuration(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ResponseCache_SpecifyDuration"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ResponseCache_SpecifyDuration"), p0, p1); /// /// The action '{0}' has ApiExplorer enabled, but is using conventional routing. Only actions which use attribute routing support ApiExplorer. /// internal static string ApiExplorer_UnsupportedAction { - get { return GetString("ApiExplorer_UnsupportedAction"); } + get => GetString("ApiExplorer_UnsupportedAction"); } /// /// The action '{0}' has ApiExplorer enabled, but is using conventional routing. Only actions which use attribute routing support ApiExplorer. /// internal static string FormatApiExplorer_UnsupportedAction(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ApiExplorer_UnsupportedAction"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ApiExplorer_UnsupportedAction"), p0); /// /// The media type "{0}" is not valid. MediaTypes containing wildcards (*) are not allowed in formatter mappings. /// internal static string FormatterMappings_NotValidMediaType { - get { return GetString("FormatterMappings_NotValidMediaType"); } + get => GetString("FormatterMappings_NotValidMediaType"); } /// /// The media type "{0}" is not valid. MediaTypes containing wildcards (*) are not allowed in formatter mappings. /// internal static string FormatFormatterMappings_NotValidMediaType(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("FormatterMappings_NotValidMediaType"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("FormatterMappings_NotValidMediaType"), p0); /// /// The format provided is invalid '{0}'. A format must be a non-empty file-extension, optionally prefixed with a '.' character. /// internal static string Format_NotValid { - get { return GetString("Format_NotValid"); } + get => GetString("Format_NotValid"); } /// /// The format provided is invalid '{0}'. A format must be a non-empty file-extension, optionally prefixed with a '.' character. /// internal static string FormatFormat_NotValid(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Format_NotValid"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("Format_NotValid"), p0); /// /// The '{0}' cache profile is not defined. /// internal static string CacheProfileNotFound { - get { return GetString("CacheProfileNotFound"); } + get => GetString("CacheProfileNotFound"); } /// /// The '{0}' cache profile is not defined. /// internal static string FormatCacheProfileNotFound(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("CacheProfileNotFound"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("CacheProfileNotFound"), p0); /// /// The model's runtime type '{0}' is not assignable to the type '{1}'. /// internal static string ModelType_WrongType { - get { return GetString("ModelType_WrongType"); } + get => GetString("ModelType_WrongType"); } /// /// The model's runtime type '{0}' is not assignable to the type '{1}'. /// internal static string FormatModelType_WrongType(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ModelType_WrongType"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ModelType_WrongType"), p0, p1); /// /// The type '{0}' cannot be activated by '{1}' because it is either a value type, an interface, an abstract class or an open generic type. /// internal static string ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated { - get { return GetString("ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated"); } + get => GetString("ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated"); } /// /// The type '{0}' cannot be activated by '{1}' because it is either a value type, an interface, an abstract class or an open generic type. /// internal static string FormatValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated"), p0, p1); /// /// The type '{0}' must implement '{1}' to be used as a model binder. /// internal static string BinderType_MustBeIModelBinder { - get { return GetString("BinderType_MustBeIModelBinder"); } + get => GetString("BinderType_MustBeIModelBinder"); } /// /// The type '{0}' must implement '{1}' to be used as a model binder. /// internal static string FormatBinderType_MustBeIModelBinder(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("BinderType_MustBeIModelBinder"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("BinderType_MustBeIModelBinder"), p0, p1); /// /// 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"); } + 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) - { - return string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeComposite"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeComposite"), 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"); } + 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) - { - return string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeGreedy"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeGreedy"), p0, p1); /// /// The property {0}.{1} could not be found. /// internal static string Common_PropertyNotFound { - get { return GetString("Common_PropertyNotFound"); } + get => 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); - } + => string.Format(CultureInfo.CurrentCulture, GetString("Common_PropertyNotFound"), p0, p1); /// /// The key '{0}' is invalid JQuery syntax because it is missing a closing bracket. /// internal static string JQueryFormValueProviderFactory_MissingClosingBracket { - get { return GetString("JQueryFormValueProviderFactory_MissingClosingBracket"); } + get => GetString("JQueryFormValueProviderFactory_MissingClosingBracket"); } /// /// The key '{0}' is invalid JQuery syntax because it is missing a closing bracket. /// internal static string FormatJQueryFormValueProviderFactory_MissingClosingBracket(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("JQueryFormValueProviderFactory_MissingClosingBracket"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("JQueryFormValueProviderFactory_MissingClosingBracket"), p0); /// /// A value is required. /// internal static string KeyValuePair_BothKeyAndValueMustBePresent { - get { return GetString("KeyValuePair_BothKeyAndValueMustBePresent"); } + get => GetString("KeyValuePair_BothKeyAndValueMustBePresent"); } /// /// A value is required. /// internal static string FormatKeyValuePair_BothKeyAndValueMustBePresent() - { - return GetString("KeyValuePair_BothKeyAndValueMustBePresent"); - } + => GetString("KeyValuePair_BothKeyAndValueMustBePresent"); /// /// 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"); } + get => 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); - } + => 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"); } + get => 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); - } + => 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"); } + get => GetString("ModelBinderUtil_ModelMetadataCannotBeNull"); } /// /// The binding context cannot have a null ModelMetadata. /// internal static string FormatModelBinderUtil_ModelMetadataCannotBeNull() - { - return GetString("ModelBinderUtil_ModelMetadataCannotBeNull"); - } + => GetString("ModelBinderUtil_ModelMetadataCannotBeNull"); /// /// A value for the '{0}' property was not provided. /// internal static string ModelBinding_MissingBindRequiredMember { - get { return GetString("ModelBinding_MissingBindRequiredMember"); } + get => GetString("ModelBinding_MissingBindRequiredMember"); } /// /// A value for the '{0}' property was not provided. /// internal static string FormatModelBinding_MissingBindRequiredMember(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ModelBinding_MissingBindRequiredMember"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinding_MissingBindRequiredMember"), p0); /// /// 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"); } + get => 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); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ValueProviderResult_NoConverterExists"), p0, p1); /// /// Path '{0}' was not rooted. /// internal static string FileResult_PathNotRooted { - get { return GetString("FileResult_PathNotRooted"); } + get => GetString("FileResult_PathNotRooted"); } /// /// Path '{0}' was not rooted. /// internal static string FormatFileResult_PathNotRooted(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("FileResult_PathNotRooted"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("FileResult_PathNotRooted"), p0); /// /// The supplied URL is not local. A URL with an absolute path is considered local if it does not have a host/authority part. URLs using virtual paths ('~/') are also local. /// internal static string UrlNotLocal { - get { return GetString("UrlNotLocal"); } + get => GetString("UrlNotLocal"); } /// /// The supplied URL is not local. A URL with an absolute path is considered local if it does not have a host/authority part. URLs using virtual paths ('~/') are also local. /// internal static string FormatUrlNotLocal() - { - return GetString("UrlNotLocal"); - } + => GetString("UrlNotLocal"); /// /// The argument '{0}' is invalid. Empty or null formats are not supported. /// internal static string FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat { - get { return GetString("FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat"); } + get => GetString("FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat"); } /// /// The argument '{0}' is invalid. Empty or null formats are not supported. /// internal static string FormatFormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat"), p0); /// /// "Invalid values '{0}'." /// internal static string AcceptHeaderParser_ParseAcceptHeader_InvalidValues { - get { return GetString("AcceptHeaderParser_ParseAcceptHeader_InvalidValues"); } + get => GetString("AcceptHeaderParser_ParseAcceptHeader_InvalidValues"); } /// /// "Invalid values '{0}'." /// internal static string FormatAcceptHeaderParser_ParseAcceptHeader_InvalidValues(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AcceptHeaderParser_ParseAcceptHeader_InvalidValues"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AcceptHeaderParser_ParseAcceptHeader_InvalidValues"), p0); /// /// The value '{0}' is not valid for {1}. /// internal static string ModelState_AttemptedValueIsInvalid { - get { return GetString("ModelState_AttemptedValueIsInvalid"); } + get => GetString("ModelState_AttemptedValueIsInvalid"); } /// /// The value '{0}' is not valid for {1}. /// internal static string FormatModelState_AttemptedValueIsInvalid(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ModelState_AttemptedValueIsInvalid"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ModelState_AttemptedValueIsInvalid"), p0, p1); /// /// The supplied value is invalid for {0}. /// internal static string ModelState_UnknownValueIsInvalid { - get { return GetString("ModelState_UnknownValueIsInvalid"); } + get => GetString("ModelState_UnknownValueIsInvalid"); } /// /// The supplied value is invalid for {0}. /// internal static string FormatModelState_UnknownValueIsInvalid(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ModelState_UnknownValueIsInvalid"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ModelState_UnknownValueIsInvalid"), p0); /// /// The value '{0}' is invalid. /// internal static string HtmlGeneration_ValueIsInvalid { - get { return GetString("HtmlGeneration_ValueIsInvalid"); } + get => GetString("HtmlGeneration_ValueIsInvalid"); } /// /// The value '{0}' is invalid. /// internal static string FormatHtmlGeneration_ValueIsInvalid(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("HtmlGeneration_ValueIsInvalid"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("HtmlGeneration_ValueIsInvalid"), p0); /// /// The field {0} must be a number. /// internal static string HtmlGeneration_ValueMustBeNumber { - get { return GetString("HtmlGeneration_ValueMustBeNumber"); } + get => GetString("HtmlGeneration_ValueMustBeNumber"); } /// /// The field {0} must be a number. /// internal static string FormatHtmlGeneration_ValueMustBeNumber(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("HtmlGeneration_ValueMustBeNumber"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("HtmlGeneration_ValueMustBeNumber"), p0); /// /// The list of '{0}' must not be empty. Add at least one supported encoding. /// internal static string TextInputFormatter_SupportedEncodingsMustNotBeEmpty { - get { return GetString("TextInputFormatter_SupportedEncodingsMustNotBeEmpty"); } + get => GetString("TextInputFormatter_SupportedEncodingsMustNotBeEmpty"); } /// /// The list of '{0}' must not be empty. Add at least one supported encoding. /// internal static string FormatTextInputFormatter_SupportedEncodingsMustNotBeEmpty(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("TextInputFormatter_SupportedEncodingsMustNotBeEmpty"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("TextInputFormatter_SupportedEncodingsMustNotBeEmpty"), p0); /// /// The list of '{0}' must not be empty. Add at least one supported encoding. /// internal static string TextOutputFormatter_SupportedEncodingsMustNotBeEmpty { - get { return GetString("TextOutputFormatter_SupportedEncodingsMustNotBeEmpty"); } + get => GetString("TextOutputFormatter_SupportedEncodingsMustNotBeEmpty"); } /// /// The list of '{0}' must not be empty. Add at least one supported encoding. /// internal static string FormatTextOutputFormatter_SupportedEncodingsMustNotBeEmpty(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("TextOutputFormatter_SupportedEncodingsMustNotBeEmpty"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("TextOutputFormatter_SupportedEncodingsMustNotBeEmpty"), p0); /// /// '{0}' is not supported by '{1}'. Use '{2}' instead. /// internal static string TextOutputFormatter_WriteResponseBodyAsyncNotSupported { - get { return GetString("TextOutputFormatter_WriteResponseBodyAsyncNotSupported"); } + get => GetString("TextOutputFormatter_WriteResponseBodyAsyncNotSupported"); } /// /// '{0}' is not supported by '{1}'. Use '{2}' instead. /// internal static string FormatTextOutputFormatter_WriteResponseBodyAsyncNotSupported(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("TextOutputFormatter_WriteResponseBodyAsyncNotSupported"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("TextOutputFormatter_WriteResponseBodyAsyncNotSupported"), p0, p1, p2); /// /// No media types found in '{0}.{1}'. Add at least one media type to the list of supported media types. /// internal static string Formatter_NoMediaTypes { - get { return GetString("Formatter_NoMediaTypes"); } + get => GetString("Formatter_NoMediaTypes"); } /// /// No media types found in '{0}.{1}'. Add at least one media type to the list of supported media types. /// internal static string FormatFormatter_NoMediaTypes(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Formatter_NoMediaTypes"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("Formatter_NoMediaTypes"), p0, p1); /// /// At least one authentication scheme must be specified. /// internal static string MustSpecifyAtLeastOneAuthenticationScheme { - get { return GetString("MustSpecifyAtLeastOneAuthenticationScheme"); } + get => GetString("MustSpecifyAtLeastOneAuthenticationScheme"); } /// /// At least one authentication scheme must be specified. /// internal static string FormatMustSpecifyAtLeastOneAuthenticationScheme() - { - return GetString("MustSpecifyAtLeastOneAuthenticationScheme"); - } + => GetString("MustSpecifyAtLeastOneAuthenticationScheme"); /// /// Could not create a model binder for model object of type '{0}'. /// internal static string CouldNotCreateIModelBinder { - get { return GetString("CouldNotCreateIModelBinder"); } + get => GetString("CouldNotCreateIModelBinder"); } /// /// Could not create a model binder for model object of type '{0}'. /// internal static string FormatCouldNotCreateIModelBinder(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("CouldNotCreateIModelBinder"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("CouldNotCreateIModelBinder"), p0); /// /// '{0}.{1}' must not be empty. At least one '{2}' is required to bind from the body. /// internal static string InputFormattersAreRequired { - get { return GetString("InputFormattersAreRequired"); } + get => GetString("InputFormattersAreRequired"); } /// /// '{0}.{1}' must not be empty. At least one '{2}' is required to bind from the body. /// internal static string FormatInputFormattersAreRequired(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("InputFormattersAreRequired"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("InputFormattersAreRequired"), p0, p1, p2); /// /// '{0}.{1}' must not be empty. At least one '{2}' is required to model bind. /// internal static string ModelBinderProvidersAreRequired { - get { return GetString("ModelBinderProvidersAreRequired"); } + get => GetString("ModelBinderProvidersAreRequired"); } /// /// '{0}.{1}' must not be empty. At least one '{2}' is required to model bind. /// internal static string FormatModelBinderProvidersAreRequired(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderProvidersAreRequired"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderProvidersAreRequired"), p0, p1, p2); /// /// '{0}.{1}' must not be empty. At least one '{2}' is required to format a response. /// internal static string OutputFormattersAreRequired { - get { return GetString("OutputFormattersAreRequired"); } + get => GetString("OutputFormattersAreRequired"); } /// /// '{0}.{1}' must not be empty. At least one '{2}' is required to format a response. /// internal static string FormatOutputFormattersAreRequired(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("OutputFormattersAreRequired"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("OutputFormattersAreRequired"), p0, p1, p2); /// /// Multiple overloads of method '{0}' are not supported. /// internal static string MiddewareFilter_ConfigureMethodOverload { - get { return GetString("MiddewareFilter_ConfigureMethodOverload"); } + get => GetString("MiddewareFilter_ConfigureMethodOverload"); } /// /// Multiple overloads of method '{0}' are not supported. /// internal static string FormatMiddewareFilter_ConfigureMethodOverload(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MiddewareFilter_ConfigureMethodOverload"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MiddewareFilter_ConfigureMethodOverload"), p0); /// /// A public method named '{0}' could not be found in the '{1}' type. /// internal static string MiddewareFilter_NoConfigureMethod { - get { return GetString("MiddewareFilter_NoConfigureMethod"); } + get => GetString("MiddewareFilter_NoConfigureMethod"); } /// /// A public method named '{0}' could not be found in the '{1}' type. /// internal static string FormatMiddewareFilter_NoConfigureMethod(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MiddewareFilter_NoConfigureMethod"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MiddewareFilter_NoConfigureMethod"), p0, p1); /// /// Could not find '{0}' in the feature list. /// internal static string MiddlewareFilterBuilder_NoMiddlewareFeature { - get { return GetString("MiddlewareFilterBuilder_NoMiddlewareFeature"); } + get => GetString("MiddlewareFilterBuilder_NoMiddlewareFeature"); } /// /// Could not find '{0}' in the feature list. /// internal static string FormatMiddlewareFilterBuilder_NoMiddlewareFeature(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterBuilder_NoMiddlewareFeature"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterBuilder_NoMiddlewareFeature"), p0); /// /// The '{0}' property cannot be null. /// internal static string MiddlewareFilterBuilder_NullApplicationBuilder { - get { return GetString("MiddlewareFilterBuilder_NullApplicationBuilder"); } + get => GetString("MiddlewareFilterBuilder_NullApplicationBuilder"); } /// /// The '{0}' property cannot be null. /// internal static string FormatMiddlewareFilterBuilder_NullApplicationBuilder(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterBuilder_NullApplicationBuilder"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterBuilder_NullApplicationBuilder"), p0); /// /// The '{0}' method in the type '{1}' must have a return type of '{2}'. /// internal static string MiddlewareFilter_InvalidConfigureReturnType { - get { return GetString("MiddlewareFilter_InvalidConfigureReturnType"); } + get => GetString("MiddlewareFilter_InvalidConfigureReturnType"); } /// /// The '{0}' method in the type '{1}' must have a return type of '{2}'. /// internal static string FormatMiddlewareFilter_InvalidConfigureReturnType(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilter_InvalidConfigureReturnType"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilter_InvalidConfigureReturnType"), p0, p1, p2); /// /// Could not resolve a service of type '{0}' for the parameter '{1}' of method '{2}' on type '{3}'. /// internal static string MiddlewareFilter_ServiceResolutionFail { - get { return GetString("MiddlewareFilter_ServiceResolutionFail"); } + get => GetString("MiddlewareFilter_ServiceResolutionFail"); } /// /// Could not resolve a service of type '{0}' for the parameter '{1}' of method '{2}' on type '{3}'. /// internal static string FormatMiddlewareFilter_ServiceResolutionFail(object p0, object p1, object p2, object p3) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilter_ServiceResolutionFail"), p0, p1, p2, p3); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilter_ServiceResolutionFail"), p0, p1, p2, p3); /// /// An {0} cannot be created without a valid instance of {1}. /// internal static string AuthorizeFilter_AuthorizationPolicyCannotBeCreated { - get { return GetString("AuthorizeFilter_AuthorizationPolicyCannotBeCreated"); } + get => GetString("AuthorizeFilter_AuthorizationPolicyCannotBeCreated"); } /// /// An {0} cannot be created without a valid instance of {1}. /// internal static string FormatAuthorizeFilter_AuthorizationPolicyCannotBeCreated(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("AuthorizeFilter_AuthorizationPolicyCannotBeCreated"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("AuthorizeFilter_AuthorizationPolicyCannotBeCreated"), p0, p1); /// /// The '{0}' cannot bind to a model of type '{1}'. Change the model type to '{2}' instead. /// internal static string FormCollectionModelBinder_CannotBindToFormCollection { - get { return GetString("FormCollectionModelBinder_CannotBindToFormCollection"); } + get => GetString("FormCollectionModelBinder_CannotBindToFormCollection"); } /// /// The '{0}' cannot bind to a model of type '{1}'. Change the model type to '{2}' instead. /// internal static string FormatFormCollectionModelBinder_CannotBindToFormCollection(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("FormCollectionModelBinder_CannotBindToFormCollection"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("FormCollectionModelBinder_CannotBindToFormCollection"), p0, p1, p2); /// /// '{0}' requires the response cache middleware. /// internal static string VaryByQueryKeys_Requires_ResponseCachingMiddleware { - get { return GetString("VaryByQueryKeys_Requires_ResponseCachingMiddleware"); } + get => GetString("VaryByQueryKeys_Requires_ResponseCachingMiddleware"); } /// /// '{0}' requires the response cache middleware. /// internal static string FormatVaryByQueryKeys_Requires_ResponseCachingMiddleware(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("VaryByQueryKeys_Requires_ResponseCachingMiddleware"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("VaryByQueryKeys_Requires_ResponseCachingMiddleware"), p0); /// /// A duplicate entry for library reference {0} was found. Please check that all package references in all projects use the same casing for the same package references. /// internal static string CandidateResolver_DifferentCasedReference { - get { return GetString("CandidateResolver_DifferentCasedReference"); } + get => GetString("CandidateResolver_DifferentCasedReference"); } /// /// A duplicate entry for library reference {0} was found. Please check that all package references in all projects use the same casing for the same package references. /// internal static string FormatCandidateResolver_DifferentCasedReference(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("CandidateResolver_DifferentCasedReference"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("CandidateResolver_DifferentCasedReference"), p0); /// /// Unable to create an instance of type '{0}'. The type specified in {1} must not be abstract and must have a parameterless constructor. /// internal static string MiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType { - get { return GetString("MiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType"); } + get => GetString("MiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType"); } /// /// Unable to create an instance of type '{0}'. The type specified in {1} must not be abstract and must have a parameterless constructor. /// internal static string FormatMiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType"), p0, p1); /// /// '{0}' and '{1}' are out of bounds for the string. /// internal static string Argument_InvalidOffsetLength { - get { return GetString("Argument_InvalidOffsetLength"); } + get => GetString("Argument_InvalidOffsetLength"); } /// /// '{0}' and '{1}' are out of bounds for the string. /// internal static string FormatArgument_InvalidOffsetLength(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Argument_InvalidOffsetLength"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("Argument_InvalidOffsetLength"), p0, p1); /// /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. /// internal static string ComplexTypeModelBinder_NoParameterlessConstructor_TopLevelObject { - get { return GetString("ComplexTypeModelBinder_NoParameterlessConstructor_TopLevelObject"); } + get => GetString("ComplexTypeModelBinder_NoParameterlessConstructor_TopLevelObject"); } /// /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. /// internal static string FormatComplexTypeModelBinder_NoParameterlessConstructor_TopLevelObject(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ComplexTypeModelBinder_NoParameterlessConstructor_TopLevelObject"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ComplexTypeModelBinder_NoParameterlessConstructor_TopLevelObject"), p0); /// /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. Alternatively, set the '{1}' property to a non-null value in the '{2}' constructor. /// internal static string ComplexTypeModelBinder_NoParameterlessConstructor_ForProperty { - get { return GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForProperty"); } + get => GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForProperty"); } /// /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. Alternatively, set the '{1}' property to a non-null value in the '{2}' constructor. /// internal static string FormatComplexTypeModelBinder_NoParameterlessConstructor_ForProperty(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForProperty"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForProperty"), p0, p1, p2); private static string GetString(string name, params string[] formatterNames) { diff --git a/src/Microsoft.AspNetCore.Mvc.Cors/Properties/Resources.Designer.cs b/src/Microsoft.AspNetCore.Mvc.Cors/Properties/Resources.Designer.cs index b36a27e978..fe4a772e37 100644 --- a/src/Microsoft.AspNetCore.Mvc.Cors/Properties/Resources.Designer.cs +++ b/src/Microsoft.AspNetCore.Mvc.Cors/Properties/Resources.Designer.cs @@ -15,16 +15,14 @@ namespace Microsoft.AspNetCore.Mvc.Cors /// internal static string CorsAuthorizationFilter_MissingCorsPolicy { - get { return GetString("CorsAuthorizationFilter_MissingCorsPolicy"); } + get => GetString("CorsAuthorizationFilter_MissingCorsPolicy"); } /// /// A CORS policy named '{0}' could not be found. /// internal static string FormatCorsAuthorizationFilter_MissingCorsPolicy(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("CorsAuthorizationFilter_MissingCorsPolicy"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("CorsAuthorizationFilter_MissingCorsPolicy"), p0); private static string GetString(string name, params string[] formatterNames) { diff --git a/src/Microsoft.AspNetCore.Mvc.DataAnnotations/Properties/Resources.Designer.cs b/src/Microsoft.AspNetCore.Mvc.DataAnnotations/Properties/Resources.Designer.cs index e392622b86..30ce539240 100644 --- a/src/Microsoft.AspNetCore.Mvc.DataAnnotations/Properties/Resources.Designer.cs +++ b/src/Microsoft.AspNetCore.Mvc.DataAnnotations/Properties/Resources.Designer.cs @@ -15,48 +15,42 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations /// internal static string ValidatableObjectAdapter_IncompatibleType { - get { return GetString("ValidatableObjectAdapter_IncompatibleType"); } + get => GetString("ValidatableObjectAdapter_IncompatibleType"); } /// /// The model object inside the metadata claimed to be compatible with '{0}', but was actually '{1}'. /// internal static string FormatValidatableObjectAdapter_IncompatibleType(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ValidatableObjectAdapter_IncompatibleType"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ValidatableObjectAdapter_IncompatibleType"), p0, p1); /// /// Value cannot be null or empty. /// internal static string ArgumentCannotBeNullOrEmpty { - get { return GetString("ArgumentCannotBeNullOrEmpty"); } + get => GetString("ArgumentCannotBeNullOrEmpty"); } /// /// Value cannot be null or empty. /// internal static string FormatArgumentCannotBeNullOrEmpty() - { - return GetString("ArgumentCannotBeNullOrEmpty"); - } + => GetString("ArgumentCannotBeNullOrEmpty"); /// /// The '{0}' property of '{1}' must not be null. /// internal static string PropertyOfTypeCannotBeNull { - get { return GetString("PropertyOfTypeCannotBeNull"); } + get => GetString("PropertyOfTypeCannotBeNull"); } /// /// The '{0}' property of '{1}' must not be null. /// internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); private static string GetString(string name, params string[] formatterNames) { diff --git a/src/Microsoft.AspNetCore.Mvc.Formatters.Xml/Properties/Resources.Designer.cs b/src/Microsoft.AspNetCore.Mvc.Formatters.Xml/Properties/Resources.Designer.cs index fa865bbe0f..6928f7f0bd 100644 --- a/src/Microsoft.AspNetCore.Mvc.Formatters.Xml/Properties/Resources.Designer.cs +++ b/src/Microsoft.AspNetCore.Mvc.Formatters.Xml/Properties/Resources.Designer.cs @@ -15,48 +15,42 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Xml /// internal static string EnumerableWrapperProvider_InvalidSourceEnumerableOfT { - get { return GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"); } + get => GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"); } /// /// The type must be an interface and must be or derive from '{0}'. /// internal static string FormatEnumerableWrapperProvider_InvalidSourceEnumerableOfT(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"), p0); /// /// {0} does not recognize '{1}', so instead use '{2}' with '{3}' set to '{4}' for value type property '{5}' on type '{6}'. /// internal static string RequiredProperty_MustHaveDataMemberRequired { - get { return GetString("RequiredProperty_MustHaveDataMemberRequired"); } + get => GetString("RequiredProperty_MustHaveDataMemberRequired"); } /// /// {0} does not recognize '{1}', so instead use '{2}' with '{3}' set to '{4}' for value type property '{5}' on type '{6}'. /// internal static string FormatRequiredProperty_MustHaveDataMemberRequired(object p0, object p1, object p2, object p3, object p4, object p5, object p6) - { - return string.Format(CultureInfo.CurrentCulture, GetString("RequiredProperty_MustHaveDataMemberRequired"), p0, p1, p2, p3, p4, p5, p6); - } + => string.Format(CultureInfo.CurrentCulture, GetString("RequiredProperty_MustHaveDataMemberRequired"), p0, p1, p2, p3, p4, p5, p6); /// /// The object to be wrapped must be of type '{0}' but was of type '{1}'. /// internal static string WrapperProvider_MismatchType { - get { return GetString("WrapperProvider_MismatchType"); } + get => GetString("WrapperProvider_MismatchType"); } /// /// The object to be wrapped must be of type '{0}' but was of type '{1}'. /// internal static string FormatWrapperProvider_MismatchType(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("WrapperProvider_MismatchType"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("WrapperProvider_MismatchType"), p0, p1); private static string GetString(string name, params string[] formatterNames) { diff --git a/src/Microsoft.AspNetCore.Mvc.Razor/Properties/Resources.Designer.cs b/src/Microsoft.AspNetCore.Mvc.Razor/Properties/Resources.Designer.cs index e1bf657ac1..9600750d6e 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor/Properties/Resources.Designer.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor/Properties/Resources.Designer.cs @@ -15,320 +15,280 @@ namespace Microsoft.AspNetCore.Mvc.Razor /// internal static string ArgumentCannotBeNullOrEmpty { - get { return GetString("ArgumentCannotBeNullOrEmpty"); } + get => GetString("ArgumentCannotBeNullOrEmpty"); } /// /// Value cannot be null or empty. /// internal static string FormatArgumentCannotBeNullOrEmpty() - { - return GetString("ArgumentCannotBeNullOrEmpty"); - } + => GetString("ArgumentCannotBeNullOrEmpty"); /// /// One or more compilation failures occurred: /// internal static string CompilationFailed { - get { return GetString("CompilationFailed"); } + get => GetString("CompilationFailed"); } /// /// One or more compilation failures occurred: /// internal static string FormatCompilationFailed() - { - return GetString("CompilationFailed"); - } + => GetString("CompilationFailed"); /// /// '{0}' cannot be invoked when a Layout page is set to be executed. /// internal static string FlushPointCannotBeInvoked { - get { return GetString("FlushPointCannotBeInvoked"); } + get => GetString("FlushPointCannotBeInvoked"); } /// /// '{0}' cannot be invoked when a Layout page is set to be executed. /// internal static string FormatFlushPointCannotBeInvoked(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("FlushPointCannotBeInvoked"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("FlushPointCannotBeInvoked"), p0); /// /// The layout view '{0}' could not be located. The following locations were searched:{1} /// internal static string LayoutCannotBeLocated { - get { return GetString("LayoutCannotBeLocated"); } + get => GetString("LayoutCannotBeLocated"); } /// /// The layout view '{0}' could not be located. The following locations were searched:{1} /// internal static string FormatLayoutCannotBeLocated(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeLocated"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeLocated"), p0, p1); /// /// Layout page '{0}' cannot be rendered after '{1}' has been invoked. /// internal static string LayoutCannotBeRendered { - get { return GetString("LayoutCannotBeRendered"); } + get => GetString("LayoutCannotBeRendered"); } /// /// Layout page '{0}' cannot be rendered after '{1}' has been invoked. /// internal static string FormatLayoutCannotBeRendered(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeRendered"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeRendered"), p0, p1); /// /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. /// internal static string MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword { - get { return GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"); } + get => GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"); } /// /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. /// internal static string FormatMvcRazorCodeParser_CannotHaveModelAndInheritsKeyword(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0); /// /// The '{0}' keyword must be followed by a type name on the same line. /// internal static string MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName { - get { return GetString("MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName"); } + get => GetString("MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName"); } /// /// The '{0}' keyword must be followed by a type name on the same line. /// internal static string FormatMvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName"), p0); /// /// Only one '{0}' statement is allowed in a file. /// internal static string MvcRazorCodeParser_OnlyOneModelStatementIsAllowed { - get { return GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"); } + get => GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"); } /// /// Only one '{0}' statement is allowed in a file. /// internal static string FormatMvcRazorCodeParser_OnlyOneModelStatementIsAllowed(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0); /// /// There is no active writing scope to end. /// internal static string RazorPage_ThereIsNoActiveWritingScopeToEnd { - get { return GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); } + get => GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); } /// /// There is no active writing scope to end. /// internal static string FormatRazorPage_ThereIsNoActiveWritingScopeToEnd() - { - return GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); - } + => GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); /// /// The {0} operation cannot be performed while inside a writing scope in '{1}'. /// internal static string RazorPage_CannotFlushWhileInAWritingScope { - get { return GetString("RazorPage_CannotFlushWhileInAWritingScope"); } + get => GetString("RazorPage_CannotFlushWhileInAWritingScope"); } /// /// The {0} operation cannot be performed while inside a writing scope in '{1}'. /// internal static string FormatRazorPage_CannotFlushWhileInAWritingScope(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_CannotFlushWhileInAWritingScope"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_CannotFlushWhileInAWritingScope"), p0, p1); /// /// {0} invocation in '{1}' is invalid. {0} can only be called from a layout page. /// internal static string RazorPage_MethodCannotBeCalled { - get { return GetString("RazorPage_MethodCannotBeCalled"); } + get => GetString("RazorPage_MethodCannotBeCalled"); } /// /// {0} invocation in '{1}' is invalid. {0} can only be called from a layout page. /// internal static string FormatRazorPage_MethodCannotBeCalled(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_MethodCannotBeCalled"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_MethodCannotBeCalled"), p0, p1); /// /// {0} has not been called for the page at '{1}'. To ignore call {2}(). /// internal static string RenderBodyNotCalled { - get { return GetString("RenderBodyNotCalled"); } + get => GetString("RenderBodyNotCalled"); } /// /// {0} has not been called for the page at '{1}'. To ignore call {2}(). /// internal static string FormatRenderBodyNotCalled(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("RenderBodyNotCalled"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("RenderBodyNotCalled"), p0, p1, p2); /// /// Section '{0}' is already defined. /// internal static string SectionAlreadyDefined { - get { return GetString("SectionAlreadyDefined"); } + get => GetString("SectionAlreadyDefined"); } /// /// Section '{0}' is already defined. /// internal static string FormatSectionAlreadyDefined(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyDefined"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyDefined"), p0); /// /// {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered. /// internal static string SectionAlreadyRendered { - get { return GetString("SectionAlreadyRendered"); } + get => GetString("SectionAlreadyRendered"); } /// /// {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered. /// internal static string FormatSectionAlreadyRendered(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyRendered"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyRendered"), p0, p1, p2); /// /// The layout page '{0}' cannot find the section '{1}' in the content page '{2}'. /// internal static string SectionNotDefined { - get { return GetString("SectionNotDefined"); } + get => GetString("SectionNotDefined"); } /// /// The layout page '{0}' cannot find the section '{1}' in the content page '{2}'. /// internal static string FormatSectionNotDefined(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("SectionNotDefined"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("SectionNotDefined"), p0, p1, p2); /// /// The following sections have been defined but have not been rendered by the page at '{0}': '{1}'. To ignore an unrendered section call {2}("sectionName"). /// internal static string SectionsNotRendered { - get { return GetString("SectionsNotRendered"); } + get => GetString("SectionsNotRendered"); } /// /// The following sections have been defined but have not been rendered by the page at '{0}': '{1}'. To ignore an unrendered section call {2}("sectionName"). /// internal static string FormatSectionsNotRendered(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("SectionsNotRendered"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("SectionsNotRendered"), p0, p1, p2); /// /// View of type '{0}' cannot be activated by '{1}'. /// internal static string ViewCannotBeActivated { - get { return GetString("ViewCannotBeActivated"); } + get => GetString("ViewCannotBeActivated"); } /// /// View of type '{0}' cannot be activated by '{1}'. /// internal static string FormatViewCannotBeActivated(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ViewCannotBeActivated"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ViewCannotBeActivated"), p0, p1); /// /// '{0} must be set to access '{1}'. /// internal static string ViewContextMustBeSet { - get { return GetString("ViewContextMustBeSet"); } + get => GetString("ViewContextMustBeSet"); } /// /// '{0} must be set to access '{1}'. /// internal static string FormatViewContextMustBeSet(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ViewContextMustBeSet"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ViewContextMustBeSet"), p0, p1); /// /// Generated Code /// internal static string GeneratedCodeFileName { - get { return GetString("GeneratedCodeFileName"); } + get => GetString("GeneratedCodeFileName"); } /// /// Generated Code /// internal static string FormatGeneratedCodeFileName() - { - return GetString("GeneratedCodeFileName"); - } + => GetString("GeneratedCodeFileName"); /// /// Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null. /// internal static string RazorPage_InvalidTagHelperIndexerAssignment { - get { return GetString("RazorPage_InvalidTagHelperIndexerAssignment"); } + get => GetString("RazorPage_InvalidTagHelperIndexerAssignment"); } /// /// Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null. /// internal static string FormatRazorPage_InvalidTagHelperIndexerAssignment(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_InvalidTagHelperIndexerAssignment"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_InvalidTagHelperIndexerAssignment"), p0, p1, p2); /// /// Unexpected return value from '{1}.{2}' for URL '{0}'. If the '{1}' service has been overridden, change '{2}' to replace only the '~/' prefix. Otherwise, add the following directive to the Razor page to disable URL resolution relative to the application's 'webroot' setting: @@ -337,7 +297,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor /// internal static string CouldNotResolveApplicationRelativeUrl_TagHelper { - get { return GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"); } + get => GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"); } /// @@ -346,121 +306,105 @@ namespace Microsoft.AspNetCore.Mvc.Razor /// @{3} "{4}, {5}" /// internal static string FormatCouldNotResolveApplicationRelativeUrl_TagHelper(object p0, object p1, object p2, object p3, object p4, object p5) - { - return string.Format(CultureInfo.CurrentCulture, GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"), p0, p1, p2, p3, p4, p5); - } + => string.Format(CultureInfo.CurrentCulture, GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"), p0, p1, p2, p3, p4, p5); /// /// A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered. /// internal static string LayoutHasCircularReference { - get { return GetString("LayoutHasCircularReference"); } + get => GetString("LayoutHasCircularReference"); } /// /// A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered. /// internal static string FormatLayoutHasCircularReference(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("LayoutHasCircularReference"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("LayoutHasCircularReference"), p0, p1); /// /// One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false. /// internal static string Compilation_DependencyContextIsNotSpecified { - get { return GetString("Compilation_DependencyContextIsNotSpecified"); } + get => GetString("Compilation_DependencyContextIsNotSpecified"); } /// /// One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false. /// internal static string FormatCompilation_DependencyContextIsNotSpecified(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Compilation_DependencyContextIsNotSpecified"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("Compilation_DependencyContextIsNotSpecified"), p0, p1); /// /// '{0}' cannot be empty. These locations are required to locate a view for rendering. /// internal static string ViewLocationFormatsIsRequired { - get { return GetString("ViewLocationFormatsIsRequired"); } + get => GetString("ViewLocationFormatsIsRequired"); } /// /// '{0}' cannot be empty. These locations are required to locate a view for rendering. /// internal static string FormatViewLocationFormatsIsRequired(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("ViewLocationFormatsIsRequired"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("ViewLocationFormatsIsRequired"), p0); /// /// Nesting of TagHelper attribute writing scopes is not supported. /// internal static string RazorPage_NestingAttributeWritingScopesNotSupported { - get { return GetString("RazorPage_NestingAttributeWritingScopesNotSupported"); } + get => GetString("RazorPage_NestingAttributeWritingScopesNotSupported"); } /// /// Nesting of TagHelper attribute writing scopes is not supported. /// internal static string FormatRazorPage_NestingAttributeWritingScopesNotSupported() - { - return GetString("RazorPage_NestingAttributeWritingScopesNotSupported"); - } + => GetString("RazorPage_NestingAttributeWritingScopesNotSupported"); /// /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. /// internal static string FileProvidersAreRequired { - get { return GetString("FileProvidersAreRequired"); } + get => GetString("FileProvidersAreRequired"); } /// /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. /// internal static string FormatFileProvidersAreRequired(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("FileProvidersAreRequired"), p0, p1, p2); - } + => string.Format(CultureInfo.CurrentCulture, GetString("FileProvidersAreRequired"), p0, p1, p2); /// /// Path must begin with a forward slash '/'. /// internal static string RazorProject_PathMustStartWithForwardSlash { - get { return GetString("RazorProject_PathMustStartWithForwardSlash"); } + get => GetString("RazorProject_PathMustStartWithForwardSlash"); } /// /// Path must begin with a forward slash '/'. /// internal static string FormatRazorProject_PathMustStartWithForwardSlash() - { - return GetString("RazorProject_PathMustStartWithForwardSlash"); - } + => GetString("RazorProject_PathMustStartWithForwardSlash"); /// /// The property '{0}' of '{1}' must not be null. /// internal static string PropertyMustBeSet { - get { return GetString("PropertyMustBeSet"); } + get => GetString("PropertyMustBeSet"); } /// /// The property '{0}' of '{1}' must not be null. /// internal static string FormatPropertyMustBeSet(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("PropertyMustBeSet"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("PropertyMustBeSet"), p0, p1); private static string GetString(string name, params string[] formatterNames) { diff --git a/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Properties/Resources.Designer.cs b/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Properties/Resources.Designer.cs index cfa3a7c9af..3f23183787 100644 --- a/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Properties/Resources.Designer.cs +++ b/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Properties/Resources.Designer.cs @@ -15,64 +15,56 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Test /// internal static string CompareAttributeTestResource { - get { return GetString("CompareAttributeTestResource"); } + get => GetString("CompareAttributeTestResource"); } /// /// Comparing {0} to {1}. /// internal static string FormatCompareAttributeTestResource(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("CompareAttributeTestResource"), p0, p1); - } + => string.Format(CultureInfo.CurrentCulture, GetString("CompareAttributeTestResource"), p0, p1); /// /// description from resources /// internal static string DisplayAttribute_Description { - get { return GetString("DisplayAttribute_Description"); } + get => GetString("DisplayAttribute_Description"); } /// /// description from resources /// internal static string FormatDisplayAttribute_Description() - { - return GetString("DisplayAttribute_Description"); - } + => GetString("DisplayAttribute_Description"); /// /// name from resources /// internal static string DisplayAttribute_Name { - get { return GetString("DisplayAttribute_Name"); } + get => GetString("DisplayAttribute_Name"); } /// /// name from resources /// internal static string FormatDisplayAttribute_Name() - { - return GetString("DisplayAttribute_Name"); - } + => GetString("DisplayAttribute_Name"); /// /// Error about '{0}' from resources. /// internal static string RemoteAttribute_Error { - get { return GetString("RemoteAttribute_Error"); } + get => GetString("RemoteAttribute_Error"); } /// /// Error about '{0}' from resources. /// internal static string FormatRemoteAttribute_Error(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("RemoteAttribute_Error"), p0); - } + => string.Format(CultureInfo.CurrentCulture, GetString("RemoteAttribute_Error"), p0); private static string GetString(string name, params string[] formatterNames) {