diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/Resources.Designer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/Resources.Designer.cs deleted file mode 100644 index 917bbe18ce..0000000000 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Value cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpy - { - get => GetString("ArgumentCannotBeNullOrEmpy"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpy() - => GetString("ArgumentCannotBeNullOrEmpy"); - - /// - /// Inject a service from the application's service container into a property. - /// - internal static string InjectDirective_Description - { - get => GetString("InjectDirective_Description"); - } - - /// - /// Inject a service from the application's service container into a property. - /// - internal static string FormatInjectDirective_Description() - => GetString("InjectDirective_Description"); - - /// - /// The name of the property. - /// - internal static string InjectDirective_MemberToken_Description - { - get => GetString("InjectDirective_MemberToken_Description"); - } - - /// - /// The name of the property. - /// - internal static string FormatInjectDirective_MemberToken_Description() - => GetString("InjectDirective_MemberToken_Description"); - - /// - /// PropertyName - /// - internal static string InjectDirective_MemberToken_Name - { - get => GetString("InjectDirective_MemberToken_Name"); - } - - /// - /// PropertyName - /// - internal static string FormatInjectDirective_MemberToken_Name() - => GetString("InjectDirective_MemberToken_Name"); - - /// - /// The type of the service to inject. - /// - internal static string InjectDirective_TypeToken_Description - { - get => GetString("InjectDirective_TypeToken_Description"); - } - - /// - /// The type of the service to inject. - /// - internal static string FormatInjectDirective_TypeToken_Description() - => GetString("InjectDirective_TypeToken_Description"); - - /// - /// TypeName - /// - internal static string InjectDirective_TypeToken_Name - { - get => GetString("InjectDirective_TypeToken_Name"); - } - - /// - /// TypeName - /// - internal static string FormatInjectDirective_TypeToken_Name() - => GetString("InjectDirective_TypeToken_Name"); - - /// - /// Specify the view or page model for the page. - /// - internal static string ModelDirective_Description - { - get => GetString("ModelDirective_Description"); - } - - /// - /// Specify the view or page model for the page. - /// - internal static string FormatModelDirective_Description() - => GetString("ModelDirective_Description"); - - /// - /// The model type. - /// - internal static string ModelDirective_TypeToken_Description - { - get => GetString("ModelDirective_TypeToken_Description"); - } - - /// - /// The model type. - /// - internal static string FormatModelDirective_TypeToken_Description() - => GetString("ModelDirective_TypeToken_Description"); - - /// - /// TypeName - /// - internal static string ModelDirective_TypeToken_Name - { - get => GetString("ModelDirective_TypeToken_Name"); - } - - /// - /// TypeName - /// - internal static string FormatModelDirective_TypeToken_Name() - => GetString("ModelDirective_TypeToken_Name"); - - /// - /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. - /// - internal static string MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword - { - get => GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"); - } - - /// - /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. - /// - internal static string FormatMvcRazorCodeParser_CannotHaveModelAndInheritsKeyword(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0); - - /// - /// A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - /// - internal static string MvcRazorCodeParser_InjectDirectivePropertyNameRequired - { - get => GetString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"); - } - - /// - /// A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - /// - internal static string FormatMvcRazorCodeParser_InjectDirectivePropertyNameRequired(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"), p0); - - /// - /// The '{0}' keyword must be followed by a type name on the same line. - /// - internal static string MvcRazorCodeParser_KeywordMustBeFollowedByTypeName - { - get => GetString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"); - } - - /// - /// The '{0}' keyword must be followed by a type name on the same line. - /// - internal static string FormatMvcRazorCodeParser_KeywordMustBeFollowedByTypeName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"), p0); - - /// - /// Only one '{0}' statement is allowed in a file. - /// - internal static string MvcRazorCodeParser_OnlyOneModelStatementIsAllowed - { - get => GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"); - } - - /// - /// Only one '{0}' statement is allowed in a file. - /// - internal static string FormatMvcRazorCodeParser_OnlyOneModelStatementIsAllowed(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0); - - /// - /// Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - /// - internal static string MvcRazorParser_InvalidPropertyType - { - get => GetString("MvcRazorParser_InvalidPropertyType"); - } - - /// - /// Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - /// - internal static string FormatMvcRazorParser_InvalidPropertyType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorParser_InvalidPropertyType"), p0, p1, p2); - - /// - /// The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - /// - internal static string PageDirectiveCannotBeImported - { - get => GetString("PageDirectiveCannotBeImported"); - } - - /// - /// The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - /// - internal static string FormatPageDirectiveCannotBeImported(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PageDirectiveCannotBeImported"), p0, p1); - - /// - /// Runtime code generation for Mvc 1.x is not supported. - /// - internal static string RuntimeCodeGenerationNotSupported - { - get => GetString("RuntimeCodeGenerationNotSupported"); - } - - /// - /// Runtime code generation for Mvc 1.x is not supported. - /// - internal static string FormatRuntimeCodeGenerationNotSupported() - => GetString("RuntimeCodeGenerationNotSupported"); - - 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; - } - } -} diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/ViewComponentResources.Designer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/ViewComponentResources.Designer.cs deleted file mode 100644 index 58228a720f..0000000000 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/ViewComponentResources.Designer.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class ViewComponentResources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.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; - } - } -} diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/Resources.Designer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/Resources.Designer.cs deleted file mode 100644 index ec4883803c..0000000000 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,338 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// 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"); - - /// - /// Inject a service from the application's service container into a property. - /// - internal static string InjectDirective_Description - { - get => GetString("InjectDirective_Description"); - } - - /// - /// Inject a service from the application's service container into a property. - /// - internal static string FormatInjectDirective_Description() - => GetString("InjectDirective_Description"); - - /// - /// The name of the property. - /// - internal static string InjectDirective_MemberToken_Description - { - get => GetString("InjectDirective_MemberToken_Description"); - } - - /// - /// The name of the property. - /// - internal static string FormatInjectDirective_MemberToken_Description() - => GetString("InjectDirective_MemberToken_Description"); - - /// - /// PropertyName - /// - internal static string InjectDirective_MemberToken_Name - { - get => GetString("InjectDirective_MemberToken_Name"); - } - - /// - /// PropertyName - /// - internal static string FormatInjectDirective_MemberToken_Name() - => GetString("InjectDirective_MemberToken_Name"); - - /// - /// The type of the service to inject. - /// - internal static string InjectDirective_TypeToken_Description - { - get => GetString("InjectDirective_TypeToken_Description"); - } - - /// - /// The type of the service to inject. - /// - internal static string FormatInjectDirective_TypeToken_Description() - => GetString("InjectDirective_TypeToken_Description"); - - /// - /// TypeName - /// - internal static string InjectDirective_TypeToken_Name - { - get => GetString("InjectDirective_TypeToken_Name"); - } - - /// - /// TypeName - /// - internal static string FormatInjectDirective_TypeToken_Name() - => GetString("InjectDirective_TypeToken_Name"); - - /// - /// Specify the view or page model for the page. - /// - internal static string ModelDirective_Description - { - get => GetString("ModelDirective_Description"); - } - - /// - /// Specify the view or page model for the page. - /// - internal static string FormatModelDirective_Description() - => GetString("ModelDirective_Description"); - - /// - /// The model type. - /// - internal static string ModelDirective_TypeToken_Description - { - get => GetString("ModelDirective_TypeToken_Description"); - } - - /// - /// The model type. - /// - internal static string FormatModelDirective_TypeToken_Description() - => GetString("ModelDirective_TypeToken_Description"); - - /// - /// TypeName - /// - internal static string ModelDirective_TypeToken_Name - { - get => GetString("ModelDirective_TypeToken_Name"); - } - - /// - /// TypeName - /// - internal static string FormatModelDirective_TypeToken_Name() - => GetString("ModelDirective_TypeToken_Name"); - - /// - /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. - /// - internal static string MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword - { - get => GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"); - } - - /// - /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. - /// - internal static string FormatMvcRazorCodeParser_CannotHaveModelAndInheritsKeyword(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0); - - /// - /// A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - /// - internal static string MvcRazorCodeParser_InjectDirectivePropertyNameRequired - { - get => GetString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"); - } - - /// - /// A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - /// - internal static string FormatMvcRazorCodeParser_InjectDirectivePropertyNameRequired(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"), p0); - - /// - /// The '{0}' keyword must be followed by a type name on the same line. - /// - internal static string MvcRazorCodeParser_KeywordMustBeFollowedByTypeName - { - get => GetString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"); - } - - /// - /// The '{0}' keyword must be followed by a type name on the same line. - /// - internal static string FormatMvcRazorCodeParser_KeywordMustBeFollowedByTypeName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"), p0); - - /// - /// Only one '{0}' statement is allowed in a file. - /// - internal static string MvcRazorCodeParser_OnlyOneModelStatementIsAllowed - { - get => GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"); - } - - /// - /// Only one '{0}' statement is allowed in a file. - /// - internal static string FormatMvcRazorCodeParser_OnlyOneModelStatementIsAllowed(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0); - - /// - /// Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - /// - internal static string MvcRazorParser_InvalidPropertyType - { - get => GetString("MvcRazorParser_InvalidPropertyType"); - } - - /// - /// Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - /// - internal static string FormatMvcRazorParser_InvalidPropertyType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorParser_InvalidPropertyType"), p0, p1, p2); - - /// - /// Specify the base namespace for the page. - /// - internal static string NamespaceDirective_Description - { - get => GetString("NamespaceDirective_Description"); - } - - /// - /// Specify the base namespace for the page. - /// - internal static string FormatNamespaceDirective_Description() - => GetString("NamespaceDirective_Description"); - - /// - /// The namespace for the page. - /// - internal static string NamespaceDirective_NamespaceToken_Description - { - get => GetString("NamespaceDirective_NamespaceToken_Description"); - } - - /// - /// The namespace for the page. - /// - internal static string FormatNamespaceDirective_NamespaceToken_Description() - => GetString("NamespaceDirective_NamespaceToken_Description"); - - /// - /// Namespace - /// - internal static string NamespaceDirective_NamespaceToken_Name - { - get => GetString("NamespaceDirective_NamespaceToken_Name"); - } - - /// - /// Namespace - /// - internal static string FormatNamespaceDirective_NamespaceToken_Name() - => GetString("NamespaceDirective_NamespaceToken_Name"); - - /// - /// The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - /// - internal static string PageDirectiveCannotBeImported - { - get => GetString("PageDirectiveCannotBeImported"); - } - - /// - /// The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - /// - internal static string FormatPageDirectiveCannotBeImported(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PageDirectiveCannotBeImported"), p0, p1); - - /// - /// The '@{0}' directive must exist at the top of the file. Only comments and whitespace are allowed before the '@{0}' directive. - /// - internal static string PageDirectiveMustExistAtTheTopOfFile - { - get => GetString("PageDirectiveMustExistAtTheTopOfFile"); - } - - /// - /// The '@{0}' directive must exist at the top of the file. Only comments and whitespace are allowed before the '@{0}' directive. - /// - internal static string FormatPageDirectiveMustExistAtTheTopOfFile(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("PageDirectiveMustExistAtTheTopOfFile"), p0); - - /// - /// Mark the page as a Razor Page. - /// - internal static string PageDirective_Description - { - get => GetString("PageDirective_Description"); - } - - /// - /// Mark the page as a Razor Page. - /// - internal static string FormatPageDirective_Description() - => GetString("PageDirective_Description"); - - /// - /// An optional route template for the page. - /// - internal static string PageDirective_RouteToken_Description - { - get => GetString("PageDirective_RouteToken_Description"); - } - - /// - /// An optional route template for the page. - /// - internal static string FormatPageDirective_RouteToken_Description() - => GetString("PageDirective_RouteToken_Description"); - - /// - /// RouteTemplate - /// - internal static string PageDirective_RouteToken_Name - { - get => GetString("PageDirective_RouteToken_Name"); - } - - /// - /// RouteTemplate - /// - internal static string FormatPageDirective_RouteToken_Name() - => GetString("PageDirective_RouteToken_Name"); - - 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; - } - } -} diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/ViewComponentResources.Designer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/ViewComponentResources.Designer.cs deleted file mode 100644 index 3309adf1c7..0000000000 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/ViewComponentResources.Designer.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class ViewComponentResources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.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; - } - } -} diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/Resources.Designer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/Resources.Designer.cs deleted file mode 100644 index 18566dc27e..0000000000 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,296 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Razor.Extensions.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// 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"); - - /// - /// Inject a service from the application's service container into a property. - /// - internal static string InjectDirective_Description - { - get => GetString("InjectDirective_Description"); - } - - /// - /// Inject a service from the application's service container into a property. - /// - internal static string FormatInjectDirective_Description() - => GetString("InjectDirective_Description"); - - /// - /// The name of the property. - /// - internal static string InjectDirective_MemberToken_Description - { - get => GetString("InjectDirective_MemberToken_Description"); - } - - /// - /// The name of the property. - /// - internal static string FormatInjectDirective_MemberToken_Description() - => GetString("InjectDirective_MemberToken_Description"); - - /// - /// PropertyName - /// - internal static string InjectDirective_MemberToken_Name - { - get => GetString("InjectDirective_MemberToken_Name"); - } - - /// - /// PropertyName - /// - internal static string FormatInjectDirective_MemberToken_Name() - => GetString("InjectDirective_MemberToken_Name"); - - /// - /// The type of the service to inject. - /// - internal static string InjectDirective_TypeToken_Description - { - get => GetString("InjectDirective_TypeToken_Description"); - } - - /// - /// The type of the service to inject. - /// - internal static string FormatInjectDirective_TypeToken_Description() - => GetString("InjectDirective_TypeToken_Description"); - - /// - /// TypeName - /// - internal static string InjectDirective_TypeToken_Name - { - get => GetString("InjectDirective_TypeToken_Name"); - } - - /// - /// TypeName - /// - internal static string FormatInjectDirective_TypeToken_Name() - => GetString("InjectDirective_TypeToken_Name"); - - /// - /// Specify the view or page model for the page. - /// - internal static string ModelDirective_Description - { - get => GetString("ModelDirective_Description"); - } - - /// - /// Specify the view or page model for the page. - /// - internal static string FormatModelDirective_Description() - => GetString("ModelDirective_Description"); - - /// - /// The model type. - /// - internal static string ModelDirective_TypeToken_Description - { - get => GetString("ModelDirective_TypeToken_Description"); - } - - /// - /// The model type. - /// - internal static string FormatModelDirective_TypeToken_Description() - => GetString("ModelDirective_TypeToken_Description"); - - /// - /// TypeName - /// - internal static string ModelDirective_TypeToken_Name - { - get => GetString("ModelDirective_TypeToken_Name"); - } - - /// - /// TypeName - /// - internal static string FormatModelDirective_TypeToken_Name() - => GetString("ModelDirective_TypeToken_Name"); - - /// - /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. - /// - internal static string MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword - { - get => GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"); - } - - /// - /// The 'inherits' keyword is not allowed when a '{0}' keyword is used. - /// - internal static string FormatMvcRazorCodeParser_CannotHaveModelAndInheritsKeyword(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_CannotHaveModelAndInheritsKeyword"), p0); - - /// - /// A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - /// - internal static string MvcRazorCodeParser_InjectDirectivePropertyNameRequired - { - get => GetString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"); - } - - /// - /// A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - /// - internal static string FormatMvcRazorCodeParser_InjectDirectivePropertyNameRequired(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_InjectDirectivePropertyNameRequired"), p0); - - /// - /// The '{0}' keyword must be followed by a type name on the same line. - /// - internal static string MvcRazorCodeParser_KeywordMustBeFollowedByTypeName - { - get => GetString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"); - } - - /// - /// The '{0}' keyword must be followed by a type name on the same line. - /// - internal static string FormatMvcRazorCodeParser_KeywordMustBeFollowedByTypeName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_KeywordMustBeFollowedByTypeName"), p0); - - /// - /// Only one '{0}' statement is allowed in a file. - /// - internal static string MvcRazorCodeParser_OnlyOneModelStatementIsAllowed - { - get => GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"); - } - - /// - /// Only one '{0}' statement is allowed in a file. - /// - internal static string FormatMvcRazorCodeParser_OnlyOneModelStatementIsAllowed(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorCodeParser_OnlyOneModelStatementIsAllowed"), p0); - - /// - /// Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - /// - internal static string MvcRazorParser_InvalidPropertyType - { - get => GetString("MvcRazorParser_InvalidPropertyType"); - } - - /// - /// Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - /// - internal static string FormatMvcRazorParser_InvalidPropertyType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("MvcRazorParser_InvalidPropertyType"), p0, p1, p2); - - /// - /// The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - /// - internal static string PageDirectiveCannotBeImported - { - get => GetString("PageDirectiveCannotBeImported"); - } - - /// - /// The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - /// - internal static string FormatPageDirectiveCannotBeImported(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PageDirectiveCannotBeImported"), p0, p1); - - /// - /// The '@{0}' directive must exist at the top of the file. Only comments and whitespace are allowed before the '@{0}' directive. - /// - internal static string PageDirectiveMustExistAtTheTopOfFile - { - get => GetString("PageDirectiveMustExistAtTheTopOfFile"); - } - - /// - /// The '@{0}' directive must exist at the top of the file. Only comments and whitespace are allowed before the '@{0}' directive. - /// - internal static string FormatPageDirectiveMustExistAtTheTopOfFile(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("PageDirectiveMustExistAtTheTopOfFile"), p0); - - /// - /// Mark the page as a Razor Page. - /// - internal static string PageDirective_Description - { - get => GetString("PageDirective_Description"); - } - - /// - /// Mark the page as a Razor Page. - /// - internal static string FormatPageDirective_Description() - => GetString("PageDirective_Description"); - - /// - /// An optional route template for the page. - /// - internal static string PageDirective_RouteToken_Description - { - get => GetString("PageDirective_RouteToken_Description"); - } - - /// - /// An optional route template for the page. - /// - internal static string FormatPageDirective_RouteToken_Description() - => GetString("PageDirective_RouteToken_Description"); - - /// - /// RouteTemplate - /// - internal static string PageDirective_RouteToken_Name - { - get => GetString("PageDirective_RouteToken_Name"); - } - - /// - /// RouteTemplate - /// - internal static string FormatPageDirective_RouteToken_Name() - => GetString("PageDirective_RouteToken_Name"); - - 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; - } - } -} diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/ViewComponentResources.Designer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/ViewComponentResources.Designer.cs deleted file mode 100644 index 514af37554..0000000000 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/ViewComponentResources.Designer.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -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.AspNetCore.Mvc.Razor.Extensions.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; - } - } -} diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/ComponentResources.Designer.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/ComponentResources.Designer.cs deleted file mode 100644 index 10af5b8063..0000000000 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/ComponentResources.Designer.cs +++ /dev/null @@ -1,279 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNetCore.Razor.Language { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class ComponentResources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal ComponentResources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNetCore.Razor.Language.ComponentResources", typeof(ComponentResources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Binds the provided expression to the '{0}' property and a change event delegate to the '{1}' property of the component.. - /// - internal static string BindTagHelper_Component_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Component_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Binds the provided expression to the '{0}' attribute and a change event delegate to the '{1}' attribute.. - /// - internal static string BindTagHelper_Element_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Element_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies a format to convert the value specified by the '{0}' attribute. The format string can currently only be used with expressions of type <code>DateTime</code>.. - /// - internal static string BindTagHelper_Element_Format_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Element_Format_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Binds the provided expression to an attribute and a change event, based on the naming of the bind attribute. For example: <code>bind-value-onchange="..."</code> will assign the current value of the expression to the 'value' attribute, and assign a delegate that attempts to set the value to the 'onchange' attribute.. - /// - internal static string BindTagHelper_Fallback_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Fallback_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies a format to convert the value specified by the corresponding bind attribute. For example: <code>format-value="..."</code> will apply a format string to the value specified in <code>bind-value-...</code>. The format string can currently only be used with expressions of type <code>DateTime</code>.. - /// - internal static string BindTagHelper_Fallback_Format_Documentation { - get { - return ResourceManager.GetString("BindTagHelper_Fallback_Format_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the parameter name for the '{0}' child content expression.. - /// - internal static string ChildContentParameterName_Documentation { - get { - return ResourceManager.GetString("ChildContentParameterName_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the parameter name for all child content expressions.. - /// - internal static string ChildContentParameterName_TopLevelDocumentation { - get { - return ResourceManager.GetString("ChildContentParameterName_TopLevelDocumentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies the type of the type parameter {0} for the {1} component.. - /// - internal static string ComponentTypeParameter_Documentation { - get { - return ResourceManager.GetString("ComponentTypeParameter_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sets the '{0}' attribute to the provided string or delegate value. A delegate value should be of type '{1}'.. - /// - internal static string EventHandlerTagHelper_Documentation { - get { - return ResourceManager.GetString("EventHandlerTagHelper_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Declares an interface implementation for the current document.. - /// - internal static string ImplementsDirective_Description { - get { - return ResourceManager.GetString("ImplementsDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The interface type implemented by the current document.. - /// - internal static string ImplementsDirective_TypeToken_Description { - get { - return ResourceManager.GetString("ImplementsDirective_TypeToken_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TypeName. - /// - internal static string ImplementsDirective_TypeToken_Name { - get { - return ResourceManager.GetString("ImplementsDirective_TypeToken_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Ensures that the component or element will be preserved across renders if (and only if) the supplied key value matches.. - /// - internal static string KeyTagHelper_Documentation { - get { - return ResourceManager.GetString("KeyTagHelper_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Declares a layout type for the current document.. - /// - internal static string LayoutDirective_Description { - get { - return ResourceManager.GetString("LayoutDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The interface type implemented by the current document.. - /// - internal static string LayoutDirective_TypeToken_Description { - get { - return ResourceManager.GetString("LayoutDirective_TypeToken_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TypeName. - /// - internal static string LayoutDirective_TypeToken_Name { - get { - return ResourceManager.GetString("LayoutDirective_TypeToken_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Mark the page as a routable component.. - /// - internal static string PageDirective_Description { - get { - return ResourceManager.GetString("PageDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An optional route template for the component.. - /// - internal static string PageDirective_RouteToken_Description { - get { - return ResourceManager.GetString("PageDirective_RouteToken_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to route template. - /// - internal static string PageDirective_RouteToken_Name { - get { - return ResourceManager.GetString("PageDirective_RouteToken_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor file. - /// - internal static string PageDirectiveCannotBeImported { - get { - return ResourceManager.GetString("PageDirectiveCannotBeImported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Populates the specified field or property with a reference to the element or component.. - /// - internal static string RefTagHelper_Documentation { - get { - return ResourceManager.GetString("RefTagHelper_Documentation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Declares a generic type parameter for the generated component class.. - /// - internal static string TypeParamDirective_Description { - get { - return ResourceManager.GetString("TypeParamDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The name of the type parameter.. - /// - internal static string TypeParamDirective_Token_Description { - get { - return ResourceManager.GetString("TypeParamDirective_Token_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to type parameter. - /// - internal static string TypeParamDirective_Token_Name { - get { - return ResourceManager.GetString("TypeParamDirective_Token_Name", resourceCulture); - } - } - } -} diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/Microsoft.AspNetCore.Components.Razor.Extensions.csproj b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/Microsoft.AspNetCore.Components.Razor.Extensions.csproj index 215a562aaa..a690a69a9d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/Microsoft.AspNetCore.Components.Razor.Extensions.csproj +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/Microsoft.AspNetCore.Components.Razor.Extensions.csproj @@ -17,21 +17,6 @@ - - - True - True - Resources.resx - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj index d27b1d8dd6..1fd7aeebf5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj @@ -9,19 +9,4 @@ - - - True - True - ComponentResources.resx - - - - - - ResXFileCodeGenerator - ComponentResources.Designer.cs - - - diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Properties/Resources.Designer.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Properties/Resources.Designer.cs deleted file mode 100644 index 47cfb574a2..0000000000 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,1960 +0,0 @@ -// -namespace Microsoft.AspNetCore.Razor.Language -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Razor.Language.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Register Tag Helpers for use in the current document. - /// - internal static string AddTagHelperDirective_Description - { - get => GetString("AddTagHelperDirective_Description"); - } - - /// - /// Register Tag Helpers for use in the current document. - /// - internal static string FormatAddTagHelperDirective_Description() - => GetString("AddTagHelperDirective_Description"); - - /// - /// Add tag helpers from the specified type name and assembly name. Specify '*' for the type name to include all tag helper types from the specified assembly. - /// - internal static string AddTagHelperDirective_StringToken_Description - { - get => GetString("AddTagHelperDirective_StringToken_Description"); - } - - /// - /// Add tag helpers from the specified type name and assembly name. Specify '*' for the type name to include all tag helper types from the specified assembly. - /// - internal static string FormatAddTagHelperDirective_StringToken_Description() - => GetString("AddTagHelperDirective_StringToken_Description"); - - /// - /// TypeName, AssemblyName - /// - internal static string AddTagHelperDirective_StringToken_Name - { - get => GetString("AddTagHelperDirective_StringToken_Name"); - } - - /// - /// TypeName, AssemblyName - /// - internal static string FormatAddTagHelperDirective_StringToken_Name() - => GetString("AddTagHelperDirective_StringToken_Name"); - - /// - /// Value cannot be null or an empty string. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or an empty string. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - /// - /// Block cannot be built because a Type has not been specified in the BlockBuilder - /// - internal static string Block_Type_Not_Specified - { - get => GetString("Block_Type_Not_Specified"); - } - - /// - /// Block cannot be built because a Type has not been specified in the BlockBuilder - /// - internal static string FormatBlock_Type_Not_Specified() - => GetString("Block_Type_Not_Specified"); - - /// - /// Block directive '{0}' cannot be imported. - /// - internal static string BlockDirectiveCannotBeImported - { - get => GetString("BlockDirectiveCannotBeImported"); - } - - /// - /// Block directive '{0}' cannot be imported. - /// - internal static string FormatBlockDirectiveCannotBeImported(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("BlockDirectiveCannotBeImported"), p0); - - /// - /// code - /// - internal static string BlockName_Code - { - get => GetString("BlockName_Code"); - } - - /// - /// code - /// - internal static string FormatBlockName_Code() - => GetString("BlockName_Code"); - - /// - /// explicit expression - /// - internal static string BlockName_ExplicitExpression - { - get => GetString("BlockName_ExplicitExpression"); - } - - /// - /// explicit expression - /// - internal static string FormatBlockName_ExplicitExpression() - => GetString("BlockName_ExplicitExpression"); - - /// - /// Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'. - /// - internal static string CodeWriter_InvalidNewLine - { - get => GetString("CodeWriter_InvalidNewLine"); - } - - /// - /// Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'. - /// - internal static string FormatCodeWriter_InvalidNewLine(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CodeWriter_InvalidNewLine"), p0); - - /// - /// <<character literal>> - /// - internal static string CSharpToken_CharacterLiteral - { - get => GetString("CSharpToken_CharacterLiteral"); - } - - /// - /// <<character literal>> - /// - internal static string FormatCSharpToken_CharacterLiteral() - => GetString("CSharpToken_CharacterLiteral"); - - /// - /// <<comment>> - /// - internal static string CSharpToken_Comment - { - get => GetString("CSharpToken_Comment"); - } - - /// - /// <<comment>> - /// - internal static string FormatCSharpToken_Comment() - => GetString("CSharpToken_Comment"); - - /// - /// <<identifier>> - /// - internal static string CSharpToken_Identifier - { - get => GetString("CSharpToken_Identifier"); - } - - /// - /// <<identifier>> - /// - internal static string FormatCSharpToken_Identifier() - => GetString("CSharpToken_Identifier"); - - /// - /// <<integer literal>> - /// - internal static string CSharpToken_IntegerLiteral - { - get => GetString("CSharpToken_IntegerLiteral"); - } - - /// - /// <<integer literal>> - /// - internal static string FormatCSharpToken_IntegerLiteral() - => GetString("CSharpToken_IntegerLiteral"); - - /// - /// <<keyword>> - /// - internal static string CSharpToken_Keyword - { - get => GetString("CSharpToken_Keyword"); - } - - /// - /// <<keyword>> - /// - internal static string FormatCSharpToken_Keyword() - => GetString("CSharpToken_Keyword"); - - /// - /// <<newline sequence>> - /// - internal static string CSharpToken_Newline - { - get => GetString("CSharpToken_Newline"); - } - - /// - /// <<newline sequence>> - /// - internal static string FormatCSharpToken_Newline() - => GetString("CSharpToken_Newline"); - - /// - /// <<real literal>> - /// - internal static string CSharpToken_RealLiteral - { - get => GetString("CSharpToken_RealLiteral"); - } - - /// - /// <<real literal>> - /// - internal static string FormatCSharpToken_RealLiteral() - => GetString("CSharpToken_RealLiteral"); - - /// - /// <<string literal>> - /// - internal static string CSharpToken_StringLiteral - { - get => GetString("CSharpToken_StringLiteral"); - } - - /// - /// <<string literal>> - /// - internal static string FormatCSharpToken_StringLiteral() - => GetString("CSharpToken_StringLiteral"); - - /// - /// <<white space>> - /// - internal static string CSharpToken_Whitespace - { - get => GetString("CSharpToken_Whitespace"); - } - - /// - /// <<white space>> - /// - internal static string FormatCSharpToken_Whitespace() - => GetString("CSharpToken_Whitespace"); - - /// - /// The document type '{0}' does not support the extension '{1}'. - /// - internal static string Diagnostic_CodeTarget_UnsupportedExtension - { - get => GetString("Diagnostic_CodeTarget_UnsupportedExtension"); - } - - /// - /// The document type '{0}' does not support the extension '{1}'. - /// - internal static string FormatDiagnostic_CodeTarget_UnsupportedExtension(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Diagnostic_CodeTarget_UnsupportedExtension"), p0, p1); - - /// - /// Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters. - /// - internal static string DirectiveDescriptor_InvalidDirectiveKeyword - { - get => GetString("DirectiveDescriptor_InvalidDirectiveKeyword"); - } - - /// - /// Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters. - /// - internal static string FormatDirectiveDescriptor_InvalidDirectiveKeyword(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveDescriptor_InvalidDirectiveKeyword"), p0); - - /// - /// A non-optional directive token cannot follow an optional directive token. - /// - internal static string DirectiveDescriptor_InvalidNonOptionalToken - { - get => GetString("DirectiveDescriptor_InvalidNonOptionalToken"); - } - - /// - /// A non-optional directive token cannot follow an optional directive token. - /// - internal static string FormatDirectiveDescriptor_InvalidNonOptionalToken() - => GetString("DirectiveDescriptor_InvalidNonOptionalToken"); - - /// - /// The '{0}' directive expects an identifier. - /// - internal static string DirectiveExpectsIdentifier - { - get => GetString("DirectiveExpectsIdentifier"); - } - - /// - /// The '{0}' directive expects an identifier. - /// - internal static string FormatDirectiveExpectsIdentifier(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsIdentifier"), p0); - - /// - /// The '{0}' directive expects a namespace name. - /// - internal static string DirectiveExpectsNamespace - { - get => GetString("DirectiveExpectsNamespace"); - } - - /// - /// The '{0}' directive expects a namespace name. - /// - internal static string FormatDirectiveExpectsNamespace(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsNamespace"), p0); - - /// - /// The '{0}' directive expects a string surrounded by double quotes. - /// - internal static string DirectiveExpectsQuotedStringLiteral - { - get => GetString("DirectiveExpectsQuotedStringLiteral"); - } - - /// - /// The '{0}' directive expects a string surrounded by double quotes. - /// - internal static string FormatDirectiveExpectsQuotedStringLiteral(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsQuotedStringLiteral"), p0); - - /// - /// The '{0}' directive expects a type name. - /// - internal static string DirectiveExpectsTypeName - { - get => GetString("DirectiveExpectsTypeName"); - } - - /// - /// The '{0}' directive expects a type name. - /// - internal static string FormatDirectiveExpectsTypeName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsTypeName"), p0); - - /// - /// The '{0}` directive must appear at the start of the line. - /// - internal static string DirectiveMustAppearAtStartOfLine - { - get => GetString("DirectiveMustAppearAtStartOfLine"); - } - - /// - /// The '{0}` directive must appear at the start of the line. - /// - internal static string FormatDirectiveMustAppearAtStartOfLine(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveMustAppearAtStartOfLine"), p0); - - /// - /// The '{0}' directives value(s) must be separated by whitespace. - /// - internal static string DirectiveTokensMustBeSeparatedByWhitespace - { - get => GetString("DirectiveTokensMustBeSeparatedByWhitespace"); - } - - /// - /// The '{0}' directives value(s) must be separated by whitespace. - /// - internal static string FormatDirectiveTokensMustBeSeparatedByWhitespace(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveTokensMustBeSeparatedByWhitespace"), p0); - - /// - /// The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'. - /// - internal static string DocumentMissingTarget - { - get => GetString("DocumentMissingTarget"); - } - - /// - /// The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'. - /// - internal static string FormatDocumentMissingTarget(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("DocumentMissingTarget"), p0, p1, p2); - - /// - /// The '{0}' directive may only occur once per document. - /// - internal static string DuplicateDirective - { - get => GetString("DuplicateDirective"); - } - - /// - /// The '{0}' directive may only occur once per document. - /// - internal static string FormatDuplicateDirective(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateDirective"), p0); - - /// - /// "EndBlock" was called without a matching call to "StartBlock". - /// - internal static string EndBlock_Called_Without_Matching_StartBlock - { - get => GetString("EndBlock_Called_Without_Matching_StartBlock"); - } - - /// - /// "EndBlock" was called without a matching call to "StartBlock". - /// - internal static string FormatEndBlock_Called_Without_Matching_StartBlock() - => GetString("EndBlock_Called_Without_Matching_StartBlock"); - - /// - /// line break - /// - internal static string ErrorComponent_Newline - { - get => GetString("ErrorComponent_Newline"); - } - - /// - /// line break - /// - internal static string FormatErrorComponent_Newline() - => GetString("ErrorComponent_Newline"); - - /// - /// The '{0}' feature requires a '{1}' provided by the '{2}'. - /// - internal static string FeatureDependencyMissing - { - get => GetString("FeatureDependencyMissing"); - } - - /// - /// The '{0}' feature requires a '{1}' provided by the '{2}'. - /// - internal static string FormatFeatureDependencyMissing(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("FeatureDependencyMissing"), p0, p1, p2); - - /// - /// The feature must be initialized by setting the '{0}' property. - /// - internal static string FeatureMustBeInitialized - { - get => GetString("FeatureMustBeInitialized"); - } - - /// - /// The feature must be initialized by setting the '{0}' property. - /// - internal static string FormatFeatureMustBeInitialized(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("FeatureMustBeInitialized"), p0); - - /// - /// Specify a C# code block. - /// - internal static string FunctionsDirective_Description - { - get => GetString("FunctionsDirective_Description"); - } - - /// - /// Specify a C# code block. - /// - internal static string FormatFunctionsDirective_Description() - => GetString("FunctionsDirective_Description"); - - /// - /// <<newline sequence>> - /// - internal static string HtmlToken_NewLine - { - get => GetString("HtmlToken_NewLine"); - } - - /// - /// <<newline sequence>> - /// - internal static string FormatHtmlToken_NewLine() - => GetString("HtmlToken_NewLine"); - - /// - /// <<razor comment>> - /// - internal static string HtmlToken_RazorComment - { - get => GetString("HtmlToken_RazorComment"); - } - - /// - /// <<razor comment>> - /// - internal static string FormatHtmlToken_RazorComment() - => GetString("HtmlToken_RazorComment"); - - /// - /// <<text>> - /// - internal static string HtmlToken_Text - { - get => GetString("HtmlToken_Text"); - } - - /// - /// <<text>> - /// - internal static string FormatHtmlToken_Text() - => GetString("HtmlToken_Text"); - - /// - /// <<white space>> - /// - internal static string HtmlToken_WhiteSpace - { - get => GetString("HtmlToken_WhiteSpace"); - } - - /// - /// <<white space>> - /// - internal static string FormatHtmlToken_WhiteSpace() - => GetString("HtmlToken_WhiteSpace"); - - /// - /// Specify the base class for the current document. - /// - internal static string InheritsDirective_Description - { - get => GetString("InheritsDirective_Description"); - } - - /// - /// Specify the base class for the current document. - /// - internal static string FormatInheritsDirective_Description() - => GetString("InheritsDirective_Description"); - - /// - /// The base type that the current page inherits. - /// - internal static string InheritsDirective_TypeToken_Description - { - get => GetString("InheritsDirective_TypeToken_Description"); - } - - /// - /// The base type that the current page inherits. - /// - internal static string FormatInheritsDirective_TypeToken_Description() - => GetString("InheritsDirective_TypeToken_Description"); - - /// - /// TypeName - /// - internal static string InheritsDirective_TypeToken_Name - { - get => GetString("InheritsDirective_TypeToken_Name"); - } - - /// - /// TypeName - /// - internal static string FormatInheritsDirective_TypeToken_Name() - => GetString("InheritsDirective_TypeToken_Name"); - - /// - /// The '{0}' operation is not valid when the builder is empty. - /// - internal static string IntermediateNodeBuilder_PopInvalid - { - get => GetString("IntermediateNodeBuilder_PopInvalid"); - } - - /// - /// The '{0}' operation is not valid when the builder is empty. - /// - internal static string FormatIntermediateNodeBuilder_PopInvalid(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeBuilder_PopInvalid"), p0); - - /// - /// The node '{0}' has a read-only child collection and cannot be modified. - /// - internal static string IntermediateNodeReference_CollectionIsReadOnly - { - get => GetString("IntermediateNodeReference_CollectionIsReadOnly"); - } - - /// - /// The node '{0}' has a read-only child collection and cannot be modified. - /// - internal static string FormatIntermediateNodeReference_CollectionIsReadOnly(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeReference_CollectionIsReadOnly"), p0); - - /// - /// The reference is invalid. The node '{0}' could not be found as a child of '{1}'. - /// - internal static string IntermediateNodeReference_NodeNotFound - { - get => GetString("IntermediateNodeReference_NodeNotFound"); - } - - /// - /// The reference is invalid. The node '{0}' could not be found as a child of '{1}'. - /// - internal static string FormatIntermediateNodeReference_NodeNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeReference_NodeNotFound"), p0, p1); - - /// - /// The reference is invalid. References initialized with the default constructor cannot modify nodes. - /// - internal static string IntermediateNodeReference_NotInitialized - { - get => GetString("IntermediateNodeReference_NotInitialized"); - } - - /// - /// The reference is invalid. References initialized with the default constructor cannot modify nodes. - /// - internal static string FormatIntermediateNodeReference_NotInitialized() - => GetString("IntermediateNodeReference_NotInitialized"); - - /// - /// The '{0}' node type can only be used as a direct child of a '{1}' node. - /// - internal static string IntermediateNodes_InvalidParentNode - { - get => GetString("IntermediateNodes_InvalidParentNode"); - } - - /// - /// The '{0}' node type can only be used as a direct child of a '{1}' node. - /// - internal static string FormatIntermediateNodes_InvalidParentNode(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodes_InvalidParentNode"), p0, p1); - - /// - /// The node '{0}' is not the owner of change '{1}'. - /// - internal static string InvalidOperation_SpanIsNotChangeOwner - { - get => GetString("InvalidOperation_SpanIsNotChangeOwner"); - } - - /// - /// The node '{0}' is not the owner of change '{1}'. - /// - internal static string FormatInvalidOperation_SpanIsNotChangeOwner(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidOperation_SpanIsNotChangeOwner"), p0, p1); - - /// - /// Invalid tag helper directive look up text '{0}'. The correct look up text format is: "name, assemblyName". - /// - internal static string InvalidTagHelperLookupText - { - get => GetString("InvalidTagHelperLookupText"); - } - - /// - /// Invalid tag helper directive look up text '{0}'. The correct look up text format is: "name, assemblyName". - /// - internal static string FormatInvalidTagHelperLookupText(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidTagHelperLookupText"), p0); - - /// - /// Invalid tag helper directive '{0}' value. '{1}' is not allowed in prefix '{2}'. - /// - internal static string InvalidTagHelperPrefixValue - { - get => GetString("InvalidTagHelperPrefixValue"); - } - - /// - /// Invalid tag helper directive '{0}' value. '{1}' is not allowed in prefix '{2}'. - /// - internal static string FormatInvalidTagHelperPrefixValue(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidTagHelperPrefixValue"), p0, p1, p2); - - /// - /// The key must not be null. - /// - internal static string KeyMustNotBeNull - { - get => GetString("KeyMustNotBeNull"); - } - - /// - /// The key must not be null. - /// - internal static string FormatKeyMustNotBeNull() - => GetString("KeyMustNotBeNull"); - - /// - /// Cannot use built-in RazorComment handler, language characteristics does not define the CommentStart, CommentStar and CommentBody known token types or parser does not override TokenizerBackedParser.OutputSpanBeforeRazorComment - /// - internal static string Language_Does_Not_Support_RazorComment - { - get => GetString("Language_Does_Not_Support_RazorComment"); - } - - /// - /// Cannot use built-in RazorComment handler, language characteristics does not define the CommentStart, CommentStar and CommentBody known token types or parser does not override TokenizerBackedParser.OutputSpanBeforeRazorComment - /// - internal static string FormatLanguage_Does_Not_Support_RazorComment() - => GetString("Language_Does_Not_Support_RazorComment"); - - /// - /// The specified encoding '{0}' does not match the content's encoding '{1}'. - /// - internal static string MismatchedContentEncoding - { - get => GetString("MismatchedContentEncoding"); - } - - /// - /// The specified encoding '{0}' does not match the content's encoding '{1}'. - /// - internal static string FormatMismatchedContentEncoding(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("MismatchedContentEncoding"), p0, p1); - - /// - /// The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example: - /// - /// @if(isLoggedIn) {{ - /// <p>Hello, @user!</p> - /// }} - /// - internal static string ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start - { - get => GetString("ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start"); - } - - /// - /// The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example: - /// - /// @if(isLoggedIn) {{ - /// <p>Hello, @user!</p> - /// }} - /// - internal static string FormatParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start() - => GetString("ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start"); - - /// - /// End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence. - /// - internal static string ParseError_BlockComment_Not_Terminated - { - get => GetString("ParseError_BlockComment_Not_Terminated"); - } - - /// - /// End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence. - /// - internal static string FormatParseError_BlockComment_Not_Terminated() - => GetString("ParseError_BlockComment_Not_Terminated"); - - /// - /// Directive '{0}' must have a value. - /// - internal static string ParseError_DirectiveMustHaveValue - { - get => GetString("ParseError_DirectiveMustHaveValue"); - } - - /// - /// Directive '{0}' must have a value. - /// - internal static string FormatParseError_DirectiveMustHaveValue(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_DirectiveMustHaveValue"), p0); - - /// - /// An opening "{0}" is missing the corresponding closing "{1}". - /// - internal static string ParseError_Expected_CloseBracket_Before_EOF - { - get => GetString("ParseError_Expected_CloseBracket_Before_EOF"); - } - - /// - /// An opening "{0}" is missing the corresponding closing "{1}". - /// - internal static string FormatParseError_Expected_CloseBracket_Before_EOF(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Expected_CloseBracket_Before_EOF"), p0, p1); - - /// - /// The {0} block is missing a closing "{1}" character. Make sure you have a matching "{1}" character for all the "{2}" characters within this block, and that none of the "{1}" characters are being interpreted as markup. - /// - internal static string ParseError_Expected_EndOfBlock_Before_EOF - { - get => GetString("ParseError_Expected_EndOfBlock_Before_EOF"); - } - - /// - /// The {0} block is missing a closing "{1}" character. Make sure you have a matching "{1}" character for all the "{2}" characters within this block, and that none of the "{1}" characters are being interpreted as markup. - /// - internal static string FormatParseError_Expected_EndOfBlock_Before_EOF(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Expected_EndOfBlock_Before_EOF"), p0, p1, p2); - - /// - /// The {0} directive is not supported. - /// - internal static string ParseError_HelperDirectiveNotAvailable - { - get => GetString("ParseError_HelperDirectiveNotAvailable"); - } - - /// - /// The {0} directive is not supported. - /// - internal static string FormatParseError_HelperDirectiveNotAvailable(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_HelperDirectiveNotAvailable"), p0); - - /// - /// Optional quote around the directive '{0}' is missing the corresponding opening or closing quote. - /// - internal static string ParseError_IncompleteQuotesAroundDirective - { - get => GetString("ParseError_IncompleteQuotesAroundDirective"); - } - - /// - /// Optional quote around the directive '{0}' is missing the corresponding opening or closing quote. - /// - internal static string FormatParseError_IncompleteQuotesAroundDirective(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_IncompleteQuotesAroundDirective"), p0); - - /// - /// Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed. - /// - internal static string ParseError_InlineMarkup_Blocks_Cannot_Be_Nested - { - get => GetString("ParseError_InlineMarkup_Blocks_Cannot_Be_Nested"); - } - - /// - /// Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed. - /// - internal static string FormatParseError_InlineMarkup_Blocks_Cannot_Be_Nested() - => GetString("ParseError_InlineMarkup_Blocks_Cannot_Be_Nested"); - - /// - /// Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "<br>". Instead use self-closing tags like "<br/>". - /// - internal static string ParseError_MarkupBlock_Must_Start_With_Tag - { - get => GetString("ParseError_MarkupBlock_Must_Start_With_Tag"); - } - - /// - /// Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "<br>". Instead use self-closing tags like "<br/>". - /// - internal static string FormatParseError_MarkupBlock_Must_Start_With_Tag() - => GetString("ParseError_MarkupBlock_Must_Start_With_Tag"); - - /// - /// The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag. - /// - internal static string ParseError_MissingEndTag - { - get => GetString("ParseError_MissingEndTag"); - } - - /// - /// The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag. - /// - internal static string FormatParseError_MissingEndTag(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_MissingEndTag"), p0); - - /// - /// Namespace imports and type aliases cannot be placed within code blocks. They must immediately follow an "@" character in markup. It is recommended that you put them at the top of the page, as in the following example: - /// - /// @using System.Drawing; - /// @{{ - /// // OK here to use types from System.Drawing in the page. - /// }} - /// - internal static string ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock - { - get => GetString("ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock"); - } - - /// - /// Namespace imports and type aliases cannot be placed within code blocks. They must immediately follow an "@" character in markup. It is recommended that you put them at the top of the page, as in the following example: - /// - /// @using System.Drawing; - /// @{{ - /// // OK here to use types from System.Drawing in the page. - /// }} - /// - internal static string FormatParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock() - => GetString("ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock"); - - /// - /// Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name. - /// - internal static string ParseError_OuterTagMissingName - { - get => GetString("ParseError_OuterTagMissingName"); - } - - /// - /// Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name. - /// - internal static string FormatParseError_OuterTagMissingName() - => GetString("ParseError_OuterTagMissingName"); - - /// - /// End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence. - /// - internal static string ParseError_RazorComment_Not_Terminated - { - get => GetString("ParseError_RazorComment_Not_Terminated"); - } - - /// - /// End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence. - /// - internal static string FormatParseError_RazorComment_Not_Terminated() - => GetString("ParseError_RazorComment_Not_Terminated"); - - /// - /// "{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used. - /// - internal static string ParseError_ReservedWord - { - get => GetString("ParseError_ReservedWord"); - } - - /// - /// "{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used. - /// - internal static string FormatParseError_ReservedWord(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_ReservedWord"), p0); - - /// - /// Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed. - /// - internal static string ParseError_Sections_Cannot_Be_Nested - { - get => GetString("ParseError_Sections_Cannot_Be_Nested"); - } - - /// - /// Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed. - /// - internal static string FormatParseError_Sections_Cannot_Be_Nested(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Sections_Cannot_Be_Nested"), p0); - - /// - /// Expected a "{0}" but found a "{1}". Block statements must be enclosed in "{{" and "}}". You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed: - /// - /// @if(isLoggedIn) - /// <p>Hello, @user</p> - /// - /// Instead, wrap the contents of the block in "{{}}": - /// - /// @if(isLoggedIn) {{ - /// <p>Hello, @user</p> - /// }} - /// - internal static string ParseError_SingleLine_ControlFlowStatements_Not_Allowed - { - get => GetString("ParseError_SingleLine_ControlFlowStatements_Not_Allowed"); - } - - /// - /// Expected a "{0}" but found a "{1}". Block statements must be enclosed in "{{" and "}}". You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed: - /// - /// @if(isLoggedIn) - /// <p>Hello, @user</p> - /// - /// Instead, wrap the contents of the block in "{{}}": - /// - /// @if(isLoggedIn) {{ - /// <p>Hello, @user</p> - /// }} - /// - internal static string FormatParseError_SingleLine_ControlFlowStatements_Not_Allowed(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_SingleLine_ControlFlowStatements_Not_Allowed"), p0, p1); - - /// - /// "<text>" and "</text>" tags cannot contain attributes. - /// - internal static string ParseError_TextTagCannotContainAttributes - { - get => GetString("ParseError_TextTagCannotContainAttributes"); - } - - /// - /// "<text>" and "</text>" tags cannot contain attributes. - /// - internal static string FormatParseError_TextTagCannotContainAttributes() - => GetString("ParseError_TextTagCannotContainAttributes"); - - /// - /// "{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid. - /// - internal static string ParseError_Unexpected_Character_At_Start_Of_CodeBlock - { - get => GetString("ParseError_Unexpected_Character_At_Start_Of_CodeBlock"); - } - - /// - /// "{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid. - /// - internal static string FormatParseError_Unexpected_Character_At_Start_Of_CodeBlock(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Unexpected_Character_At_Start_Of_CodeBlock"), p0); - - /// - /// End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@" - /// - internal static string ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock - { - get => GetString("ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock"); - } - - /// - /// End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@" - /// - internal static string FormatParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock() - => GetString("ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock"); - - /// - /// Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code. - /// - internal static string ParseError_Unexpected_Nested_CodeBlock - { - get => GetString("ParseError_Unexpected_Nested_CodeBlock"); - } - - /// - /// Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code. - /// - internal static string FormatParseError_Unexpected_Nested_CodeBlock() - => GetString("ParseError_Unexpected_Nested_CodeBlock"); - - /// - /// A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{{" are valid at the start of a code block and they must occur immediately following "@" with no space in between. - /// - internal static string ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock - { - get => GetString("ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock"); - } - - /// - /// A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{{" are valid at the start of a code block and they must occur immediately following "@" with no space in between. - /// - internal static string FormatParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock() - => GetString("ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock"); - - /// - /// Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced? - /// - internal static string ParseError_UnexpectedEndTag - { - get => GetString("ParseError_UnexpectedEndTag"); - } - - /// - /// Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced? - /// - internal static string FormatParseError_UnexpectedEndTag(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_UnexpectedEndTag"), p0); - - /// - /// End of file or an unexpected character was reached before the "{0}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "&lt;" HTML entity. - /// - internal static string ParseError_UnfinishedTag - { - get => GetString("ParseError_UnfinishedTag"); - } - - /// - /// End of file or an unexpected character was reached before the "{0}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "&lt;" HTML entity. - /// - internal static string FormatParseError_UnfinishedTag(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_UnfinishedTag"), p0); - - /// - /// Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. - /// - internal static string ParseError_Unterminated_String_Literal - { - get => GetString("ParseError_Unterminated_String_Literal"); - } - - /// - /// Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. - /// - internal static string FormatParseError_Unterminated_String_Literal() - => GetString("ParseError_Unterminated_String_Literal"); - - /// - /// Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser. - /// - internal static string Parser_Context_Not_Set - { - get => GetString("Parser_Context_Not_Set"); - } - - /// - /// Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser. - /// - internal static string FormatParser_Context_Not_Set() - => GetString("Parser_Context_Not_Set"); - - /// - /// Cannot complete the tree, StartBlock must be called at least once. - /// - internal static string ParserContext_CannotCompleteTree_NoRootBlock - { - get => GetString("ParserContext_CannotCompleteTree_NoRootBlock"); - } - - /// - /// Cannot complete the tree, StartBlock must be called at least once. - /// - internal static string FormatParserContext_CannotCompleteTree_NoRootBlock() - => GetString("ParserContext_CannotCompleteTree_NoRootBlock"); - - /// - /// Cannot complete the tree, there are still open blocks. - /// - internal static string ParserContext_CannotCompleteTree_OutstandingBlocks - { - get => GetString("ParserContext_CannotCompleteTree_OutstandingBlocks"); - } - - /// - /// Cannot complete the tree, there are still open blocks. - /// - internal static string FormatParserContext_CannotCompleteTree_OutstandingBlocks() - => GetString("ParserContext_CannotCompleteTree_OutstandingBlocks"); - - /// - /// Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span - /// - internal static string ParserContext_NoCurrentBlock - { - get => GetString("ParserContext_NoCurrentBlock"); - } - - /// - /// Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span - /// - internal static string FormatParserContext_NoCurrentBlock() - => GetString("ParserContext_NoCurrentBlock"); - - /// - /// The '{0}' phase requires a '{1}' provided by the '{2}'. - /// - internal static string PhaseDependencyMissing - { - get => GetString("PhaseDependencyMissing"); - } - - /// - /// The '{0}' phase requires a '{1}' provided by the '{2}'. - /// - internal static string FormatPhaseDependencyMissing(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("PhaseDependencyMissing"), p0, p1, p2); - - /// - /// The phase must be initialized by setting the '{0}' property. - /// - internal static string PhaseMustBeInitialized - { - get => GetString("PhaseMustBeInitialized"); - } - - /// - /// The phase must be initialized by setting the '{0}' property. - /// - internal static string FormatPhaseMustBeInitialized(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("PhaseMustBeInitialized"), p0); - - /// - /// Path must begin with a forward slash '/'. - /// - internal static string RazorProject_PathMustStartWithForwardSlash - { - get => GetString("RazorProject_PathMustStartWithForwardSlash"); - } - - /// - /// Path must begin with a forward slash '/'. - /// - internal static string FormatRazorProject_PathMustStartWithForwardSlash() - => GetString("RazorProject_PathMustStartWithForwardSlash"); - - /// - /// Remove Tag Helpers for use in the current document. - /// - internal static string RemoveTagHelperDirective_Description - { - get => GetString("RemoveTagHelperDirective_Description"); - } - - /// - /// Remove Tag Helpers for use in the current document. - /// - internal static string FormatRemoveTagHelperDirective_Description() - => GetString("RemoveTagHelperDirective_Description"); - - /// - /// Remove tag helpers from the specified type name and assembly name. Specify '*' for the type name to remove all tag helper types from the specified assembly. - /// - internal static string RemoveTagHelperDirective_StringToken_Description - { - get => GetString("RemoveTagHelperDirective_StringToken_Description"); - } - - /// - /// Remove tag helpers from the specified type name and assembly name. Specify '*' for the type name to remove all tag helper types from the specified assembly. - /// - internal static string FormatRemoveTagHelperDirective_StringToken_Description() - => GetString("RemoveTagHelperDirective_StringToken_Description"); - - /// - /// TypeName, AssemblyName - /// - internal static string RemoveTagHelperDirective_StringToken_Name - { - get => GetString("RemoveTagHelperDirective_StringToken_Name"); - } - - /// - /// TypeName, AssemblyName - /// - internal static string FormatRemoveTagHelperDirective_StringToken_Name() - => GetString("RemoveTagHelperDirective_StringToken_Name"); - - /// - /// The '{0}' requires a '{1}' delegate to be set. - /// - internal static string RenderingContextRequiresDelegate - { - get => GetString("RenderingContextRequiresDelegate"); - } - - /// - /// The '{0}' requires a '{1}' delegate to be set. - /// - internal static string FormatRenderingContextRequiresDelegate(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("RenderingContextRequiresDelegate"), p0, p1); - - /// - /// Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace. - /// - internal static string RewriterError_EmptyTagHelperBoundAttribute - { - get => GetString("RewriterError_EmptyTagHelperBoundAttribute"); - } - - /// - /// Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace. - /// - internal static string FormatRewriterError_EmptyTagHelperBoundAttribute(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("RewriterError_EmptyTagHelperBoundAttribute"), p0, p1, p2); - - /// - /// Define a section to be rendered in the configured layout page. - /// - internal static string SectionDirective_Description - { - get => GetString("SectionDirective_Description"); - } - - /// - /// Define a section to be rendered in the configured layout page. - /// - internal static string FormatSectionDirective_Description() - => GetString("SectionDirective_Description"); - - /// - /// The name of the section. - /// - internal static string SectionDirective_NameToken_Description - { - get => GetString("SectionDirective_NameToken_Description"); - } - - /// - /// The name of the section. - /// - internal static string FormatSectionDirective_NameToken_Description() - => GetString("SectionDirective_NameToken_Description"); - - /// - /// SectionName - /// - internal static string SectionDirective_NameToken_Name - { - get => GetString("SectionDirective_NameToken_Name"); - } - - /// - /// SectionName - /// - internal static string FormatSectionDirective_NameToken_Name() - => GetString("SectionDirective_NameToken_Name"); - - /// - /// @section Header { ... } - /// - internal static string SectionExample - { - get => GetString("SectionExample"); - } - - /// - /// @section Header { ... } - /// - internal static string FormatSectionExample() - => GetString("SectionExample"); - - /// - /// <<unknown>> - /// - internal static string Token_Unknown - { - get => GetString("Token_Unknown"); - } - - /// - /// <<unknown>> - /// - internal static string FormatToken_Unknown() - => GetString("Token_Unknown"); - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with name '{2}' because the name contains a '{3}' character. - /// - internal static string TagHelper_InvalidBoundAttributeName - { - get => GetString("TagHelper_InvalidBoundAttributeName"); - } - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with name '{2}' because the name contains a '{3}' character. - /// - internal static string FormatTagHelper_InvalidBoundAttributeName(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidBoundAttributeName"), p0, p1, p2, p3); - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with name '{2}' because the name starts with '{3}'. - /// - internal static string TagHelper_InvalidBoundAttributeNameStartsWith - { - get => GetString("TagHelper_InvalidBoundAttributeNameStartsWith"); - } - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with name '{2}' because the name starts with '{3}'. - /// - internal static string FormatTagHelper_InvalidBoundAttributeNameStartsWith(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidBoundAttributeNameStartsWith"), p0, p1, p2, p3); - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with a null or empty name. - /// - internal static string TagHelper_InvalidBoundAttributeNullOrWhitespace - { - get => GetString("TagHelper_InvalidBoundAttributeNullOrWhitespace"); - } - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with a null or empty name. - /// - internal static string FormatTagHelper_InvalidBoundAttributeNullOrWhitespace(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidBoundAttributeNullOrWhitespace"), p0, p1); - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with prefix '{2}' because the prefix contains a '{3}' character. - /// - internal static string TagHelper_InvalidBoundAttributePrefix - { - get => GetString("TagHelper_InvalidBoundAttributePrefix"); - } - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with prefix '{2}' because the prefix contains a '{3}' character. - /// - internal static string FormatTagHelper_InvalidBoundAttributePrefix(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidBoundAttributePrefix"), p0, p1, p2, p3); - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with prefix '{2}' because the prefix starts with '{3}'. - /// - internal static string TagHelper_InvalidBoundAttributePrefixStartsWith - { - get => GetString("TagHelper_InvalidBoundAttributePrefixStartsWith"); - } - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with prefix '{2}' because the prefix starts with '{3}'. - /// - internal static string FormatTagHelper_InvalidBoundAttributePrefixStartsWith(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidBoundAttributePrefixStartsWith"), p0, p1, p2, p3); - - /// - /// Invalid restricted child '{1}' for tag helper '{0}'. Tag helpers cannot restrict child elements that contain a '{2}' character. - /// - internal static string TagHelper_InvalidRestrictedChild - { - get => GetString("TagHelper_InvalidRestrictedChild"); - } - - /// - /// Invalid restricted child '{1}' for tag helper '{0}'. Tag helpers cannot restrict child elements that contain a '{2}' character. - /// - internal static string FormatTagHelper_InvalidRestrictedChild(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidRestrictedChild"), p0, p1, p2); - - /// - /// Invalid restricted child for tag helper '{0}'. Name cannot be null or whitespace. - /// - internal static string TagHelper_InvalidRestrictedChildNullOrWhitespace - { - get => GetString("TagHelper_InvalidRestrictedChildNullOrWhitespace"); - } - - /// - /// Invalid restricted child for tag helper '{0}'. Name cannot be null or whitespace. - /// - internal static string FormatTagHelper_InvalidRestrictedChildNullOrWhitespace(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidRestrictedChildNullOrWhitespace"), p0); - - /// - /// Tag helpers cannot target attribute name '{0}' because it contains a '{1}' character. - /// - internal static string TagHelper_InvalidTargetedAttributeName - { - get => GetString("TagHelper_InvalidTargetedAttributeName"); - } - - /// - /// Tag helpers cannot target attribute name '{0}' because it contains a '{1}' character. - /// - internal static string FormatTagHelper_InvalidTargetedAttributeName(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidTargetedAttributeName"), p0, p1); - - /// - /// Targeted attribute name cannot be null or whitespace. - /// - internal static string TagHelper_InvalidTargetedAttributeNameNullOrWhitespace - { - get => GetString("TagHelper_InvalidTargetedAttributeNameNullOrWhitespace"); - } - - /// - /// Targeted attribute name cannot be null or whitespace. - /// - internal static string FormatTagHelper_InvalidTargetedAttributeNameNullOrWhitespace() - => GetString("TagHelper_InvalidTargetedAttributeNameNullOrWhitespace"); - - /// - /// Tag helpers cannot target parent tag name '{0}' because it contains a '{1}' character. - /// - internal static string TagHelper_InvalidTargetedParentTagName - { - get => GetString("TagHelper_InvalidTargetedParentTagName"); - } - - /// - /// Tag helpers cannot target parent tag name '{0}' because it contains a '{1}' character. - /// - internal static string FormatTagHelper_InvalidTargetedParentTagName(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidTargetedParentTagName"), p0, p1); - - /// - /// Targeted parent tag name cannot be null or whitespace. - /// - internal static string TagHelper_InvalidTargetedParentTagNameNullOrWhitespace - { - get => GetString("TagHelper_InvalidTargetedParentTagNameNullOrWhitespace"); - } - - /// - /// Targeted parent tag name cannot be null or whitespace. - /// - internal static string FormatTagHelper_InvalidTargetedParentTagNameNullOrWhitespace() - => GetString("TagHelper_InvalidTargetedParentTagNameNullOrWhitespace"); - - /// - /// Tag helpers cannot target tag name '{0}' because it contains a '{1}' character. - /// - internal static string TagHelper_InvalidTargetedTagName - { - get => GetString("TagHelper_InvalidTargetedTagName"); - } - - /// - /// Tag helpers cannot target tag name '{0}' because it contains a '{1}' character. - /// - internal static string FormatTagHelper_InvalidTargetedTagName(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidTargetedTagName"), p0, p1); - - /// - /// Targeted tag name cannot be null or whitespace. - /// - internal static string TagHelper_InvalidTargetedTagNameNullOrWhitespace - { - get => GetString("TagHelper_InvalidTargetedTagNameNullOrWhitespace"); - } - - /// - /// Targeted tag name cannot be null or whitespace. - /// - internal static string FormatTagHelper_InvalidTargetedTagNameNullOrWhitespace() - => GetString("TagHelper_InvalidTargetedTagNameNullOrWhitespace"); - - /// - /// Tag helper directive assembly name cannot be null or empty. - /// - internal static string TagHelperAssemblyNameCannotBeEmptyOrNull - { - get => GetString("TagHelperAssemblyNameCannotBeEmptyOrNull"); - } - - /// - /// Tag helper directive assembly name cannot be null or empty. - /// - internal static string FormatTagHelperAssemblyNameCannotBeEmptyOrNull() - => GetString("TagHelperAssemblyNameCannotBeEmptyOrNull"); - - /// - /// The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'. - /// - internal static string TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey - { - get => GetString("TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey"); - } - - /// - /// The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'. - /// - internal static string FormatTagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey"), p0, p1); - - /// - /// TagHelper attributes must be well-formed. - /// - internal static string TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed - { - get => GetString("TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed"); - } - - /// - /// TagHelper attributes must be well-formed. - /// - internal static string FormatTagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed() - => GetString("TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed"); - - /// - /// The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed. - /// - internal static string TagHelperParseTreeRewriter_CannotHaveNonTagContent - { - get => GetString("TagHelperParseTreeRewriter_CannotHaveNonTagContent"); - } - - /// - /// The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed. - /// - internal static string FormatTagHelperParseTreeRewriter_CannotHaveNonTagContent(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_CannotHaveNonTagContent"), p0, p1); - - /// - /// Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}'). - /// - internal static string TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag - { - get => GetString("TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag"); - } - - /// - /// Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}'). - /// - internal static string FormatTagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag"), p0, p1, p2); - - /// - /// Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values. - /// - internal static string TagHelperParseTreeRewriter_InconsistentTagStructure - { - get => GetString("TagHelperParseTreeRewriter_InconsistentTagStructure"); - } - - /// - /// Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values. - /// - internal static string FormatTagHelperParseTreeRewriter_InconsistentTagStructure(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_InconsistentTagStructure"), p0, p1, p2, p3); - - /// - /// The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed. - /// - internal static string TagHelperParseTreeRewriter_InvalidNestedTag - { - get => GetString("TagHelperParseTreeRewriter_InvalidNestedTag"); - } - - /// - /// The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed. - /// - internal static string FormatTagHelperParseTreeRewriter_InvalidNestedTag(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_InvalidNestedTag"), p0, p1, p2); - - /// - /// Specify a prefix that is required in an element name for it to be included in Tag Helper processing. - /// - internal static string TagHelperPrefixDirective_Description - { - get => GetString("TagHelperPrefixDirective_Description"); - } - - /// - /// Specify a prefix that is required in an element name for it to be included in Tag Helper processing. - /// - internal static string FormatTagHelperPrefixDirective_Description() - => GetString("TagHelperPrefixDirective_Description"); - - /// - /// The tag prefix to apply to tag helpers. - /// - internal static string TagHelperPrefixDirective_PrefixToken_Description - { - get => GetString("TagHelperPrefixDirective_PrefixToken_Description"); - } - - /// - /// The tag prefix to apply to tag helpers. - /// - internal static string FormatTagHelperPrefixDirective_PrefixToken_Description() - => GetString("TagHelperPrefixDirective_PrefixToken_Description"); - - /// - /// Prefix - /// - internal static string TagHelperPrefixDirective_PrefixToken_Name - { - get => GetString("TagHelperPrefixDirective_PrefixToken_Name"); - } - - /// - /// Prefix - /// - internal static string FormatTagHelperPrefixDirective_PrefixToken_Name() - => GetString("TagHelperPrefixDirective_PrefixToken_Name"); - - /// - /// Tag Helper '{0}'s attributes must have names. - /// - internal static string TagHelpers_AttributesMustHaveAName - { - get => GetString("TagHelpers_AttributesMustHaveAName"); - } - - /// - /// Tag Helper '{0}'s attributes must have names. - /// - internal static string FormatTagHelpers_AttributesMustHaveAName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_AttributesMustHaveAName"), p0); - - /// - /// The tag helper '{0}' must not have C# in the element's attribute declaration area. - /// - internal static string TagHelpers_CannotHaveCSharpInTagDeclaration - { - get => GetString("TagHelpers_CannotHaveCSharpInTagDeclaration"); - } - - /// - /// The tag helper '{0}' must not have C# in the element's attribute declaration area. - /// - internal static string FormatTagHelpers_CannotHaveCSharpInTagDeclaration(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_CannotHaveCSharpInTagDeclaration"), p0); - - /// - /// Code blocks (e.g. @{{var variable = 23;}}) must not appear in non-string tag helper attribute values. - /// Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used. - /// - internal static string TagHelpers_CodeBlocks_NotSupported_InAttributes - { - get => GetString("TagHelpers_CodeBlocks_NotSupported_InAttributes"); - } - - /// - /// Code blocks (e.g. @{{var variable = 23;}}) must not appear in non-string tag helper attribute values. - /// Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used. - /// - internal static string FormatTagHelpers_CodeBlocks_NotSupported_InAttributes() - => GetString("TagHelpers_CodeBlocks_NotSupported_InAttributes"); - - /// - /// Inline markup blocks (e.g. @<p>content</p>) must not appear in non-string tag helper attribute values. - /// Expected a '{0}' attribute value, not a string. - /// - internal static string TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes - { - get => GetString("TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes"); - } - - /// - /// Inline markup blocks (e.g. @<p>content</p>) must not appear in non-string tag helper attribute values. - /// Expected a '{0}' attribute value, not a string. - /// - internal static string FormatTagHelpers_InlineMarkupBlocks_NotSupported_InAttributes(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes"), p0); - - /// - /// Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing. - /// - internal static string TagHelpersParseTreeRewriter_FoundMalformedTagHelper - { - get => GetString("TagHelpersParseTreeRewriter_FoundMalformedTagHelper"); - } - - /// - /// Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing. - /// - internal static string FormatTagHelpersParseTreeRewriter_FoundMalformedTagHelper(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpersParseTreeRewriter_FoundMalformedTagHelper"), p0); - - /// - /// Missing close angle for tag helper '{0}'. - /// - internal static string TagHelpersParseTreeRewriter_MissingCloseAngle - { - get => GetString("TagHelpersParseTreeRewriter_MissingCloseAngle"); - } - - /// - /// Missing close angle for tag helper '{0}'. - /// - internal static string FormatTagHelpersParseTreeRewriter_MissingCloseAngle(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpersParseTreeRewriter_MissingCloseAngle"), p0); - - /// - /// Unreachable code. This can happen when a new {0} is introduced. - /// - internal static string UnexpectedDirectiveKind - { - get => GetString("UnexpectedDirectiveKind"); - } - - /// - /// Unreachable code. This can happen when a new {0} is introduced. - /// - internal static string FormatUnexpectedDirectiveKind(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedDirectiveKind"), p0); - - /// - /// Unexpected literal following the '{0}' directive. Expected '{1}'. - /// - internal static string UnexpectedDirectiveLiteral - { - get => GetString("UnexpectedDirectiveLiteral"); - } - - /// - /// Unexpected literal following the '{0}' directive. Expected '{1}'. - /// - internal static string FormatUnexpectedDirectiveLiteral(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedDirectiveLiteral"), p0, p1); - - /// - /// Unexpected end of file following the '{0}' directive. Expected '{1}'. - /// - internal static string UnexpectedEOFAfterDirective - { - get => GetString("UnexpectedEOFAfterDirective"); - } - - /// - /// Unexpected end of file following the '{0}' directive. Expected '{1}'. - /// - internal static string FormatUnexpectedEOFAfterDirective(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedEOFAfterDirective"), p0, p1); - - /// - /// The hash algorithm '{0}' is not supported for checksum generation. Supported algorithms are: '{1}'. Set '{2}' to '{3}' to suppress automatic checksum generation. - /// - internal static string UnsupportedChecksumAlgorithm - { - get => GetString("UnsupportedChecksumAlgorithm"); - } - - /// - /// The hash algorithm '{0}' is not supported for checksum generation. Supported algorithms are: '{1}'. Set '{2}' to '{3}' to suppress automatic checksum generation. - /// - internal static string FormatUnsupportedChecksumAlgorithm(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedChecksumAlgorithm"), p0, p1, p2, p3); - - /// - /// The '{0}.{1}' property must not be null. - /// - internal static string PropertyMustNotBeNull - { - get => GetString("PropertyMustNotBeNull"); - } - - /// - /// The '{0}.{1}' property must not be null. - /// - internal static string FormatPropertyMustNotBeNull(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PropertyMustNotBeNull"), p0, p1); - - /// - /// The '{0}' is missing feature '{1}'. - /// - internal static string RazorProjectEngineMissingFeatureDependency - { - get => GetString("RazorProjectEngineMissingFeatureDependency"); - } - - /// - /// The '{0}' is missing feature '{1}'. - /// - internal static string FormatRazorProjectEngineMissingFeatureDependency(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("RazorProjectEngineMissingFeatureDependency"), p0, p1); - - /// - /// The Razor language version '{0}' is unrecognized or not supported by this version of Razor. - /// - internal static string RazorLanguageVersion_InvalidVersion - { - get => GetString("RazorLanguageVersion_InvalidVersion"); - } - - /// - /// The Razor language version '{0}' is unrecognized or not supported by this version of Razor. - /// - internal static string FormatRazorLanguageVersion_InvalidVersion(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("RazorLanguageVersion_InvalidVersion"), p0); - - /// - /// File path '{0}' does not belong to the directory '{1}'. - /// - internal static string VirtualFileSystem_FileDoesNotBelongToDirectory - { - get => GetString("VirtualFileSystem_FileDoesNotBelongToDirectory"); - } - - /// - /// File path '{0}' does not belong to the directory '{1}'. - /// - internal static string FormatVirtualFileSystem_FileDoesNotBelongToDirectory(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("VirtualFileSystem_FileDoesNotBelongToDirectory"), p0, p1); - - /// - /// The file path '{0}' is invalid. File path is the root relative path of the file starting with '/' and should not contain any '\' characters. - /// - internal static string VirtualFileSystem_InvalidRelativePath - { - get => GetString("VirtualFileSystem_InvalidRelativePath"); - } - - /// - /// The file path '{0}' is invalid. File path is the root relative path of the file starting with '/' and should not contain any '\' characters. - /// - internal static string FormatVirtualFileSystem_InvalidRelativePath(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("VirtualFileSystem_InvalidRelativePath"), p0); - - /// - /// Not enough stack space to continue parsing this document. Razor doesn't support more than 500 nested elements. - /// - internal static string Rewriter_InsufficientStack - { - get => GetString("Rewriter_InsufficientStack"); - } - - /// - /// Not enough stack space to continue parsing this document. Razor doesn't support deeply nested elements. - /// - internal static string FormatRewriter_InsufficientStack() - => GetString("Rewriter_InsufficientStack"); - - /// - /// Specify the base namespace for the document. - /// - internal static string NamespaceDirective_Description - { - get => GetString("NamespaceDirective_Description"); - } - - /// - /// Specify the base namespace for the document. - /// - internal static string FormatNamespaceDirective_Description() - => GetString("NamespaceDirective_Description"); - - /// - /// The namespace for the document. - /// - internal static string NamespaceDirective_NamespaceToken_Description - { - get => GetString("NamespaceDirective_NamespaceToken_Description"); - } - - /// - /// The namespace for the document. - /// - internal static string FormatNamespaceDirective_NamespaceToken_Description() - => GetString("NamespaceDirective_NamespaceToken_Description"); - - /// - /// Namespace - /// - internal static string NamespaceDirective_NamespaceToken_Name - { - get => GetString("NamespaceDirective_NamespaceToken_Name"); - } - - /// - /// Namespace - /// - internal static string FormatNamespaceDirective_NamespaceToken_Name() - => GetString("NamespaceDirective_NamespaceToken_Name"); - - 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; - } - } -} diff --git a/src/Razor/Microsoft.CodeAnalysis.Razor/src/Properties/Resources.Designer.cs b/src/Razor/Microsoft.CodeAnalysis.Razor/src/Properties/Resources.Designer.cs deleted file mode 100644 index df00f34c36..0000000000 --- a/src/Razor/Microsoft.CodeAnalysis.Razor/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -namespace Microsoft.CodeAnalysis.Razor -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.CodeAnalysis.Razor.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Could not find matching ']' for required attribute '{0}'. - /// - internal static string TagHelper_CouldNotFindMatchingEndBrace - { - get => GetString("TagHelper_CouldNotFindMatchingEndBrace"); - } - - /// - /// Could not find matching ']' for required attribute '{0}'. - /// - internal static string FormatTagHelper_CouldNotFindMatchingEndBrace(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_CouldNotFindMatchingEndBrace"), p0); - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. '{2}.{3}' must be null unless property type implements '{4}'. - /// - internal static string TagHelper_InvalidAttributePrefixNotNull - { - get => GetString("TagHelper_InvalidAttributePrefixNotNull"); - } - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. '{2}.{3}' must be null unless property type implements '{4}'. - /// - internal static string FormatTagHelper_InvalidAttributePrefixNotNull(object p0, object p1, object p2, object p3, object p4) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidAttributePrefixNotNull"), p0, p1, p2, p3, p4); - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. '{2}.{3}' must be null or empty if property has no public setter. - /// - internal static string TagHelper_InvalidAttributeNameNotNullOrEmpty - { - get => GetString("TagHelper_InvalidAttributeNameNotNullOrEmpty"); - } - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. '{2}.{3}' must be null or empty if property has no public setter. - /// - internal static string FormatTagHelper_InvalidAttributeNameNotNullOrEmpty(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidAttributeNameNotNullOrEmpty"), p0, p1, p2, p3); - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. '{2}.{3}' must not be null if property has no public setter and its type implements '{4}'. - /// - internal static string TagHelper_InvalidAttributePrefixNull - { - get => GetString("TagHelper_InvalidAttributePrefixNull"); - } - - /// - /// Invalid tag helper bound property '{1}' on tag helper '{0}'. '{2}.{3}' must not be null if property has no public setter and its type implements '{4}'. - /// - internal static string FormatTagHelper_InvalidAttributePrefixNull(object p0, object p1, object p2, object p3, object p4) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidAttributePrefixNull"), p0, p1, p2, p3, p4); - - /// - /// Invalid required attribute character '{0}' in required attribute '{1}'. Separate required attributes with commas. - /// - internal static string TagHelper_InvalidRequiredAttributeCharacter - { - get => GetString("TagHelper_InvalidRequiredAttributeCharacter"); - } - - /// - /// Invalid required attribute character '{0}' in required attribute '{1}'. Separate required attributes with commas. - /// - internal static string FormatTagHelper_InvalidRequiredAttributeCharacter(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidRequiredAttributeCharacter"), p0, p1); - - /// - /// Required attribute '{0}' has mismatched quotes '{1}' around value. - /// - internal static string TagHelper_InvalidRequiredAttributeMismatchedQuotes - { - get => GetString("TagHelper_InvalidRequiredAttributeMismatchedQuotes"); - } - - /// - /// Required attribute '{0}' has mismatched quotes '{1}' around value. - /// - internal static string FormatTagHelper_InvalidRequiredAttributeMismatchedQuotes(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidRequiredAttributeMismatchedQuotes"), p0, p1); - - /// - /// Invalid character '{0}' in required attribute '{1}'. Expected supported CSS operator or ']'. - /// - internal static string TagHelper_InvalidRequiredAttributeOperator - { - get => GetString("TagHelper_InvalidRequiredAttributeOperator"); - } - - /// - /// Invalid character '{0}' in required attribute '{1}'. Expected supported CSS operator or ']'. - /// - internal static string FormatTagHelper_InvalidRequiredAttributeOperator(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_InvalidRequiredAttributeOperator"), p0, p1); - - /// - /// Required attribute '{0}' has a partial CSS operator. '{1}' must be followed by an equals. - /// - internal static string TagHelper_PartialRequiredAttributeOperator - { - get => GetString("TagHelper_PartialRequiredAttributeOperator"); - } - - /// - /// Required attribute '{0}' has a partial CSS operator. '{1}' must be followed by an equals. - /// - internal static string FormatTagHelper_PartialRequiredAttributeOperator(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelper_PartialRequiredAttributeOperator"), 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; - } - } -}