45 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))));
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.Engine.UnitTests (2)
BuildEventArgsSerialization_Tests.cs (1)
524(AssemblyLoadingContext)(new Random().Next(Enum.GetNames(typeof(AssemblyLoadingContext)).Length));
Evaluation\Expander_Tests.cs (1)
3950=> Enum.GetNames(typeof(IntrinsicFunctions.StringHashingAlgorithm))
Microsoft.Build.Framework.UnitTests (1)
AssemblyLoadBuildEventArgs_Tests.cs (1)
22(AssemblyLoadingContext)(new Random().Next(Enum.GetNames(typeof(AssemblyLoadingContext)).Length));
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
458log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidCodeType", typeAttribute.Value, String.Join(", ", Enum.GetNames(typeof(RoslynCodeTaskFactoryCodeType))));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (1)
70valueDescriptions: Enum.GetNames(typeof(DayOfWeek)));
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.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.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
753foreach (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;
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
753foreach (string name in Enum.GetNames(typeInfo.Type))
System.Configuration.ConfigurationManager (1)
System\Configuration\GenericEnumConverter.cs (1)
51string names = string.Join(", ", Enum.GetNames(_enumType));