16 references to Parse
Aspire.Dashboard.Tests (2)
Model\ResourceStateViewModelTests.cs (1)
71HealthStatus? healthStatus = string.IsNullOrEmpty(healthStatusString) ? null : Enum.Parse<HealthStatus>(healthStatusString);
Model\ResourceViewModelTests.cs (1)
29var reports = healthStatusStrings?.Select<string?, HealthReportViewModel>((h, i) => new HealthReportViewModel(i.ToString(), h is null ? null : System.Enum.Parse<DiagnosticsHealthStatus>(h), null, null)).ToImmutableArray() ?? [];
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
1751return Enum.Parse<TestDispatchEnum>(name);
Aspire.Hosting.Tests (1)
Health\HealthStatusTests.cs (1)
26var reports = healthStatusStrings?.Select<string?, HealthReportSnapshot>((h, i) => new HealthReportSnapshot(i.ToString(), h is null ? null : Enum.Parse<HealthStatus>(h), null, null)).ToImmutableArray() ?? [];
dotnet-openapi (2)
Commands\BaseCommand.cs (1)
415codeGenerator = Enum.Parse<CodeGenerator>(codeGeneratorOption.Value());
Internal\OpenapiDependencyAttribute.cs (1)
18CodeGenerators = codeGenerators.Split(';', StringSplitOptions.RemoveEmptyEntries).Select(Enum.Parse<CodeGenerator>).ToArray();
ILCompiler.ReadyToRun (1)
Compiler\DependencyAnalysis\ReadyToRun\ReadyToRunInstructionSetSupportSignature.cs (1)
72return Enum.Parse<ReadyToRunInstructionSet>(instructionSetString);
Microsoft.DotNet.HotReload.Watch (1)
Context\EnvironmentVariables.cs (1)
59public static TestFlags TestFlags => Environment.GetEnvironmentVariable("__DOTNET_WATCH_TEST_FLAGS") is { } value ? Enum.Parse<TestFlags>(value) : TestFlags.None;
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyEvaluator.cs (1)
95Enum.Parse<ContentSafetyServicePayloadFormat>(contentSafetyServicePayloadFormat);
PresentationCore (2)
System\Windows\Input\CursorConverter.cs (1)
106CursorType ct = Enum.Parse<CursorType>(text);
System\Windows\Input\InputScopeNameConverter.cs (1)
101nameValue = Enum.Parse<InputScopeNameValue>(stringSource);
System.Configuration.ConfigurationManager (2)
System\Diagnostics\TraceConfiguration.cs (2)
61traceSource.Switch.Level = Enum.Parse<SourceLevels>(sourceElement.SwitchValue); 80traceSource.Switch.Level = Enum.Parse<SourceLevels>(sourceElement.SwitchValue);
System.Data.Common (1)
System\Data\DataViewManager.cs (1)
135_dataViewSettingsCollection[table]!.RowStateFilter = Enum.Parse<DataViewRowState>(r.Value);
System.Resources.Extensions (1)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
474ResourceTypeCode typeCode = Enum.Parse<ResourceTypeCode>(typeName);
System.Resources.Writer (1)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
474ResourceTypeCode typeCode = Enum.Parse<ResourceTypeCode>(typeName);