// namespace Microsoft.AspNet.Mvc.Razor.Host { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Mvc.Razor.Host.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// 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); } 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; } } }