59 references to GetNames
Aspire.Dashboard (2)
src\Shared\IConfigurationExtensions.cs (2)
188throw new InvalidOperationException($"Unknown {typeof(T).Name} value \"{value}\". Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}."); 208throw new InvalidOperationException($"Missing required configuration for {key}. Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}.");
Aspire.Hosting (2)
src\Shared\IConfigurationExtensions.cs (2)
188throw new InvalidOperationException($"Unknown {typeof(T).Name} value \"{value}\". Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}."); 208throw new InvalidOperationException($"Missing required configuration for {key}. Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}.");
dotnet-svcutil-lib (2)
HelpGenerator.cs (1)
51ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Verbosity.Name, SR.ParametersVerbosity, string.Format(SR.HelpVerbosityFormat, string.Join(", ", System.Enum.GetNames(typeof(Verbosity))), CommandProcessorOptions.Switches.Verbosity.Abbreviation)),
Shared\Options\OptionValueParser.cs (1)
239var supportedValues = string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOnInvalidEnumSupportedValuesFormat, string.Join(", ", Enum.GetNames(typeof(TValue))));
Metrics (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Metrics.Legacy (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
97var enumValues = string.Join(", ", Enum.GetNames(typeof(UIFramework)).Select(v => $"'{v}'"));
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
184var enumFields = Enum.GetNames(underlyingType)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.Analyzers (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.Debugging.Package (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (2)
EnumTests.cs (2)
29var internalNames = Enum.GetNames(internalType); 31var externalNames = Enum.GetNames(externalType);
Microsoft.CodeAnalysis.Features (1)
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
30Debug.Assert(Enum.GetNames(typeof(TriviaLocation)).Length == TriviaLocationsCount);
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditAndContinueCapabilitiesTests.cs (1)
59foreach (var name in Enum.GetNames(typeof(EditAndContinueCapabilities)))
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.PooledObjects.Package (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.Workspaces (2)
CodeFixes\ExportCodeFixProviderAttribute.cs (1)
22private static readonly string[] s_documentKindNames = Enum.GetNames(typeof(TextDocumentKind));
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (1)
20private static readonly string[] s_documentKindNames = Enum.GetNames(typeof(TextDocumentKind));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
FunctionIdTests.cs (1)
18foreach (var name in Enum.GetNames(typeof(FunctionId)))
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
757foreach (string name in Enum.GetNames(typeInfo.Type))
Microsoft.ML.EntryPoints (1)
JsonUtils\JsonManifestUtils.cs (1)
365var values = Enum.GetNames(type).Where(n => type.GetField(n).GetCustomAttribute<HideEnumValueAttribute>() == null);
Microsoft.ML.FastTree (2)
Utils\Timer.cs (2)
136foreach (string name in Enum.GetNames(typeof(TimerEvent))) 141foreach (string name in Enum.GetNames(typeof(CountEvent)))
ReachFramework (19)
PrintConfig\PrintSchema.cs (17)
1982internal static string[] CollationNames = Enum.GetNames(typeof(Collation)); 1992internal static string[] DuplexNames = Enum.GetNames(typeof(Duplexing)); 2004internal static string[] DirectionNames = Enum.GetNames(typeof(PagesPerSheetDirection)); 2014internal static string[] StaplingNames = Enum.GetNames(typeof(Stapling)); 2024internal static string[] SubstitutionNames = Enum.GetNames(typeof(DeviceFontSubstitution)); 2043internal static string[] MediaSizeNames = Enum.GetNames(typeof(PageMediaSizeName)); 2069internal static string[] MediaTypeNames = Enum.GetNames(typeof(PageMediaType)); 2079internal static string[] OrientationNames = Enum.GetNames(typeof(PageOrientation)); 2089internal static string[] ColorNames = Enum.GetNames(typeof(OutputColor)); 2102internal static string[] QualityNames = Enum.GetNames(typeof(PageQualitativeResolution)); 2115internal static string[] ScalingNames = Enum.GetNames(typeof(PageScaling)); 2125internal static string[] ModeNames = Enum.GetNames(typeof(TrueTypeFontMode)); 2135internal static string[] PageOrderNames = Enum.GetNames(typeof(PageOrder)); 2145internal static string[] PhotoIntentNames = Enum.GetNames(typeof(PhotoPrintingIntent)); 2155internal static string[] BorderlessNames = Enum.GetNames(typeof(PageBorderless)); 2165internal static string[] OutputQualityNames = Enum.GetNames(typeof(OutputQuality)); 2177internal static string[] InputBinNames = Enum.GetNames(typeof(InputBin));
PrintConfig\PrtCap_Public.cs (2)
55_countRootFeatures = Enum.GetNames(typeof(CapabilityName)).Length; 56_countLocalParamDefs = Enum.GetNames(typeof(PrintSchemaLocalParameterDefs)).Length;
Roslyn.Diagnostics.Analyzers (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
System.Configuration.ConfigurationManager (1)
System\Configuration\GenericEnumConverter.cs (1)
51string names = string.Join(", ", Enum.GetNames(_enumType));
Text.Analyzers (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));