// namespace Microsoft.Extensions.ApiDescription.Tool { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.Extensions.ApiDescription.Tool.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// The assembly to use. /// internal static string AssemblyDescription { get => GetString("AssemblyDescription"); } /// /// The assembly to use. /// internal static string FormatAssemblyDescription() => GetString("AssemblyDescription"); /// /// Missing required option '--{0}'. /// internal static string MissingOption { get => GetString("MissingOption"); } /// /// Missing required option '--{0}'. /// internal static string FormatMissingOption(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("MissingOption"), p0); /// /// Do not colorize output. /// internal static string NoColorDescription { get => GetString("NoColorDescription"); } /// /// Do not colorize output. /// internal static string FormatNoColorDescription() => GetString("NoColorDescription"); /// /// The file to write the result to. /// internal static string OutputDescription { get => GetString("OutputDescription"); } /// /// The file to write the result to. /// internal static string FormatOutputDescription() => GetString("OutputDescription"); /// /// Prefix console output with logging level. /// internal static string PrefixDescription { get => GetString("PrefixDescription"); } /// /// Prefix console output with logging level. /// internal static string FormatPrefixDescription() => GetString("PrefixDescription"); /// /// Show verbose output. /// internal static string VerboseDescription { get => GetString("VerboseDescription"); } /// /// Show verbose output. /// internal static string FormatVerboseDescription() => GetString("VerboseDescription"); /// /// Location from which inside man was copied (in the .NET Framework case) or loaded. /// internal static string ToolsDirectoryDescription { get => GetString("ToolsDirectoryDescription"); } /// /// Location from which inside man was copied (in the .NET Framework case) or loaded. /// internal static string FormatToolsDirectoryDescription() => GetString("ToolsDirectoryDescription"); /// /// The name of the method to invoke on the '--service' instance. Default value '{0}'. /// internal static string MethodDescription { get => GetString("MethodDescription"); } /// /// The name of the method to invoke on the '--service' instance. Default value '{0}'. /// internal static string FormatMethodDescription(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("MethodDescription"), p0); /// /// The qualified name of the service type to retrieve from dependency injection. Default value '{0}'. /// internal static string ServiceDescription { get => GetString("ServiceDescription"); } /// /// The qualified name of the service type to retrieve from dependency injection. Default value '{0}'. /// internal static string FormatServiceDescription(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("ServiceDescription"), p0); /// /// The name of the document to pass to the '--method' method. Default value '{0}'. /// internal static string DocumentDescription { get => GetString("DocumentDescription"); } /// /// The name of the document to pass to the '--method' method. Default value '{0}'. /// internal static string FormatDocumentDescription(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("DocumentDescription"), p0); /// /// Using document name '{0}'. /// internal static string UsingDocument { get => GetString("UsingDocument"); } /// /// Using document name '{0}'. /// internal static string FormatUsingDocument(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("UsingDocument"), p0); /// /// Using method '{0}'. /// internal static string UsingMethod { get => GetString("UsingMethod"); } /// /// Using method '{0}'. /// internal static string FormatUsingMethod(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("UsingMethod"), p0); /// /// Using service '{0}'. /// internal static string UsingService { get => GetString("UsingService"); } /// /// Using service '{0}'. /// internal static string FormatUsingService(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("UsingService"), p0); /// /// Method '{0}' of service '{1}' failed to generate document '{2}'. /// internal static string MethodInvocationFailed { get => GetString("MethodInvocationFailed"); } /// /// Method '{0}' of service '{1}' failed to generate document '{2}'. /// internal static string FormatMethodInvocationFailed(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("MethodInvocationFailed"), p0, p1, p2); /// /// Assembly '{0}' does not contain an entry point. /// internal static string MissingEntryPoint { get => GetString("MissingEntryPoint"); } /// /// Assembly '{0}' does not contain an entry point. /// internal static string FormatMissingEntryPoint(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("MissingEntryPoint"), p0); private static string GetString(string name, params string[] formatterNames) { var value = _resourceManager.GetString(name); System.Diagnostics.Debug.Assert(value != null); if (formatterNames != null) { for (var i = 0; i < formatterNames.Length; i++) { value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}"); } } return value; } } }