// namespace Microsoft.AspNetCore.Razor.Runtime { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNetCore.Razor.Runtime.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Must call '{2}.{1}' before calling '{2}.{0}'. /// internal static string ScopeManager_EndCannotBeCalledWithoutACallToBegin { get => GetString("ScopeManager_EndCannotBeCalledWithoutACallToBegin"); } /// /// Must call '{2}.{1}' before calling '{2}.{0}'. /// internal static string FormatScopeManager_EndCannotBeCalledWithoutACallToBegin(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("ScopeManager_EndCannotBeCalledWithoutACallToBegin"), p0, p1, p2); 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; } } }