68 references to GetNames
aspire (2)
src\Shared\IConfigurationExtensions.cs (2)
190throw new InvalidOperationException($"Unknown {typeof(T).Name} value \"{value}\". Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}."); 210throw new InvalidOperationException($"Missing required configuration for {key}. Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}.");
Aspire.Dashboard (2)
src\Shared\IConfigurationExtensions.cs (2)
190throw new InvalidOperationException($"Unknown {typeof(T).Name} value \"{value}\". Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}."); 210throw new InvalidOperationException($"Missing required configuration for {key}. Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}.");
Aspire.Hosting (2)
src\Shared\IConfigurationExtensions.cs (2)
190throw new InvalidOperationException($"Unknown {typeof(T).Name} value \"{value}\". Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}."); 210throw new InvalidOperationException($"Missing required configuration for {key}. Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}.");
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
132foreach (var member in Enum.GetNames(enumType.ClrType))
Aspire.Hosting.CodeGeneration.Java (1)
AtsJavaCodeGenerator.cs (1)
133var members = Enum.GetNames(enumType.ClrType);
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
131foreach (var member in Enum.GetNames(enumType.ClrType))
Aspire.Hosting.CodeGeneration.Rust (2)
AtsRustCodeGenerator.cs (2)
151foreach (var member in Enum.GetNames(enumType.ClrType)) 169foreach (var member in Enum.GetNames(enumType.ClrType))
Aspire.Hosting.GitHub.Models (2)
src\Shared\IConfigurationExtensions.cs (2)
190throw new InvalidOperationException($"Unknown {typeof(T).Name} value \"{value}\". Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}."); 210throw new InvalidOperationException($"Missing required configuration for {key}. Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}.");
Aspire.Hosting.Maui (2)
src\Shared\IConfigurationExtensions.cs (2)
190throw new InvalidOperationException($"Unknown {typeof(T).Name} value \"{value}\". Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}."); 210throw new InvalidOperationException($"Missing required configuration for {key}. Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}.");
Aspire.Hosting.OpenAI (2)
src\Shared\IConfigurationExtensions.cs (2)
190throw new InvalidOperationException($"Unknown {typeof(T).Name} value \"{value}\". Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}."); 210throw new InvalidOperationException($"Missing required configuration for {key}. Valid values are {string.Join(", ", Enum.GetNames(typeof(T)))}.");
Aspire.Hosting.RemoteHost (2)
AtsCapabilityScanner.cs (2)
90var values = Enum.GetNames(enumType).ToList(); 530Values = Enum.GetNames(enumType).ToList()
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.AspNetCore.OpenApi (2)
Extensions\JsonNodeSchemaExtensions.cs (1)
370var memberNames = Enum.GetNames(enumType);
Services\Schemas\OpenApiSchemaService.cs (1)
279var memberNames = Enum.GetNames(enumType);
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
517log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidCodeType", typeAttribute.Value, String.Join(", ", Enum.GetNames(typeof(RoslynCodeTaskFactoryCodeType))));
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
Microsoft.CodeAnalysis.Features (1)
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
30Debug.Assert(Enum.GetNames(typeof(TriviaLocation)).Length == TriviaLocationsCount);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\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.Extensions.Diagnostics.ExceptionSummarization.Tests (2)
ExceptionSummarizerTests.cs (2)
21.Concat(Enum.GetNames(typeof(WebExceptionStatus)).ToList()) 22.Concat(Enum.GetNames(typeof(SocketError)).ToList()).ToList();
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)))
Microsoft.NET.Sdk.Publish.Tasks (3)
MsDeploy\CommonUtility.cs (1)
601string[] enumNames = Enum.GetNames(enumType);
Tasks\MsDeploy\MSDeploy.cs (2)
643foreach (string dPIdentity in Enum.GetNames(typeof(ExistingDeclareParameterMetadata))) 774foreach (string dPIdentity in Enum.GetNames(typeof(ExistingDeclareParameterMetadata)))
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Validation\ValidationManager.cs (1)
28throw new ArgumentException($"{nameof(scope)} should be one of {string.Join(", ", Enum.GetNames(typeof(ValidationScope)).Skip(1))}.", nameof(scope));
Microsoft.TestPlatform.Extensions.BlameDataCollector (3)
BlameCollector.cs (3)
379_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType)))); 426_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(HangDumpType)))); 442_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType))));
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\roslyn\src\Dependencies\Contracts\EnumExtensions.cs (1)
24=> Enum.GetNames(typeof(TEnum));
System.CommandLine (1)
Argument.cs (1)
111_ => Enum.GetNames(valueType).Select(n => new CompletionItem(n))
System.Configuration.ConfigurationManager (1)
System\Configuration\GenericEnumConverter.cs (1)
51string names = string.Join(", ", Enum.GetNames(_enumType));