// 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"); } /// /// Error compiling page at '{0}'. /// internal static string CompilationFailed { get { return GetString("CompilationFailed"); } } /// /// Error compiling page at '{0}'. /// internal static string FormatCompilationFailed(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("CompilationFailed"), p0); } /// /// '{0}' cannot be invoked when a Layout page is set to be executed. /// internal static string FlushPointCannotBeInvoked { get { return 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); } /// /// The {0} returned by '{1}' must be an instance of '{2}'. /// internal static string Instrumentation_WriterMustBeBufferedTextWriter { get { return GetString("Instrumentation_WriterMustBeBufferedTextWriter"); } } /// /// The {0} returned by '{1}' must be an instance of '{2}'. /// internal static string FormatInstrumentation_WriterMustBeBufferedTextWriter(object p0, object p1, object p2) { return string.Format(CultureInfo.CurrentCulture, GetString("Instrumentation_WriterMustBeBufferedTextWriter"), p0, p1, p2); } /// /// The layout view '{0}' could not be located. The following locations were searched:{1} /// internal static string LayoutCannotBeLocated { get { return 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); } /// /// A layout page cannot be rendered after '{0}' has been invoked. /// internal static string LayoutCannotBeRendered { get { return GetString("LayoutCannotBeRendered"); } } /// /// A layout page cannot be rendered after '{0}' has been invoked. /// internal static string FormatLayoutCannotBeRendered(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeRendered"), 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); } /// /// There is no active writing scope to end. /// internal static string RazorPage_ThereIsNoActiveWritingScopeToEnd { get { return GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); } } /// /// There is no active writing scope to end. /// internal static string FormatRazorPage_ThereIsNoActiveWritingScopeToEnd() { return GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); } /// /// You cannot flush while inside a writing scope. /// internal static string RazorPage_YouCannotFlushWhileInAWritingScope { get { return GetString("RazorPage_YouCannotFlushWhileInAWritingScope"); } } /// /// You cannot flush while inside a writing scope. /// internal static string FormatRazorPage_YouCannotFlushWhileInAWritingScope() { return GetString("RazorPage_YouCannotFlushWhileInAWritingScope"); } /// /// The {0} was unable to provide metadata for expression '{1}'. /// internal static string RazorPage_NullModelMetadata { get { return GetString("RazorPage_NullModelMetadata"); } } /// /// The {0} was unable to provide metadata for expression '{1}'. /// internal static string FormatRazorPage_NullModelMetadata(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_NullModelMetadata"), p0, p1); } /// /// {0} can only be called from a layout page. /// internal static string RazorPage_MethodCannotBeCalled { get { return GetString("RazorPage_MethodCannotBeCalled"); } } /// /// {0} can only be called from a layout page. /// internal static string FormatRazorPage_MethodCannotBeCalled(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_MethodCannotBeCalled"), p0); } /// /// {0} must be called from a layout page. /// internal static string RenderBodyNotCalled { get { return GetString("RenderBodyNotCalled"); } } /// /// {0} must be called from a layout page. /// internal static string FormatRenderBodyNotCalled(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("RenderBodyNotCalled"), p0); } /// /// 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); } /// /// The section named '{0}' has already been rendered. /// internal static string SectionAlreadyRendered { get { return GetString("SectionAlreadyRendered"); } } /// /// The section named '{0}' has already been rendered. /// internal static string FormatSectionAlreadyRendered(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyRendered"), 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 following sections have been defined but have not been rendered: '{0}'. /// internal static string SectionsNotRendered { get { return GetString("SectionsNotRendered"); } } /// /// The following sections have been defined but have not been rendered: '{0}'. /// internal static string FormatSectionsNotRendered(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("SectionsNotRendered"), p0); } /// /// View of type '{0}' cannot be activated by '{1}'. /// internal static string ViewCannotBeActivated { get { return 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); } /// /// '{0} must be set to access '{1}'. /// internal static string ViewContextMustBeSet { get { return 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); } /// /// '{0}' must be a {1} that is generated as result of the call to '{2}'. /// internal static string ViewLocationCache_KeyMustBeString { get { return GetString("ViewLocationCache_KeyMustBeString"); } } /// /// '{0}' must be a {1} that is generated as result of the call to '{2}'. /// internal static string FormatViewLocationCache_KeyMustBeString(object p0, object p1, object p2) { return string.Format(CultureInfo.CurrentCulture, GetString("ViewLocationCache_KeyMustBeString"), p0, p1, p2); } /// /// The '{0}' method must be called before '{1}' can be invoked. /// internal static string ViewMustBeContextualized { get { return GetString("ViewMustBeContextualized"); } } /// /// The '{0}' method must be called before '{1}' can be invoked. /// internal static string FormatViewMustBeContextualized(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ViewMustBeContextualized"), p0, p1); } /// /// Unsupported hash algorithm. /// internal static string RazorHash_UnsupportedHashAlgorithm { get { return GetString("RazorHash_UnsupportedHashAlgorithm"); } } /// /// Unsupported hash algorithm. /// internal static string FormatRazorHash_UnsupportedHashAlgorithm() { return GetString("RazorHash_UnsupportedHashAlgorithm"); } /// /// The resource '{0}' specified by '{1}' could not be found. /// internal static string RazorFileInfoCollection_ResourceCouldNotBeFound { get { return GetString("RazorFileInfoCollection_ResourceCouldNotBeFound"); } } /// /// The resource '{0}' specified by '{1}' could not be found. /// internal static string FormatRazorFileInfoCollection_ResourceCouldNotBeFound(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("RazorFileInfoCollection_ResourceCouldNotBeFound"), 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; } } }