Update to new resx format

This commit is contained in:
Pranav K 2017-04-03 16:37:22 -07:00
parent 10d2d7c9f6
commit d37b1548f8
6 changed files with 256 additions and 512 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,16 +15,14 @@ namespace Microsoft.AspNetCore.Mvc.Cors
/// </summary> /// </summary>
internal static string CorsAuthorizationFilter_MissingCorsPolicy internal static string CorsAuthorizationFilter_MissingCorsPolicy
{ {
get { return GetString("CorsAuthorizationFilter_MissingCorsPolicy"); } get => GetString("CorsAuthorizationFilter_MissingCorsPolicy");
} }
/// <summary> /// <summary>
/// A CORS policy named '{0}' could not be found. /// A CORS policy named '{0}' could not be found.
/// </summary> /// </summary>
internal static string FormatCorsAuthorizationFilter_MissingCorsPolicy(object p0) internal static string FormatCorsAuthorizationFilter_MissingCorsPolicy(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("CorsAuthorizationFilter_MissingCorsPolicy"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("CorsAuthorizationFilter_MissingCorsPolicy"), p0);
}
private static string GetString(string name, params string[] formatterNames) private static string GetString(string name, params string[] formatterNames)
{ {

View File

@ -15,48 +15,42 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations
/// </summary> /// </summary>
internal static string ValidatableObjectAdapter_IncompatibleType internal static string ValidatableObjectAdapter_IncompatibleType
{ {
get { return GetString("ValidatableObjectAdapter_IncompatibleType"); } get => GetString("ValidatableObjectAdapter_IncompatibleType");
} }
/// <summary> /// <summary>
/// The model object inside the metadata claimed to be compatible with '{0}', but was actually '{1}'. /// The model object inside the metadata claimed to be compatible with '{0}', but was actually '{1}'.
/// </summary> /// </summary>
internal static string FormatValidatableObjectAdapter_IncompatibleType(object p0, object p1) internal static string FormatValidatableObjectAdapter_IncompatibleType(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("ValidatableObjectAdapter_IncompatibleType"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("ValidatableObjectAdapter_IncompatibleType"), 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>
/// 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);
}
private static string GetString(string name, params string[] formatterNames) private static string GetString(string name, params string[] formatterNames)
{ {

View File

@ -15,48 +15,42 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Xml
/// </summary> /// </summary>
internal static string EnumerableWrapperProvider_InvalidSourceEnumerableOfT internal static string EnumerableWrapperProvider_InvalidSourceEnumerableOfT
{ {
get { return GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"); } get => GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT");
} }
/// <summary> /// <summary>
/// The type must be an interface and must be or derive from '{0}'. /// The type must be an interface and must be or derive from '{0}'.
/// </summary> /// </summary>
internal static string FormatEnumerableWrapperProvider_InvalidSourceEnumerableOfT(object p0) internal static string FormatEnumerableWrapperProvider_InvalidSourceEnumerableOfT(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"), p0);
}
/// <summary> /// <summary>
/// {0} does not recognize '{1}', so instead use '{2}' with '{3}' set to '{4}' for value type property '{5}' on type '{6}'. /// {0} does not recognize '{1}', so instead use '{2}' with '{3}' set to '{4}' for value type property '{5}' on type '{6}'.
/// </summary> /// </summary>
internal static string RequiredProperty_MustHaveDataMemberRequired internal static string RequiredProperty_MustHaveDataMemberRequired
{ {
get { return GetString("RequiredProperty_MustHaveDataMemberRequired"); } get => GetString("RequiredProperty_MustHaveDataMemberRequired");
} }
/// <summary> /// <summary>
/// {0} does not recognize '{1}', so instead use '{2}' with '{3}' set to '{4}' for value type property '{5}' on type '{6}'. /// {0} does not recognize '{1}', so instead use '{2}' with '{3}' set to '{4}' for value type property '{5}' on type '{6}'.
/// </summary> /// </summary>
internal static string FormatRequiredProperty_MustHaveDataMemberRequired(object p0, object p1, object p2, object p3, object p4, object p5, object p6) internal static string FormatRequiredProperty_MustHaveDataMemberRequired(object p0, object p1, object p2, object p3, object p4, object p5, object p6)
{ => string.Format(CultureInfo.CurrentCulture, GetString("RequiredProperty_MustHaveDataMemberRequired"), p0, p1, p2, p3, p4, p5, p6);
return string.Format(CultureInfo.CurrentCulture, GetString("RequiredProperty_MustHaveDataMemberRequired"), p0, p1, p2, p3, p4, p5, p6);
}
/// <summary> /// <summary>
/// The object to be wrapped must be of type '{0}' but was of type '{1}'. /// The object to be wrapped must be of type '{0}' but was of type '{1}'.
/// </summary> /// </summary>
internal static string WrapperProvider_MismatchType internal static string WrapperProvider_MismatchType
{ {
get { return GetString("WrapperProvider_MismatchType"); } get => GetString("WrapperProvider_MismatchType");
} }
/// <summary> /// <summary>
/// The object to be wrapped must be of type '{0}' but was of type '{1}'. /// The object to be wrapped must be of type '{0}' but was of type '{1}'.
/// </summary> /// </summary>
internal static string FormatWrapperProvider_MismatchType(object p0, object p1) internal static string FormatWrapperProvider_MismatchType(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("WrapperProvider_MismatchType"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("WrapperProvider_MismatchType"), p0, p1);
}
private static string GetString(string name, params string[] formatterNames) private static string GetString(string name, params string[] formatterNames)
{ {

View File

@ -15,320 +15,280 @@ namespace Microsoft.AspNetCore.Mvc.Razor
/// </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>
/// One or more compilation failures occurred: /// One or more compilation failures occurred:
/// </summary> /// </summary>
internal static string CompilationFailed internal static string CompilationFailed
{ {
get { return GetString("CompilationFailed"); } get => GetString("CompilationFailed");
} }
/// <summary> /// <summary>
/// One or more compilation failures occurred: /// One or more compilation failures occurred:
/// </summary> /// </summary>
internal static string FormatCompilationFailed() internal static string FormatCompilationFailed()
{ => GetString("CompilationFailed");
return GetString("CompilationFailed");
}
/// <summary> /// <summary>
/// '{0}' cannot be invoked when a Layout page is set to be executed. /// '{0}' cannot be invoked when a Layout page is set to be executed.
/// </summary> /// </summary>
internal static string FlushPointCannotBeInvoked internal static string FlushPointCannotBeInvoked
{ {
get { return GetString("FlushPointCannotBeInvoked"); } get => GetString("FlushPointCannotBeInvoked");
} }
/// <summary> /// <summary>
/// '{0}' cannot be invoked when a Layout page is set to be executed. /// '{0}' cannot be invoked when a Layout page is set to be executed.
/// </summary> /// </summary>
internal static string FormatFlushPointCannotBeInvoked(object p0) internal static string FormatFlushPointCannotBeInvoked(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("FlushPointCannotBeInvoked"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("FlushPointCannotBeInvoked"), p0);
}
/// <summary> /// <summary>
/// The layout view '{0}' could not be located. The following locations were searched:{1} /// The layout view '{0}' could not be located. The following locations were searched:{1}
/// </summary> /// </summary>
internal static string LayoutCannotBeLocated internal static string LayoutCannotBeLocated
{ {
get { return GetString("LayoutCannotBeLocated"); } get => GetString("LayoutCannotBeLocated");
} }
/// <summary> /// <summary>
/// The layout view '{0}' could not be located. The following locations were searched:{1} /// The layout view '{0}' could not be located. The following locations were searched:{1}
/// </summary> /// </summary>
internal static string FormatLayoutCannotBeLocated(object p0, object p1) internal static string FormatLayoutCannotBeLocated(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeLocated"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeLocated"), p0, p1);
}
/// <summary> /// <summary>
/// Layout page '{0}' cannot be rendered after '{1}' has been invoked. /// Layout page '{0}' cannot be rendered after '{1}' has been invoked.
/// </summary> /// </summary>
internal static string LayoutCannotBeRendered internal static string LayoutCannotBeRendered
{ {
get { return GetString("LayoutCannotBeRendered"); } get => GetString("LayoutCannotBeRendered");
} }
/// <summary> /// <summary>
/// Layout page '{0}' cannot be rendered after '{1}' has been invoked. /// Layout page '{0}' cannot be rendered after '{1}' has been invoked.
/// </summary> /// </summary>
internal static string FormatLayoutCannotBeRendered(object p0, object p1) internal static string FormatLayoutCannotBeRendered(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeRendered"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeRendered"), p0, p1);
}
/// <summary> /// <summary>
/// The 'inherits' keyword is not allowed when a '{0}' keyword is used. /// The 'inherits' keyword is not allowed when a '{0}' keyword is used.
/// </summary> /// </summary>
internal static string MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword internal static string MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword
{ {
get { return GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"); } get => GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword");
} }
/// <summary> /// <summary>
/// The 'inherits' keyword is not allowed when a '{0}' keyword is used. /// The 'inherits' keyword is not allowed when a '{0}' keyword is used.
/// </summary> /// </summary>
internal static string FormatMvcRazorCodeParser_CannotHaveModelAndInheritsKeyword(object p0) internal static string FormatMvcRazorCodeParser_CannotHaveModelAndInheritsKeyword(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0);
}
/// <summary> /// <summary>
/// The '{0}' keyword must be followed by a type name on the same line. /// The '{0}' keyword must be followed by a type name on the same line.
/// </summary> /// </summary>
internal static string MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName internal static string MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName
{ {
get { return GetString("MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName"); } get => GetString("MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName");
} }
/// <summary> /// <summary>
/// The '{0}' keyword must be followed by a type name on the same line. /// The '{0}' keyword must be followed by a type name on the same line.
/// </summary> /// </summary>
internal static string FormatMvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName(object p0) internal static string FormatMvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName"), p0);
}
/// <summary> /// <summary>
/// Only one '{0}' statement is allowed in a file. /// Only one '{0}' statement is allowed in a file.
/// </summary> /// </summary>
internal static string MvcRazorCodeParser_OnlyOneModelStatementIsAllowed internal static string MvcRazorCodeParser_OnlyOneModelStatementIsAllowed
{ {
get { return GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"); } get => GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed");
} }
/// <summary> /// <summary>
/// Only one '{0}' statement is allowed in a file. /// Only one '{0}' statement is allowed in a file.
/// </summary> /// </summary>
internal static string FormatMvcRazorCodeParser_OnlyOneModelStatementIsAllowed(object p0) internal static string FormatMvcRazorCodeParser_OnlyOneModelStatementIsAllowed(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0);
}
/// <summary> /// <summary>
/// There is no active writing scope to end. /// There is no active writing scope to end.
/// </summary> /// </summary>
internal static string RazorPage_ThereIsNoActiveWritingScopeToEnd internal static string RazorPage_ThereIsNoActiveWritingScopeToEnd
{ {
get { return GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); } get => GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd");
} }
/// <summary> /// <summary>
/// There is no active writing scope to end. /// There is no active writing scope to end.
/// </summary> /// </summary>
internal static string FormatRazorPage_ThereIsNoActiveWritingScopeToEnd() internal static string FormatRazorPage_ThereIsNoActiveWritingScopeToEnd()
{ => GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd");
return GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd");
}
/// <summary> /// <summary>
/// The {0} operation cannot be performed while inside a writing scope in '{1}'. /// The {0} operation cannot be performed while inside a writing scope in '{1}'.
/// </summary> /// </summary>
internal static string RazorPage_CannotFlushWhileInAWritingScope internal static string RazorPage_CannotFlushWhileInAWritingScope
{ {
get { return GetString("RazorPage_CannotFlushWhileInAWritingScope"); } get => GetString("RazorPage_CannotFlushWhileInAWritingScope");
} }
/// <summary> /// <summary>
/// The {0} operation cannot be performed while inside a writing scope in '{1}'. /// The {0} operation cannot be performed while inside a writing scope in '{1}'.
/// </summary> /// </summary>
internal static string FormatRazorPage_CannotFlushWhileInAWritingScope(object p0, object p1) internal static string FormatRazorPage_CannotFlushWhileInAWritingScope(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_CannotFlushWhileInAWritingScope"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_CannotFlushWhileInAWritingScope"), p0, p1);
}
/// <summary> /// <summary>
/// {0} invocation in '{1}' is invalid. {0} can only be called from a layout page. /// {0} invocation in '{1}' is invalid. {0} can only be called from a layout page.
/// </summary> /// </summary>
internal static string RazorPage_MethodCannotBeCalled internal static string RazorPage_MethodCannotBeCalled
{ {
get { return GetString("RazorPage_MethodCannotBeCalled"); } get => GetString("RazorPage_MethodCannotBeCalled");
} }
/// <summary> /// <summary>
/// {0} invocation in '{1}' is invalid. {0} can only be called from a layout page. /// {0} invocation in '{1}' is invalid. {0} can only be called from a layout page.
/// </summary> /// </summary>
internal static string FormatRazorPage_MethodCannotBeCalled(object p0, object p1) internal static string FormatRazorPage_MethodCannotBeCalled(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_MethodCannotBeCalled"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_MethodCannotBeCalled"), p0, p1);
}
/// <summary> /// <summary>
/// {0} has not been called for the page at '{1}'. To ignore call {2}(). /// {0} has not been called for the page at '{1}'. To ignore call {2}().
/// </summary> /// </summary>
internal static string RenderBodyNotCalled internal static string RenderBodyNotCalled
{ {
get { return GetString("RenderBodyNotCalled"); } get => GetString("RenderBodyNotCalled");
} }
/// <summary> /// <summary>
/// {0} has not been called for the page at '{1}'. To ignore call {2}(). /// {0} has not been called for the page at '{1}'. To ignore call {2}().
/// </summary> /// </summary>
internal static string FormatRenderBodyNotCalled(object p0, object p1, object p2) internal static string FormatRenderBodyNotCalled(object p0, object p1, object p2)
{ => string.Format(CultureInfo.CurrentCulture, GetString("RenderBodyNotCalled"), p0, p1, p2);
return string.Format(CultureInfo.CurrentCulture, GetString("RenderBodyNotCalled"), p0, p1, p2);
}
/// <summary> /// <summary>
/// Section '{0}' is already defined. /// Section '{0}' is already defined.
/// </summary> /// </summary>
internal static string SectionAlreadyDefined internal static string SectionAlreadyDefined
{ {
get { return GetString("SectionAlreadyDefined"); } get => GetString("SectionAlreadyDefined");
} }
/// <summary> /// <summary>
/// Section '{0}' is already defined. /// Section '{0}' is already defined.
/// </summary> /// </summary>
internal static string FormatSectionAlreadyDefined(object p0) internal static string FormatSectionAlreadyDefined(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyDefined"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyDefined"), p0);
}
/// <summary> /// <summary>
/// {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered. /// {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered.
/// </summary> /// </summary>
internal static string SectionAlreadyRendered internal static string SectionAlreadyRendered
{ {
get { return GetString("SectionAlreadyRendered"); } get => GetString("SectionAlreadyRendered");
} }
/// <summary> /// <summary>
/// {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered. /// {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered.
/// </summary> /// </summary>
internal static string FormatSectionAlreadyRendered(object p0, object p1, object p2) internal static string FormatSectionAlreadyRendered(object p0, object p1, object p2)
{ => string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyRendered"), p0, p1, p2);
return string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyRendered"), p0, p1, p2);
}
/// <summary> /// <summary>
/// The layout page '{0}' cannot find the section '{1}' in the content page '{2}'. /// The layout page '{0}' cannot find the section '{1}' in the content page '{2}'.
/// </summary> /// </summary>
internal static string SectionNotDefined internal static string SectionNotDefined
{ {
get { return GetString("SectionNotDefined"); } get => GetString("SectionNotDefined");
} }
/// <summary> /// <summary>
/// The layout page '{0}' cannot find the section '{1}' in the content page '{2}'. /// The layout page '{0}' cannot find the section '{1}' in the content page '{2}'.
/// </summary> /// </summary>
internal static string FormatSectionNotDefined(object p0, object p1, object p2) internal static string FormatSectionNotDefined(object p0, object p1, object p2)
{ => string.Format(CultureInfo.CurrentCulture, GetString("SectionNotDefined"), p0, p1, p2);
return string.Format(CultureInfo.CurrentCulture, GetString("SectionNotDefined"), p0, p1, p2);
}
/// <summary> /// <summary>
/// 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"). /// 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").
/// </summary> /// </summary>
internal static string SectionsNotRendered internal static string SectionsNotRendered
{ {
get { return GetString("SectionsNotRendered"); } get => GetString("SectionsNotRendered");
} }
/// <summary> /// <summary>
/// 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"). /// 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").
/// </summary> /// </summary>
internal static string FormatSectionsNotRendered(object p0, object p1, object p2) internal static string FormatSectionsNotRendered(object p0, object p1, object p2)
{ => string.Format(CultureInfo.CurrentCulture, GetString("SectionsNotRendered"), p0, p1, p2);
return string.Format(CultureInfo.CurrentCulture, GetString("SectionsNotRendered"), p0, p1, p2);
}
/// <summary> /// <summary>
/// View of type '{0}' cannot be activated by '{1}'. /// View of type '{0}' cannot be activated by '{1}'.
/// </summary> /// </summary>
internal static string ViewCannotBeActivated internal static string ViewCannotBeActivated
{ {
get { return GetString("ViewCannotBeActivated"); } get => GetString("ViewCannotBeActivated");
} }
/// <summary> /// <summary>
/// View of type '{0}' cannot be activated by '{1}'. /// View of type '{0}' cannot be activated by '{1}'.
/// </summary> /// </summary>
internal static string FormatViewCannotBeActivated(object p0, object p1) internal static string FormatViewCannotBeActivated(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("ViewCannotBeActivated"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("ViewCannotBeActivated"), p0, p1);
}
/// <summary> /// <summary>
/// '{0} must be set to access '{1}'. /// '{0} must be set to access '{1}'.
/// </summary> /// </summary>
internal static string ViewContextMustBeSet internal static string ViewContextMustBeSet
{ {
get { return GetString("ViewContextMustBeSet"); } get => GetString("ViewContextMustBeSet");
} }
/// <summary> /// <summary>
/// '{0} must be set to access '{1}'. /// '{0} must be set to access '{1}'.
/// </summary> /// </summary>
internal static string FormatViewContextMustBeSet(object p0, object p1) internal static string FormatViewContextMustBeSet(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("ViewContextMustBeSet"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("ViewContextMustBeSet"), p0, p1);
}
/// <summary> /// <summary>
/// Generated Code /// Generated Code
/// </summary> /// </summary>
internal static string GeneratedCodeFileName internal static string GeneratedCodeFileName
{ {
get { return GetString("GeneratedCodeFileName"); } get => GetString("GeneratedCodeFileName");
} }
/// <summary> /// <summary>
/// Generated Code /// Generated Code
/// </summary> /// </summary>
internal static string FormatGeneratedCodeFileName() internal static string FormatGeneratedCodeFileName()
{ => GetString("GeneratedCodeFileName");
return GetString("GeneratedCodeFileName");
}
/// <summary> /// <summary>
/// Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null. /// Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null.
/// </summary> /// </summary>
internal static string RazorPage_InvalidTagHelperIndexerAssignment internal static string RazorPage_InvalidTagHelperIndexerAssignment
{ {
get { return GetString("RazorPage_InvalidTagHelperIndexerAssignment"); } get => GetString("RazorPage_InvalidTagHelperIndexerAssignment");
} }
/// <summary> /// <summary>
/// Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null. /// Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null.
/// </summary> /// </summary>
internal static string FormatRazorPage_InvalidTagHelperIndexerAssignment(object p0, object p1, object p2) internal static string FormatRazorPage_InvalidTagHelperIndexerAssignment(object p0, object p1, object p2)
{ => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_InvalidTagHelperIndexerAssignment"), p0, p1, p2);
return string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_InvalidTagHelperIndexerAssignment"), p0, p1, p2);
}
/// <summary> /// <summary>
/// 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: /// 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
/// </summary> /// </summary>
internal static string CouldNotResolveApplicationRelativeUrl_TagHelper internal static string CouldNotResolveApplicationRelativeUrl_TagHelper
{ {
get { return GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"); } get => GetString("CouldNotResolveApplicationRelativeUrl_TagHelper");
} }
/// <summary> /// <summary>
@ -346,121 +306,105 @@ namespace Microsoft.AspNetCore.Mvc.Razor
/// @{3} "{4}, {5}" /// @{3} "{4}, {5}"
/// </summary> /// </summary>
internal static string FormatCouldNotResolveApplicationRelativeUrl_TagHelper(object p0, object p1, object p2, object p3, object p4, object p5) internal static string FormatCouldNotResolveApplicationRelativeUrl_TagHelper(object p0, object p1, object p2, object p3, object p4, object p5)
{ => string.Format(CultureInfo.CurrentCulture, GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"), p0, p1, p2, p3, p4, p5);
return string.Format(CultureInfo.CurrentCulture, GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"), p0, p1, p2, p3, p4, p5);
}
/// <summary> /// <summary>
/// A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered. /// A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered.
/// </summary> /// </summary>
internal static string LayoutHasCircularReference internal static string LayoutHasCircularReference
{ {
get { return GetString("LayoutHasCircularReference"); } get => GetString("LayoutHasCircularReference");
} }
/// <summary> /// <summary>
/// A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered. /// A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered.
/// </summary> /// </summary>
internal static string FormatLayoutHasCircularReference(object p0, object p1) internal static string FormatLayoutHasCircularReference(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("LayoutHasCircularReference"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("LayoutHasCircularReference"), p0, p1);
}
/// <summary> /// <summary>
/// One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false. /// One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false.
/// </summary> /// </summary>
internal static string Compilation_DependencyContextIsNotSpecified internal static string Compilation_DependencyContextIsNotSpecified
{ {
get { return GetString("Compilation_DependencyContextIsNotSpecified"); } get => GetString("Compilation_DependencyContextIsNotSpecified");
} }
/// <summary> /// <summary>
/// One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false. /// One or more compilation references are missing. Ensure that your project is referencing '{0}' and the '{1}' property is not set to false.
/// </summary> /// </summary>
internal static string FormatCompilation_DependencyContextIsNotSpecified(object p0, object p1) internal static string FormatCompilation_DependencyContextIsNotSpecified(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("Compilation_DependencyContextIsNotSpecified"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("Compilation_DependencyContextIsNotSpecified"), p0, p1);
}
/// <summary> /// <summary>
/// '{0}' cannot be empty. These locations are required to locate a view for rendering. /// '{0}' cannot be empty. These locations are required to locate a view for rendering.
/// </summary> /// </summary>
internal static string ViewLocationFormatsIsRequired internal static string ViewLocationFormatsIsRequired
{ {
get { return GetString("ViewLocationFormatsIsRequired"); } get => GetString("ViewLocationFormatsIsRequired");
} }
/// <summary> /// <summary>
/// '{0}' cannot be empty. These locations are required to locate a view for rendering. /// '{0}' cannot be empty. These locations are required to locate a view for rendering.
/// </summary> /// </summary>
internal static string FormatViewLocationFormatsIsRequired(object p0) internal static string FormatViewLocationFormatsIsRequired(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("ViewLocationFormatsIsRequired"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("ViewLocationFormatsIsRequired"), p0);
}
/// <summary> /// <summary>
/// Nesting of TagHelper attribute writing scopes is not supported. /// Nesting of TagHelper attribute writing scopes is not supported.
/// </summary> /// </summary>
internal static string RazorPage_NestingAttributeWritingScopesNotSupported internal static string RazorPage_NestingAttributeWritingScopesNotSupported
{ {
get { return GetString("RazorPage_NestingAttributeWritingScopesNotSupported"); } get => GetString("RazorPage_NestingAttributeWritingScopesNotSupported");
} }
/// <summary> /// <summary>
/// Nesting of TagHelper attribute writing scopes is not supported. /// Nesting of TagHelper attribute writing scopes is not supported.
/// </summary> /// </summary>
internal static string FormatRazorPage_NestingAttributeWritingScopesNotSupported() internal static string FormatRazorPage_NestingAttributeWritingScopesNotSupported()
{ => GetString("RazorPage_NestingAttributeWritingScopesNotSupported");
return GetString("RazorPage_NestingAttributeWritingScopesNotSupported");
}
/// <summary> /// <summary>
/// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering.
/// </summary> /// </summary>
internal static string FileProvidersAreRequired internal static string FileProvidersAreRequired
{ {
get { return GetString("FileProvidersAreRequired"); } get => GetString("FileProvidersAreRequired");
} }
/// <summary> /// <summary>
/// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering.
/// </summary> /// </summary>
internal static string FormatFileProvidersAreRequired(object p0, object p1, object p2) internal static string FormatFileProvidersAreRequired(object p0, object p1, object p2)
{ => string.Format(CultureInfo.CurrentCulture, GetString("FileProvidersAreRequired"), p0, p1, p2);
return string.Format(CultureInfo.CurrentCulture, GetString("FileProvidersAreRequired"), p0, p1, p2);
}
/// <summary> /// <summary>
/// Path must begin with a forward slash '/'. /// Path must begin with a forward slash '/'.
/// </summary> /// </summary>
internal static string RazorProject_PathMustStartWithForwardSlash internal static string RazorProject_PathMustStartWithForwardSlash
{ {
get { return GetString("RazorProject_PathMustStartWithForwardSlash"); } get => GetString("RazorProject_PathMustStartWithForwardSlash");
} }
/// <summary> /// <summary>
/// Path must begin with a forward slash '/'. /// Path must begin with a forward slash '/'.
/// </summary> /// </summary>
internal static string FormatRazorProject_PathMustStartWithForwardSlash() internal static string FormatRazorProject_PathMustStartWithForwardSlash()
{ => GetString("RazorProject_PathMustStartWithForwardSlash");
return GetString("RazorProject_PathMustStartWithForwardSlash");
}
/// <summary> /// <summary>
/// The property '{0}' of '{1}' must not be null. /// The property '{0}' of '{1}' must not be null.
/// </summary> /// </summary>
internal static string PropertyMustBeSet internal static string PropertyMustBeSet
{ {
get { return GetString("PropertyMustBeSet"); } get => GetString("PropertyMustBeSet");
} }
/// <summary> /// <summary>
/// The property '{0}' of '{1}' must not be null. /// The property '{0}' of '{1}' must not be null.
/// </summary> /// </summary>
internal static string FormatPropertyMustBeSet(object p0, object p1) internal static string FormatPropertyMustBeSet(object p0, object p1)
{ => string.Format(CultureInfo.CurrentCulture, GetString("PropertyMustBeSet"), p0, p1);
return string.Format(CultureInfo.CurrentCulture, GetString("PropertyMustBeSet"), p0, p1);
}
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.ViewFeatures.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>
/// Error about '{0}' from resources. /// Error about '{0}' from resources.
/// </summary> /// </summary>
internal static string RemoteAttribute_Error internal static string RemoteAttribute_Error
{ {
get { return GetString("RemoteAttribute_Error"); } get => GetString("RemoteAttribute_Error");
} }
/// <summary> /// <summary>
/// Error about '{0}' from resources. /// Error about '{0}' from resources.
/// </summary> /// </summary>
internal static string FormatRemoteAttribute_Error(object p0) internal static string FormatRemoteAttribute_Error(object p0)
{ => string.Format(CultureInfo.CurrentCulture, GetString("RemoteAttribute_Error"), p0);
return string.Format(CultureInfo.CurrentCulture, GetString("RemoteAttribute_Error"), p0);
}
private static string GetString(string name, params string[] formatterNames) private static string GetString(string name, params string[] formatterNames)
{ {