94 references to GetValues
Aspire.EndToEnd.Tests (2)
IntegrationServicesFixture.cs (1)
122foreach (var ename in Enum.GetValues<TestResourceNames>())
tests\testproject\Common\TestResourceNames.cs (1)
39return string.Join(',', Enum.GetValues<TestResourceNames>()
Aspire.Hosting.Testing.Tests (1)
tests\testproject\Common\TestResourceNames.cs (1)
39return string.Join(',', Enum.GetValues<TestResourceNames>()
Aspire.Hosting.Yarp (2)
YarpEnvConfigGenerator.cs (1)
71foreach (var protocol in Enum.GetValues<SslProtocols>())
YarpJsonConfigGeneratorBuilder.cs (1)
136foreach (var protocol in Enum.GetValues<SslProtocols>())
BuildActionTelemetryTable (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
CodeStyleConfigFileGenerator (2)
Program.cs (1)
69foreach (var analysisMode in Enum.GetValues<AnalysisMode>())
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
GenerateDocumentationAndConfigFiles (3)
Program.cs (1)
995foreach (var analysisMode in Enum.GetValues<AnalysisMode>())
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
27ImmutableHashSet.CreateRange(Enum.GetValues<OutputKind>());
InMemory.FunctionalTests (1)
KestrelMetricsTests.cs (1)
34foreach (var reason in Enum.GetValues<ConnectionEndReason>())
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
117var wellKnownTypeKeys = Enum.GetValues<WellKnownType>();
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
HealthCheckOptions.cs (1)
52var missingHealthStatus = Enum.GetValues<HealthStatus>().Except(mapping.Keys).ToList();
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
Microsoft.CodeAnalysis (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
Microsoft.CodeAnalysis.Collections.Package (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
Microsoft.CodeAnalysis.Contracts.Package (1)
EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
139var errorCodes = Enum.GetValues<ErrorCode>();
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
90foreach (var kind in Enum.GetValues<SyntaxKind>().Where(hasLabel))
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
765var expected = Enum.GetValues<LanguageVersion>()
Microsoft.CodeAnalysis.Features (4)
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
207foreach (var value in Enum.GetValues<ProjectSettingKind>())
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (1)
255var lookupTable = new bool[Enum.GetValues<DeclaredSymbolInfoKind>().Length];
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
22var glyphs = Enum.GetValues<Glyph>();
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
29foreach (var targetScope in Enum.GetValues<TargetScope>())
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\RudeEditDiagnosticTests.cs (1)
74var allKinds = Enum.GetValues<RudeEditKind>();
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
Microsoft.CodeAnalysis.Workspaces (2)
Log\FunctionIdExtensions.cs (1)
14() => Enum.GetValues<FunctionId>().ToImmutableDictionary(f => f, f => f.ToString()));
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
Microsoft.CommonLanguageServerProtocol.Framework.Example (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
PublishToSymbolServerTest.cs (1)
81IEnumerable<SymbolPublishVisibility> visibilities = Enum.GetValues<SymbolPublishVisibility>().Where(x => x <= maxVisibility);
PresentationFramework (2)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
70foreach (XmlToken val in Enum.GetValues<XmlToken>())
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (1)
157foreach (Actions a in Enum.GetValues<Actions>())
PresentationUI (2)
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
114RightsManagementStatus[] statusList = Enum.GetValues<RightsManagementStatus>();
MS\Internal\Documents\SignatureResourceHelper.cs (1)
140SignatureStatus[] statusList = Enum.GetValues<SignatureStatus>();
ReachFramework (17)
PrintConfig\PrintSchema.cs (17)
1983internal static int[] CollationEnums = (int[])(Array)Enum.GetValues<Collation>(); 1993internal static int[] DuplexEnums = (int[])(Array)Enum.GetValues<Duplexing>(); 2005internal static int[] DirectionEnums = (int[])(Array)Enum.GetValues<PagesPerSheetDirection>(); 2015internal static int[] StaplingEnums = (int[])(Array)Enum.GetValues<Stapling>(); 2025internal static int[] SubstitutionEnums = (int[])(Array)Enum.GetValues<DeviceFontSubstitution>(); 2044internal static int[] MediaSizeEnums = (int[])(Array)Enum.GetValues<PageMediaSizeName>(); 2070internal static int[] MediaTypeEnums = (int[])(Array)Enum.GetValues<PageMediaType>(); 2080internal static int[] OrientationEnums = (int[])(Array)Enum.GetValues<PageOrientation>(); 2090internal static int[] ColorEnums = (int[])(Array)Enum.GetValues<OutputColor>(); 2103internal static int[] QualityEnums = (int[])(Array)Enum.GetValues<PageQualitativeResolution>(); 2116internal static int[] ScalingEnums = (int[])(Array)Enum.GetValues<PageScaling>(); 2126internal static int[] ModeEnums = (int[])(Array)Enum.GetValues<TrueTypeFontMode>(); 2136internal static int[] PageOrderEnums = (int[])(Array)Enum.GetValues<PageOrder>(); 2146internal static int[] PhotoIntentEnums = (int[])(Array)Enum.GetValues<PhotoPrintingIntent>(); 2156internal static int[] BorderlessEnums = (int[])(Array)Enum.GetValues<PageBorderless>(); 2166internal static int[] OutputQualityEnums = (int[])(Array)Enum.GetValues<OutputQuality>(); 2178internal static int[] InputBinEnums = (int[])(Array)Enum.GetValues<InputBin>();
Replay (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
SemanticSearch.BuildTask (1)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
67foreach (int enumValue in Enum.GetValues<NotifyFilters>())
System.Net.Http (1)
System\Net\Http\DiagnosticsHelper.cs (1)
75Debug.Assert(Enum.GetValues<HttpRequestError>().Length == 12, "We need to extend the mapping in case new values are added to HttpRequestError.");
System.Net.Security (1)
System\Net\Security\NetSecurityTelemetry.cs (1)
183Debug.Assert(Enum.GetValues<SslProtocols>()[^1] == SslProtocols.Tls13, "Make sure to add a counter for new SslProtocols");
System.Private.Windows.Core.TestUtilities (1)
XUnit\EnumDataAttribute.cs (1)
13public static ReadOnlyTheoryData TheoryData { get; } = new(Enum.GetValues<TEnum>());
System.Private.Xml (2)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (1)
57private static readonly int s_patternCount = Enum.GetValues<OptimizerPatternName>().Length;
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
350XmlTypeCode[] arrEnum = Enum.GetValues<XmlTypeCode>();
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
518T[] values = Enum.GetValues<T>();
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\UnicodeCategoryConditions.cs (1)
28Debug.Assert(Enum.GetValues<UnicodeCategory>().Length == UnicodeCategoryValueCount);
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
42foreach (UnicodeCategory c in Enum.GetValues<UnicodeCategory>())
System.Windows.Forms.Analyzers.Tests (1)
Analyzers\AppManifestAnalyzer\GraphicsUnitTests.cs (1)
15var values = Enum.GetValues<GraphicsUnit>();
System.Windows.Forms.Tests (24)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (6)
143Array directions = Enum.GetValues<NavigateDirection>(); 499foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 516foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 736foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 777foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 877foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>())
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (6)
123Array directions = Enum.GetValues<NavigateDirection>(); 479foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 496foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 716foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 757foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 858foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>())
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (6)
121Array directions = Enum.GetValues<NavigateDirection>(); 492foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 509foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 729foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 770foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>()) 870foreach (ToolStripGripStyle grip in Enum.GetValues<ToolStripGripStyle>())
System\Windows\Forms\TabRendererTests.cs (6)
37foreach (TabItemState state in Enum.GetValues<TabItemState>()) 53foreach (TabItemState state in Enum.GetValues<TabItemState>()) 68foreach (TabItemState state in Enum.GetValues<TabItemState>()) 83foreach (TabItemState state in Enum.GetValues<TabItemState>()) 99foreach (TabItemState state in Enum.GetValues<TabItemState>()) 117foreach (TabItemState state in Enum.GetValues<TabItemState>())
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ControlTestBase.cs (1)
113foreach (var code in Enum.GetValues<VIRTUAL_KEY>())
Test.Utilities (2)
src\Dependencies\Contracts\EnumExtensions.cs (1)
13=> Enum.GetValues<TEnum>();
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
27ImmutableHashSet.CreateRange(Enum.GetValues<OutputKind>());
TestProject.AppHost (1)
tests\testproject\Common\TestResourceNames.cs (1)
39return string.Join(',', Enum.GetValues<TestResourceNames>()
TestProject.IntegrationServiceA (1)
tests\testproject\Common\TestResourceNames.cs (1)
39return string.Join(',', Enum.GetValues<TestResourceNames>()