// namespace Microsoft.AspNetCore.Mvc.RazorPages { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNetCore.Mvc.RazorPages.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// The route for the page at '{0}' cannot start with / or ~/. Pages do not support overriding the file path of the page. /// internal static string PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable { get => GetString("PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable"); } /// /// The route for the page at '{0}' cannot start with / or ~/. Pages do not support overriding the file path of the page. /// internal static string FormatPageActionDescriptorProvider_RouteTemplateCannotBeOverrideable(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("PageActionDescriptorProvider_RouteTemplateCannotBeOverrideable"), p0); /// /// The '{0}' property of '{1}' must not be null. /// internal static string PropertyOfTypeCannotBeNull { get => GetString("PropertyOfTypeCannotBeNull"); } /// /// The '{0}' property of '{1}' must not be null. /// internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); /// /// Page created by '{0}' must be an instance of '{1}'. /// internal static string ActivatedInstance_MustBeAnInstanceOf { get => GetString("ActivatedInstance_MustBeAnInstanceOf"); } /// /// Page created by '{0}' must be an instance of '{1}'. /// internal static string FormatActivatedInstance_MustBeAnInstanceOf(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("ActivatedInstance_MustBeAnInstanceOf"), p0, p1); /// /// The context used to execute '{0}' must be an instance of '{1}'. Returning a '{2}' from a controller is a not supported. /// internal static string PageViewResult_ContextIsInvalid { get => GetString("PageViewResult_ContextIsInvalid"); } /// /// The context used to execute '{0}' must be an instance of '{1}'. Returning a '{2}' from a controller is a not supported. /// internal static string FormatPageViewResult_ContextIsInvalid(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("PageViewResult_ContextIsInvalid"), p0, p1, p2); /// /// Value cannot be null or empty. /// internal static string ArgumentCannotBeNullOrEmpty { get => GetString("ArgumentCannotBeNullOrEmpty"); } /// /// Value cannot be null or empty. /// internal static string FormatArgumentCannotBeNullOrEmpty() => GetString("ArgumentCannotBeNullOrEmpty"); /// /// Unsupported handler method return type '{0}'. /// internal static string UnsupportedHandlerMethodType { get => GetString("UnsupportedHandlerMethodType"); } /// /// Unsupported handler method return type '{0}'. /// internal static string FormatUnsupportedHandlerMethodType(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedHandlerMethodType"), p0); /// /// Multiple handlers matched. The following handlers matched route data and had all constraints satisfied:{0}{0}{1} /// internal static string AmbiguousHandler { get => GetString("AmbiguousHandler"); } /// /// Multiple handlers matched. The following handlers matched route data and had all constraints satisfied:{0}{0}{1} /// internal static string FormatAmbiguousHandler(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("AmbiguousHandler"), p0, p1); /// /// Path must be an application relative path that starts with a forward slash '/'. /// internal static string PathMustBeAnAppRelativePath { get => GetString("PathMustBeAnAppRelativePath"); } /// /// Path must be an application relative path that starts with a forward slash '/'. /// internal static string FormatPathMustBeAnAppRelativePath() => GetString("PathMustBeAnAppRelativePath"); 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; } } }