// namespace Microsoft.AspNet.Mvc.Razor { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Mvc.Razor.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Value cannot be null or empty. /// internal static string ArgumentCannotBeNullOrEmpty { get { return GetString("ArgumentCannotBeNullOrEmpty"); } } /// /// Value cannot be null or empty. /// internal static string FormatArgumentCannotBeNullOrEmpty() { return GetString("ArgumentCannotBeNullOrEmpty"); } /// /// The layout view '{0}' could not be located. /// internal static string LayoutCannotBeLocated { get { return GetString("LayoutCannotBeLocated"); } } /// /// The layout view '{0}' could not be located. /// internal static string FormatLayoutCannotBeLocated(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeLocated"), p0); } /// /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. /// internal static string MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword { get { return 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); } /// /// The '{0}' keyword must be followed by a type name on the same line. /// internal static string MvcRazorCodeParser_ModelKeywordMustBeFollowedByTypeName { get { return 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); } /// /// Only one '{0}' statement is allowed in a file. /// internal static string MvcRazorCodeParser_OnlyOneModelStatementIsAllowed { get { return 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); } /// /// RenderBody can only be called from a layout page. /// internal static string RenderBodyCannotBeCalled { get { return GetString("RenderBodyCannotBeCalled"); } } /// /// RenderBody can only be called from a layout page. /// internal static string FormatRenderBodyCannotBeCalled() { return GetString("RenderBodyCannotBeCalled"); } /// /// Section '{0}' is already defined. /// internal static string SectionAlreadyDefined { get { return GetString("SectionAlreadyDefined"); } } /// /// Section '{0}' is already defined. /// internal static string FormatSectionAlreadyDefined(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyDefined"), p0); } /// /// Section '{0}' is not defined /// internal static string SectionNotDefined { get { return GetString("SectionNotDefined"); } } /// /// Section '{0}' is not defined /// internal static string FormatSectionNotDefined(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("SectionNotDefined"), p0); } /// /// The partial view '{0}' was not found. The following locations were searched:{1} /// internal static string ViewEngine_PartialViewNotFound { get { return GetString("ViewEngine_PartialViewNotFound"); } } /// /// The partial view '{0}' was not found. The following locations were searched:{1} /// internal static string FormatViewEngine_PartialViewNotFound(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ViewEngine_PartialViewNotFound"), p0, p1); } /// /// The view '{0}' was not found. The following locations were searched:{1}. /// internal static string ViewEngine_ViewNotFound { get { return GetString("ViewEngine_ViewNotFound"); } } /// /// The view '{0}' was not found. The following locations were searched:{1}. /// internal static string FormatViewEngine_ViewNotFound(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ViewEngine_ViewNotFound"), p0, p1); } private static string GetString(string name, params string[] formatterNames) { var value = _resourceManager.GetString(name); System.Diagnostics.Debug.Assert(value != null); if (formatterNames != null) { for (var i = 0; i < formatterNames.Length; i++) { value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}"); } } return value; } } }