// namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { using System.Globalization; using System.Reflection; using System.Resources; internal static class ViewComponentResources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.CodeAnalysis.Razor.ViewComponentResources", typeof(ViewComponentResources).GetTypeInfo().Assembly); /// /// View component '{0}' must have exactly one public method named '{1}' or '{2}'. /// internal static string ViewComponent_AmbiguousMethods { get => GetString("ViewComponent_AmbiguousMethods"); } /// /// View component '{0}' must have exactly one public method named '{1}' or '{2}'. /// internal static string FormatViewComponent_AmbiguousMethods(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_AmbiguousMethods"), p0, p1, p2); /// /// Method '{0}' of view component '{1}' should be declared to return {2}&lt;T&gt;. /// internal static string ViewComponent_AsyncMethod_ShouldReturnTask { get => GetString("ViewComponent_AsyncMethod_ShouldReturnTask"); } /// /// Method '{0}' of view component '{1}' should be declared to return {2}&lt;T&gt;. /// internal static string FormatViewComponent_AsyncMethod_ShouldReturnTask(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_AsyncMethod_ShouldReturnTask"), p0, p1, p2); /// /// Could not find an '{0}' or '{1}' method for the view component '{2}'. /// internal static string ViewComponent_CannotFindMethod { get => GetString("ViewComponent_CannotFindMethod"); } /// /// Could not find an '{0}' or '{1}' method for the view component '{2}'. /// internal static string FormatViewComponent_CannotFindMethod(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_CannotFindMethod"), p0, p1, p2); /// /// Method '{0}' of view component '{1}' cannot return a {2}. /// internal static string ViewComponent_SyncMethod_CannotReturnTask { get => GetString("ViewComponent_SyncMethod_CannotReturnTask"); } /// /// Method '{0}' of view component '{1}' cannot return a {2}. /// internal static string FormatViewComponent_SyncMethod_CannotReturnTask(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_SyncMethod_CannotReturnTask"), p0, p1, p2); /// /// Method '{0}' of view component '{1}' should be declared to return a value. /// internal static string ViewComponent_SyncMethod_ShouldReturnValue { get => GetString("ViewComponent_SyncMethod_ShouldReturnValue"); } /// /// Method '{0}' of view component '{1}' should be declared to return a value. /// internal static string FormatViewComponent_SyncMethod_ShouldReturnValue(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_SyncMethod_ShouldReturnValue"), 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; } } }