45 references to GetName
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
1999_ => throw new InvalidOperationException($"Unknown pull policy '{Enum.GetName(typeof(ImagePullPolicy), pullPolicy)}' for container '{container.Name}'")
Binding.Http.IntegrationTests (9)
BasicHttpBindingTests.4.0.0.cs (6)
37serviceProxy = factory.CreateChannel(new EndpointAddress(Endpoints.HttpBaseAddress_Basic + Enum.GetName(typeof(WSMessageEncoding), messageEncoding))); 76factory = new ChannelFactory<IWcfService>(customBinding, new EndpointAddress(Endpoints.HttpBaseAddress_Basic + Enum.GetName(typeof(WSMessageEncoding), messageEncoding))); 112factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(Endpoints.HttpBaseAddress_Basic + Enum.GetName(typeof(WSMessageEncoding), messageEncoding))); 158factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(Endpoints.HttpBaseAddress_Basic + Enum.GetName(typeof(WSMessageEncoding), messageEncoding))); 214factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(Endpoints.HttpBaseAddress_Basic + Enum.GetName(typeof(WSMessageEncoding), messageEncoding))); 254factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(Endpoints.HttpBaseAddress_Basic + Enum.GetName(typeof(WSMessageEncoding), messageEncoding)));
NetHttpBindingTests.4.0.0.cs (1)
28factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(Endpoints.HttpBaseAddress_NetHttp + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)));
NetHttpsBindingTests.4.1.0.cs (1)
31factory = new ChannelFactory<IWcfService>(netHttpsBinding, new EndpointAddress(Endpoints.HttpBaseAddress_NetHttps + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)));
WSHttpBindingTests.cs (1)
27factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(Endpoints.WSHttpBindingBaseAddress + Enum.GetName(typeof(WSMessageEncoding), messageEncoding)));
Binding.WS.FederationHttp.IntegrationTests (1)
WSFederationHttpBindingTests.cs (1)
39tokenTargetAddress = Endpoints.Https_SecModeTransWithMessCred_ClientCredTypeIssuedTokenSaml2 + endpointSuffix + (useSecureConversation ? "/sc" : string.Empty) + "/" + Enum.GetName(typeof(WSMessageEncoding), encoding);
Binding.WS.TransportWithMessageCredentialSecurity.IntegrationTests (2)
BasicHttpTransportWithMessageCredentialSecurityTests.cs (2)
80endpointAddress = new EndpointAddress(new Uri(Endpoints.BasicHttps_SecModeTransWithMessCred_ClientCredTypeUserName + $"/{Enum.GetName(typeof(TransferMode), transferMode)}")); 182endpointAddress = new EndpointAddress(new Uri(Endpoints.BasicHttps_SecModeTransWithMessCred_ClientCredTypeUserName + $"/{Enum.GetName(typeof(TransferMode), transferMode)}"));
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
485var name = Enum.GetName(typeof(CodeGenerator), generator);
Extensibility.WebSockets.IntegrationTests (10)
WebSocketTests.4.1.0.cs (10)
48endpointAddress = Endpoints.WebSocketHttpDuplexStreamed_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding); 142endpointAddress = new EndpointAddress(Endpoints.WebSocketHttpDuplexBuffered_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)); 214endpointAddress = new EndpointAddress(Endpoints.WebSocketHttpDuplexBuffered_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)); 289endpointAddress = Endpoints.WebSocketHttpsDuplexStreamed_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding); 387endpointAddress = new EndpointAddress(Endpoints.WebSocketHttpsDuplexBuffered_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)); 451endpointAddress = new EndpointAddress(Endpoints.WebSocketHttpRequestReplyStreamed_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)); 520endpointAddress = new EndpointAddress(Endpoints.WebSocketHttpRequestReplyBuffered_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)); 578endpointAddress = new EndpointAddress(Endpoints.WebSocketHttpRequestReplyBuffered_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)); 638endpointAddress = new EndpointAddress(Endpoints.WebSocketHttpsRequestReplyBuffered_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding)); 698endpointAddress = new EndpointAddress(Endpoints.WebSocketHttpsRequestReplyBuffered_Address + Enum.GetName(typeof(NetHttpMessageEncoding), messageEncoding));
ILCompiler.MetadataTransform (1)
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\NativeMetadataReader.cs (1)
127return string.Format("{1} : {0,8:X8}", _value, Enum.GetName(typeof(HandleType), this.HandleType));
Microsoft.ML.AutoML (2)
ColumnInference\ColumnGroupingInference.cs (1)
124return Enum.GetName(typeof(ColumnPurpose), purpose);
TrainerExtensions\TrainerExtensionUtil.cs (1)
283.ToDictionary(v => Enum.GetName(fi.FieldType, v), v => v);
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
1249string name = Enum.GetName(type, value);
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
160return Parameter.FromString(Enum.GetName(t, e));
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\ZipDeploy\ZipDeploymentStatus.cs (1)
60_log.LogMessage(string.Format(Resources.ZIPDEPLOY_DeploymentStatus, Enum.GetName(typeof(DeployStatus), deployStatus)));
Microsoft.TemplateEngine.Cli (1)
TemplateInvoker.cs (1)
306Reporter.Error.WriteLine(string.Format(LocalizableStrings.UnexpectedResult, Enum.GetName(typeof(CreationResultStatus), instantiateResult.Status), instantiateResult.ErrorMessage).Bold().Red());
NuGet.Build.Tasks (4)
Common\MSBuildLogger.cs (4)
162Enum.GetName(typeof(NuGetLogCode), logMessage.Code), 163Enum.GetName(typeof(NuGetLogCode), logMessage.Code), 186Enum.GetName(typeof(NuGetLogCode), logMessage.Code), 187Enum.GetName(typeof(NuGetLogCode), logMessage.Code),
NuGet.Build.Tasks.Pack (4)
src\nuget-client\src\NuGet.Core\NuGet.Build.Tasks\Common\MSBuildLogger.cs (4)
162Enum.GetName(typeof(NuGetLogCode), logMessage.Code), 163Enum.GetName(typeof(NuGetLogCode), logMessage.Code), 186Enum.GetName(typeof(NuGetLogCode), logMessage.Code), 187Enum.GetName(typeof(NuGetLogCode), logMessage.Code),
NuGet.Common (1)
Logging\LoggingExtensions.cs (1)
36return Enum.GetName(typeof(NuGetLogCode), code);
NuGet.ProjectModel (2)
LockFile\LockFileFormat.cs (2)
296writer.WriteValue(Enum.GetName(typeof(NuGetLogCode), logMessage.Code)); 299writer.WriteValue(Enum.GetName(typeof(LogLevel), logMessage.Level));
Security.TransportSecurity.IntegrationTests (1)
Https\HttpsTests.4.1.0.cs (1)
41factory = new ChannelFactory<IWcfService>(basicHttpsBinding, new EndpointAddress(Endpoints.Https_DefaultBinding_Address + Enum.GetName(typeof(WSMessageEncoding), messageEncoding)));
System.Private.CoreLib (1)
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\NativeMetadataReader.cs (1)
127return string.Format("{1} : {0,8:X8}", _value, Enum.GetName(typeof(HandleType), this.HandleType));
System.Private.Xml (1)
System\Xml\Xsl\IlGen\XmlILTrace.cs (1)
182string s = Enum.GetName(typeof(XmlILOptimization), opt)!;