Base:
method
ToString
System.ValueType.ToString()
1595 references to ToString
aspire (10)
Backchannel\ExtensionBackchannel.cs (1)
596[_token, logLevel.ToString(), message],
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(s_macOSUserHttpsCertificateLocation))
Commands\GroupedHelpWriter.cs (1)
196_ => group.ToString(),
Commands\RootCommand.cs (1)
81return level.HasValue ? ["--log-level", level.Value.ToString()] : null;
Diagnostics\FileLoggerProvider.cs (1)
194_ => logLevel.ToString().ToUpperInvariant()
Interaction\SpectreConsoleLoggerProvider.cs (1)
74_ => logLevel.ToString().ToLower()
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
212["trustLevel"] = cert.TrustLevel.ToString().ToLowerInvariant(),
Utils\EnvironmentChecker\DotNetSdkCheck.cs (1)
60var architecture = System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
Utils\EnvironmentChecker\EnvironmentCheckResult.cs (1)
113writer.WriteStringValue(value.ToString().ToLowerInvariant());
Utils\SdkInstallHelper.cs (1)
63_ => result.ToString().ToLowerInvariant()
Aspire.Dashboard (30)
Api\TelemetryApiService.cs (2)
235Value = logLevel.ToString(), 364Value = parsedLevel.ToString(),
Components\Controls\StructuredLogDetails.razor.cs (1)
111new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = _viewModel.LogEntry.Severity.ToString() },
Components\Dialogs\ManageDataDialog.razor.cs (1)
353_ => dataType.ToString()
Components\Dialogs\SettingsDialog.razor.cs (1)
135_ => format.ToString()
Components\Pages\ComponentTelemetryContext.cs (2)
57Properties[TelemetryPropertyKeys.DashboardComponentType] = new AspireTelemetryProperty(_type.ToString()); 117{ TelemetryPropertyKeys.DashboardComponentType, new AspireTelemetryProperty(_type.ToString()) },
Components\Pages\Metrics.razor.cs (2)
136ViewKind = PageViewModel.SelectedViewKind?.ToString() 361new ComponentTelemetryProperty(TelemetryPropertyKeys.MetricsSelectedView, new AspireTelemetryProperty(PageViewModel.SelectedViewKind?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting))
Components\Pages\Resources.razor.cs (2)
976ViewKind = PageViewModel.SelectedViewKind != ResourceViewKind.Table ? PageViewModel.SelectedViewKind.ToString() : null, 1014new(TelemetryPropertyKeys.ResourceView, new AspireTelemetryProperty(PageViewModel.SelectedViewKind.ToString(), AspireTelemetryPropertyType.UserSetting)),
Components\Pages\StructuredLogs.razor.cs (3)
427return $"log-row-{entry.Severity.ToString().ToLowerInvariant()}"; 504LogLevelText = PageViewModel.SelectedLogLevel.Id?.ToString().ToLowerInvariant(), 628new ComponentTelemetryProperty(TelemetryPropertyKeys.StructuredLogsSelectedLogLevel, new AspireTelemetryProperty(PageViewModel.SelectedLogLevel.Id?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting)),
DashboardWebApplication.cs (1)
630values[$"Kestrel:Endpoints:{endpointName}:ClientCertificateMode"] = ClientCertificateMode.RequireCertificate.ToString();
Model\Assistant\AIHelpers.cs (2)
173return resource.HealthStatus?.ToString(); 183return report.HealthStatus?.ToString();
Model\Assistant\AssistantChatViewModel.cs (1)
980{ TelemetryPropertyKeys.AIAssistantFeedbackType, new AspireTelemetryProperty(feedbackType.ToString()) }
Model\Assistant\OtelAttributeHelpers.cs (1)
15return ((HttpStatusCode)statusCode).ToString();
Model\StructuredLogsViewModel.cs (2)
140filters.Add(new FieldTelemetryFilter { Field = nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = _logLevel.Value.ToString() }); 153filters.Add(new FieldTelemetryFilter { Field = nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = Microsoft.Extensions.Logging.LogLevel.Error.ToString() });
Model\TelemetryExportService.cs (3)
261SeverityText = log.Severity.ToString(), 731HealthStatus = resource.HealthStatus?.ToString(), 757Status = h.HealthStatus?.ToString(),
Model\TracesViewModel.cs (1)
115filters.Add(new FieldTelemetryFilter { Field = KnownTraceFields.StatusField, Condition = FilterCondition.Equals, Value = OtlpSpanStatusCode.Error.ToString() });
Otlp\Model\OtlpLogEntry.cs (1)
136KnownStructuredLogFields.LevelField => log.Severity.ToString(),
Otlp\Model\OtlpSpan.cs (4)
108new OtlpDisplayField { DisplayName = "Kind", Key = KnownTraceFields.KindField, Value = Kind.ToString() }, 113props.Add(new OtlpDisplayField { DisplayName = "Status", Key = KnownTraceFields.StatusField, Value = Status.ToString() }); 237KnownTraceFields.KindField => span.Kind.ToString(), 238KnownTraceFields.StatusField => span.Status.ToString(),
Aspire.Dashboard.Components.Tests (4)
Pages\MetricsTests.cs (3)
113ViewKind = MetricViewKind.Table.ToString() 184Assert.Equal(MetricViewKind.Table.ToString(), query["view"]); 289navigationManager.NavigateTo(DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", instrument: app1InstrumentName, duration: 720, view: MetricViewKind.Table.ToString()));
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
46State = state?.ToString(),
Aspire.Dashboard.Tests (61)
Integration\FrontendBrowserTokenAuthTests.cs (8)
34config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 56config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 87config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 111config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 136config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = authMode.ToString(); 163config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 241config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 268config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString();
Integration\McpServiceTests.cs (2)
79config[DashboardConfigNames.DashboardMcpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 102config[DashboardConfigNames.DashboardMcpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString();
Integration\OtlpGrpcServiceTests.cs (10)
54config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 76config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 103config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 131config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 170["AuthMode"] = OtlpAuthMode.ApiKey.ToString(), 212["AuthMode"] = OtlpAuthMode.ApiKey.ToString(), 275config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 301config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 340config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString(); 379config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ClientCertificate.ToString();
Integration\OtlpHttpJsonTests.cs (2)
649config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 677config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString();
Integration\OtlpHttpServiceTests.cs (3)
109config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 133config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 161config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString();
Integration\TelemetryApiTests.cs (34)
34config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 52config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 53config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 72config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 74config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 94config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 95config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 118config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 141config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 142config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 166config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 167config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 190config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 212config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 234config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 255config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 274config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 295config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 314config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 315config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.Unsecured.ToString(); 335config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 336config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 361config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 362config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 385config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 387config[DashboardConfigNames.DashboardMcpAuthModeName.ConfigKey] = McpAuthMode.ApiKey.ToString(); 408config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 439config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 472config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 494config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 516config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 535config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 555config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 556config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString();
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (1)
851Value = LogLevel.Error.ToString(),
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
46State = state?.ToString(),
Aspire.Hosting (15)
ApplicationModel\EndpointAnnotation.cs (2)
91uriScheme ??= protocol.ToString().ToLowerInvariant(); 172get => _transport ?? (string.Equals(UriScheme, "http", StringComparisons.EndpointAnnotationUriScheme) || string.Equals(UriScheme, "https", StringComparisons.EndpointAnnotationUriScheme) ? "http" : Protocol.ToString().ToLowerInvariant());
ApplicationModel\ResourceNotificationService.cs (1)
919error.Append(CultureInfo.InvariantCulture, $" - {report.Name}: {report.Status?.ToString() ?? "Unknown"}");
Ats\NotificationExports.cs (1)
157HealthStatus = resourceEvent.Snapshot.HealthStatus?.ToString(),
Backchannel\AppHostRpcTarget.cs (1)
126Health = healthStatus?.ToString()
Backchannel\AuxiliaryBackchannelRpcTarget.cs (6)
281HealthStatus = resourceEvent.Snapshot.HealthStatus?.ToString() 299HealthStatus = resourceEvent.Snapshot.HealthStatus?.ToString(), 315HealthStatus = resourceEvent.Snapshot.HealthStatus?.ToString() 559Status = h.Status?.ToString(), 617State = c.State.ToString() 628HealthStatus = snapshot.HealthStatus?.ToString(),
Dashboard\ResourceSnapshot.cs (1)
51yield return (KnownProperties.Resource.HealthState, CustomResourceSnapshot.ComputeHealthStatus(HealthReports, State) is not { } healthStatus ? Value.ForNull() : Value.ForString(healthStatus.ToString()), IsSensitive: false);
Pipelines\PipelineActivityReporter.cs (2)
186LogLevel = logLevel.ToString(), 330InputType = input.InputType.ToString(),
Publishing\ManifestPublishingContext.cs (1)
501Writer.WriteString("protocol", endpoint.Protocol.ToString().ToLowerInvariant());
Aspire.Hosting.Analyzers (2)
AppHostAnalyzer.DetectInvalidModelNames.cs (1)
30if (!ModelName.TryValidateName(modelType.ToString(), modelName, out var validationMessage))
Infrastructure\WellKnownTypes.cs (1)
33var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRExtensions.cs (1)
93Value = serviceMode.ToString()
Aspire.Hosting.Integration.Analyzers (1)
src\Aspire.Hosting.Analyzers\Infrastructure\WellKnownTypes.cs (1)
33var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Aspire.Hosting.RemoteHost (3)
CodeGeneration\CodeGenerationService.cs (3)
69CapabilityKind = c.CapabilityKind.ToString(), 98Category = t.Category.ToString(), 140Severity = d.Severity.ToString(),
Aspire.Hosting.Tests (2)
Pipelines\DistributedApplicationPipelineTests.cs (1)
1382log.LogLevel.ToString() == expectedLevel &&
Publishing\PipelineActivityReporterTests.cs (1)
972Assert.Equal(logLevel.ToString(), activity.Data.LogLevel);
Aspire.Hosting.Yarp (2)
YarpEnvConfigGenerator.cs (1)
80environmentVariables.Add($"{prefix}__{counter}", protocol.ToString());
YarpJsonConfigGeneratorBuilder.cs (1)
142writer.WriteStringValue(protocol.ToString());
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (1)
113activity.SetTag(StackExchangeRedisConnectionInstrumentation.RedisFlagsKeyName, command.Flags.ToString());
Client.ClientBase.IntegrationTests (5)
MessageInspectorTests.4.4.0.cs (5)
37mi_ClientBase_ClientAuth1 = new MI_ClientBase_ClientAuth(authType.ToString(), accessToken, binding, endPoint); 42mi_ClientBase_ClientAuth2 = new MI_ClientBase_ClientAuth(authType.ToString(), accessToken, binding, endPoint); 87mi_ClientBase_ClientAuth = new MI_ClientBase_ClientAuth(authType.ToString(), accessToken, binding, endPoint); 97Assert.True(String.Equals(authTypeHeaderValue, authType.ToString()), String.Format("Expected AuthType Header value: {0}/nActual AuthType Header value: {1}", authType.ToString(), authTypeHeaderValue));
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\TypeIndex.cs (1)
88string proxyTypeNameStr = genericProxyTypeName.ToString();
crossgen2 (3)
Crossgen2RootCommand.cs (2)
306Console.WriteLine(String.Format(SR.SwitchWithDefaultHelp, "--targetos", String.Join("', '", Helpers.ValidOS), Helpers.GetTargetOS(null).ToString().ToLowerInvariant())); 308Console.WriteLine(String.Format(SR.SwitchWithDefaultHelp, "--targetarch", String.Join("', '", Helpers.ValidArchitectures), Helpers.GetTargetArchitecture(null).ToString().ToLowerInvariant()));
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
115string jitInterfaceLibrary = "jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
CSharpSyntaxGenerator (3)
Grammar\GrammarGenerator.cs (3)
148.Select(n => n.ToString().ToLower()); 159.Where(m => SyntaxFacts.IsLanguagePunctuation(m) && !operatorTokens.Contains(m) && !m.ToString().StartsWith("Xml")) 360=> GetMembers<SyntaxKind>().Where(k => k.ToString() == name).SingleOrDefault();
dotnet (18)
CliSchema.cs (1)
210Enum e => e.ToString(),
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (1)
195{ "Status", result?.Status.ToString() ?? "<null>"},
Commands\Run\RunCommand.cs (1)
707buildArgs.CloneWithExplicitArgs([$"--verbosity:{LoggerVerbosity.Quiet.ToString().ToLowerInvariant()}", ..buildArgs.OtherMSBuildArgs])
Commands\Run\VirtualProjectBuildingCommand.cs (1)
760$"(it was {PreviousEntry?.BuildLevel.ToString() ?? "N/A"}).");
Commands\Test\MTP\TestApplication.cs (1)
470{ HandshakeMessagePropertyNames.Architecture, RuntimeInformation.ProcessArchitecture.ToString() },
Commands\Test\VSTest\VSTestForwardingApp.cs (1)
51["VSTEST_DOTNET_ROOT_ARCHITECTURE"] = RuntimeInformation.ProcessArchitecture.ToString()
Commands\Workload\Install\FileBasedInstaller.cs (1)
629return Path.Combine(_workloadMetadataDir, RuntimeInformation.ProcessArchitecture.ToString(), _sdkFeatureBand.ToString(), HistoryDir);
Commands\Workload\WorkloadInfoHelper.cs (1)
232reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(Product.Version), dotnetPath).ToString(),align}"
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
79$"_{currentArchitecture.ToString().ToUpperInvariant()}" :
Telemetry\TelemetryCommonProperties.cs (2)
60{ OSPlatform, RuntimeEnvironment.OperatingSystemPlatform.ToString() }, 61{ OSArchitecture, RuntimeInformation.OSArchitecture.ToString() },
ToolManifest\JsonElementExtension.cs (4)
24JsonValueKind.String.ToString(), 44JsonValueKind.Number.ToString(), 64JsonValueKind.True.ToString() + "|" + JsonValueKind.False.ToString(),
ToolManifest\ToolManifestEditor.cs (3)
161JsonValueKind.Object.ToString(), 183JsonValueKind.Array.ToString(), 193JsonValueKind.String.ToString(),
dotnet-aot (14)
src\sdk\src\Cli\dotnet\CliSchema.cs (1)
210Enum e => e.ToString(),
src\sdk\src\Cli\dotnet\Commands\Test\VSTest\VSTestForwardingApp.cs (1)
51["VSTEST_DOTNET_ROOT_ARCHITECTURE"] = RuntimeInformation.ProcessArchitecture.ToString()
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\RegistryWorkloadInstallationRecordRepository.cs (1)
40private static readonly string HostArchitecture = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
232reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(Product.Version), dotnetPath).ToString(),align}"
src\sdk\src\Cli\dotnet\Telemetry\TelemetryCommonProperties.cs (2)
60{ OSPlatform, RuntimeEnvironment.OperatingSystemPlatform.ToString() }, 61{ OSArchitecture, RuntimeInformation.OSArchitecture.ToString() },
src\sdk\src\Cli\dotnet\ToolManifest\JsonElementExtension.cs (4)
24JsonValueKind.String.ToString(), 44JsonValueKind.Number.ToString(), 64JsonValueKind.True.ToString() + "|" + JsonValueKind.False.ToString(),
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestEditor.cs (3)
161JsonValueKind.Object.ToString(), 183JsonValueKind.Array.ToString(), 193JsonValueKind.String.ToString(),
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
79$"_{currentArchitecture.ToString().ToUpperInvariant()}" :
dotnet-dev-certs (2)
Program.cs (1)
520statusString = trustStatus.ToString();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
376if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
dotnet-format (3)
Analyzers\AnalyzerFormatter.cs (1)
192formattedFiles.Add(new FormattedFile(document, new[] { new FileChange(diagnosticPosition, diagnostic.Id, $"{diagnostic.Severity.ToString().ToLower()} {diagnostic.Id}: {diagnostic.GetMessage()}") }));
Logging\ILoggerExtensions.cs (2)
12private static readonly string s_errorSeverityString = DiagnosticSeverity.Error.ToString().ToLower(); 20=> LogIssue(logger, document, diagnostic.Severity.ToString().ToLower(), diagnostic.Id, diagnosticPosition.Line + 1, diagnosticPosition.Character + 1, diagnostic.GetMessage(), changesAreErrors);
dotnet-svcutil-lib (160)
CodeDomFixup\MethodCreationHelper.cs (35)
302wsHttp.MessageEncoding.ToString()))); 349wsHttp.Security.Mode.ToString()))); 363wsHttp.Security.Transport.ClientCredentialType.ToString()))); 377wsHttp.Security.Message.ClientCredentialType.ToString()))); 443ws2007Http.MessageEncoding.ToString()))); 490ws2007Http.Security.Mode.ToString()))); 504ws2007Http.Security.Transport.ClientCredentialType.ToString()))); 518ws2007Http.Security.Message.ClientCredentialType.ToString()))); 649wsFedHttp.MessageEncoding.ToString()))); 696wsFedHttp.Security.Mode.ToString()))); 853ws2007FedHttp.MessageEncoding.ToString()))); 900ws2007FedHttp.Security.Mode.ToString()))); 1188bindingElement.SecurityHeaderLayout.ToString()))); 1226bindingElement.TransferMode.ToString()))); 1321bindingElement.TransferMode.ToString()))); 1398bindingElement.TransferMode.ToString()))); 1410bindingElement.AuthenticationScheme.ToString()))); 1716netTcp.TransferMode.ToString()))); 1728netTcp.Security.Mode.ToString()))); 1752netTcp.Security.Transport.ClientCredentialType.ToString()))); 1766netTcp.Security.Transport.ProtectionLevel.ToString()))); 1780netTcp.Security.Message.ClientCredentialType.ToString()))); 1836namedPipe.TransferMode.ToString()))); 1848namedPipe.Security.Mode.ToString()))); 1864namedPipe.Security.Transport.ProtectionLevel.ToString()))); 1908basicHttp.MessageEncoding.ToString()))); 1928basicHttp.TransferMode.ToString()))); 1940basicHttp.Security.Mode.ToString()))); 1954basicHttp.Security.Transport.ClientCredentialType.ToString()))); 1968basicHttp.Security.Message.ClientCredentialType.ToString()))); 2023netHttp.MessageEncoding.ToString()))); 2035netHttp.TransferMode.ToString()))); 2047netHttp.Security.Mode.ToString()))); 2071netHttp.Security.Transport.ClientCredentialType.ToString()))); 2085netHttp.Security.Message.ClientCredentialType.ToString())));
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
4481System.Diagnostics.Debug.WriteLine("Unhandled token: " + token.ToString());
FrameworkFork\Microsoft.Xml\Xml\Core\ReadContentAsBinaryHelper.cs (3)
301throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 348throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 460throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\ReadContentAsBinaryHelperAsync.cs (3)
251throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 291throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 377throw new XmlException(ResXml.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (15)
841throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 851throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 869throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 889throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 897throw new XmlException(ResXml.Xml_UnexpectedNodeInSimpleContent, new string[] { this.NodeType.ToString(), "ReadElementString" }, this as IXmlLineInfo); 916throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 929throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 948throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 961throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 977throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 1558throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString(), this as IXmlLineInfo); 1583return new InvalidOperationException(AddLineInfo(string.Format(ResXml.Xml_InvalidReadContentAs, new string[] { methodName, nodeType.ToString() }), lineInfo)); 1588return new InvalidOperationException(AddLineInfo(string.Format(ResXml.Xml_InvalidReadElementContentAs, new string[] { methodName, nodeType.ToString() }), lineInfo)); 1688throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString()); 1979string result = nt.ToString();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (1)
431throw new XmlException(ResXml.Xml_InvalidNodeType, this.NodeType.ToString());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (2)
670throw new InvalidOperationException(string.Format(ResXml.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString())); 728throw new InvalidOperationException(string.Format(ResXml.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (4)
925throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1060throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1372throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1401throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReaderAsync.cs (4)
342throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 477throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 576throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 605throw new XmlException(ResXml.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (4)
3100Throw(ResXml.Xml_PartialContentNodeTypeNotSupportedEx, fragmentType.ToString()); 6018Throw(ResXml.Xml_InvalidNodeType, _curNode.type.ToString()); 9059Throw(ResXml.Xml_InvalidNodeType, _curNode.type.ToString()); 9581throw new XmlException(ResXml.Xml_InvalidNodeType, _curNode.type.ToString(), this as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (1)
982throw new XmlException(ResXml.Xml_InvalidNodeType, _outerReader.NodeType.ToString());
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (2)
333throw new InvalidOperationException(string.Format(ResXml.Xml_UnexpectedNodeType, new string[] { _currentNode.NodeType.ToString() })); 780throw new InvalidOperationException(string.Format(ResXml.Xml_UnexpectedNodeType, new string[] { _currentNode.NodeType.ToString() }));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (1)
958throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, ResXml.Xdom_Import, node.NodeType.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (1)
1007return new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, ResXml.Xml_UnexpectedNodeType, nodetype.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (1)
1436string result = nodeType.ToString();
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
2088exception = new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, _dateTimeFlags.ToString()));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaDatatype.cs (1)
268return typeCode.ToString();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (1)
583return v.ToString();
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (4)
527if (throwOnError) throw new XmlException(ResXml.XmlBadName, new string[] { nodeKind.ToString(), localName }); 545if (throwOnError) throw new XmlException(ResXml.XmlNoNameAllowed, nodeKind.ToString()); 574if (throwOnError) throw new XmlException(ResXml.XmlBadName, new string[] { nodeKind.ToString(), localName }); 615if (throwOnError) throw new XmlException(ResXml.XmlNoNameAllowed, nodeKind.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\baseaxisquery.cs (1)
149w.WriteAttributeString("nodeType", TypeTest.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\BooleanExpr.cs (1)
65w.WriteAttributeString("op", (_isOr ? Operator.Op.OR : Operator.Op.AND).ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\BooleanFunctions.cs (1)
94w.WriteAttributeString("name", _funcType.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\DescendantBaseQuery.cs (1)
73w.WriteAttributeString("nodeType", TypeTest.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\LogicalExpr.cs (1)
440w.WriteAttributeString("op", _op.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NodeFunctions.cs (1)
115w.WriteAttributeString("name", _funcType.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumberFunctions.cs (1)
125w.WriteAttributeString("name", _ftype.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumericExpr.cs (1)
81w.WriteAttributeString("op", _op.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\StringFunctions.cs (1)
277w.WriteAttributeString("name", _funcType.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathAncestorQuery.cs (1)
81w.WriteAttributeString("nodeType", TypeTest.ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (1)
2249string result = _nav.NodeType.ToString();
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (1)
1033Debug.Assert(_nav.NodeType == XPathNodeType.Element, _nav.NodeType.ToString() + " == XPathNodeType.Element");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (12)
139throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString()))); 164throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString()))); 192throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartAttribute", WriteState.ToString()))); 299throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString()))); 411throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteComment", WriteState.ToString()))); 437throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteFullEndElement", WriteState.ToString()))); 449throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteCData", WriteState.ToString()))); 480throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()))); 525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()))); 836throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartDocument", WriteState.ToString()))); 1594throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()))); 1605throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidPrefixState, WriteState.ToString())));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
163channelName = traceChannel.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpSecurity.cs (2)
24Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString())); 123Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(basicHttpSecurityMode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", basicHttpSecurityMode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpsSecurityMode.cs (1)
39Fx.Assert(mode == BasicHttpSecurityMode.Transport || mode == BasicHttpSecurityMode.TransportWithMessageCredential, string.Format(CultureInfo.InvariantCulture, "Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AuthenticationSchemesHelper.cs (1)
42return authScheme.ToString().ToLowerInvariant();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (2)
175_compressionFormat.ToString(), 177CompressionFormat.None.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelParameterCollection.cs (4)
89channel.GetType().ToString(), state.ToString()); 94channel.GetType().ToString(), state.ToString()); 117channel.GetType().ToString(), state.ToString()); 129channel.GetType().ToString(), state.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
211headers[WebSocketTransportSettings.BinaryEncoderTransferModeHeader] = _channelFactory.TransferMode.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (2)
221return new InvalidOperationException(string.Format(SRServiceModel.CommunicationObjectCannotBeUsed, this.GetCommunicationObjectType().ToString(), _state.ToString())); 226return new InvalidOperationException(string.Format(SRServiceModel.CommunicationObjectCannotBeModifiedInState, this.GetCommunicationObjectType().ToString(), _state.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (5)
394SRServiceModel.FramingModeNotSupported, mode.ToString())), FramingEncodingString.UnsupportedModeFault); 429return new InvalidDataException(string.Format(SRServiceModel.FramingRecordTypeMismatch, expectedType.ToString(), foundType.ToString())); 487get { return _currentState.ToString(); } 629get { return _currentState.ToString(); }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
151statusDescription = response.StatusCode.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
1178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MessageBodyReaderInvalidReadState, bodyReader.ReadState.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (2)
1417sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString())); 1419sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElementImporter.cs (1)
237sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageProtectionOrder: {0}", _messageProtectionOrder.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SymmetricSecurityBindingElement.cs (1)
186sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageProtectionOrder: {0}", _messageProtectionOrder.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
457return authenticationLevel.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
99_webSocketCloseDetails.OutputCloseStatus.ToString(), 118_webSocketCloseDetails.OutputCloseStatus.ToString(), 132_webSocketCloseDetails.OutputCloseStatus.ToString(),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (1)
137protectionLevelElement.AppendChild(document.CreateTextNode(this.ProtectionLevel.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
256CodeAttributeArgument browsableAttributeValue = new CodeAttributeArgument(new CodeFieldReferenceExpression(browsableAttributeState, editorBrowsableState.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (2)
434address.ToString(), MetadataExchangeClientMode.HttpGet.ToString()); 440address.ToString(), MetadataExchangeClientMode.MetadataExchange.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
772new CodeTypeReferenceExpression(typeof(ProtectionLevel)), message.ProtectionLevel.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (4)
362new CodeTypeReferenceExpression(typeof(ProtectionLevel)), context.Contract.ProtectionLevel.ToString()))); 374new CodeTypeReferenceExpression(typeof(SessionMode)), context.Contract.SessionMode.ToString()))); 419new CodeTypeReferenceExpression(typeof(ProtectionLevel)), operationDescription.ProtectionLevel.ToString()))); 615new CodeTypeReferenceExpression(typeof(ProtectionLevel)), fault.ProtectionLevel.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetTcpSecurity.cs (2)
30mode.ToString(), 32SecurityMode.Transport.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
596sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
82sb.Append(String.Format(CultureInfo.InvariantCulture, "X509ReferenceStyle: {0}", _x509ReferenceStyle.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WindowsClientCredential.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.UnsupportedTokenImpersonationLevel, "AllowedImpersonationLevel", value.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (1)
704throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnableToCreateKeyTypeElementForUnknownKeyType, keyType.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSFederationHttpSecurity.cs (2)
25Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString())); 78Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpSecurity.cs (2)
115Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString())); 126Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", securityMode.ToString()));
HelpGenerator.cs (3)
64ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Serializer.Name, SerializerMode.Auto.ToString(), string.Format(SR.HelpAutoSerializerFormat, CommandProcessorOptions.Switches.Serializer.Abbreviation), true), 65ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Serializer.Name, SerializerMode.DataContractSerializer.ToString(), SR.HelpDataContractSerializer), 66ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Serializer.Name, SerializerMode.XmlSerializer.ToString(), SR.HelpXmlSerializer),
GenerateDocumentationAndConfigFiles (7)
Program.cs (2)
1029var globalconfigFileName = $"{analysisLevelPropName}_{analysisLevelVersionString}_{analysisMode!.ToString()!.ToLowerInvariant()}"; 1595_ => throw new NotImplementedException(severity.Value.ToString()),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
ILAssembler (1)
GrammarVisitor.cs (1)
3193string instrName = opcode.ToString();
ilc (3)
ILCompilerRootCommand.cs (2)
353Console.WriteLine("Valid switches for {0} are: '{1}'. The default value is '{2}'\n", "--targetos", string.Join("', '", Helpers.ValidOS), Helpers.GetTargetOS(null).ToString().ToLowerInvariant()); 355Console.WriteLine(string.Format("Valid switches for {0} are: '{1}'. The default value is '{2}'\n", "--targetarch", string.Join("', '", Helpers.ValidArchitectures), Helpers.GetTargetArchitecture(null).ToString().ToLowerInvariant()));
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
115string jitInterfaceLibrary = "jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
ILCompiler.Compiler (10)
Compiler\DependencyAnalysis\DynamicDependencyAttributesOnEntityNode.cs (1)
207((DynamicallyAccessedMemberTypes)memberTypesFromAttribute).ToString(),
Compiler\DependencyAnalysis\PInvokeMethodFixupNode.cs (1)
238sb.Append(CharSetMangling.ToString());
Compiler\JitHelper.cs (1)
343throw new NotImplementedException(id.ToString());
src\runtime\src\coreclr\tools\Common\Compiler\HardwareIntrinsicHelpers.cs (3)
211_ => throw new NotSupportedException(((InstructionSet_X64)instructionSet).ToString()) 321_ => throw new NotSupportedException(((InstructionSet_ARM64)instructionSet).ToString()) 359_ => throw new NotSupportedException(((InstructionSet_RiscV64)instructionSet).ToString())
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PETargetExtensions.cs (2)
98throw new NotImplementedException(target.Architecture.ToString()); 133throw new NotImplementedException(target.OperatingSystem.ToString());
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
70: mt.ToString();
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
42_ => throw new System.ArgumentException(type.ToString())
ILCompiler.Diagnostics (3)
PerfMapWriter.cs (3)
121_ => throw new NotImplementedException(details.OperatingSystem.ToString()) 129_ => throw new NotImplementedException(details.Abi.ToString()) 141_ => throw new NotImplementedException(details.Architecture.ToString())
ILCompiler.MetadataTransform (5)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (5)
372LogWriter.Write(rec.HandleType.ToString()); 733return Kind.ToString() + " " + Name.Value + "(" + Number.ToString() + ")"; 940string flags = Flags.ToString(); 974values.Add((value & SignatureCallingConvention.UnmanagedCallingConventionMask).ToString()); 979values.Add(value.ToString());
ILCompiler.ReadyToRun (40)
Compiler\DependencyAnalysis\ReadyToRun\DelayLoadHelperImport.cs (1)
63sb.Append(_helper.ToString());
Compiler\DependencyAnalysis\ReadyToRun\FieldFixupSignature.cs (1)
79sb.Append($@"FieldFixupSignature({_fixupKind.ToString()}): ");
Compiler\DependencyAnalysis\ReadyToRun\GenericLookupSignature.cs (2)
156sb.Append(_runtimeLookupKind.ToString()); 158sb.Append(_fixupKind.ToString());
Compiler\DependencyAnalysis\ReadyToRun\ILBodyFixupSignature.cs (1)
116sb.Append($@"ILBodyFixupSignature({_fixupKind.ToString()}): ");
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (1)
199sb.Append(_fixupKind.ToString());
Compiler\DependencyAnalysis\ReadyToRun\ReadyToRunHelperSignature.cs (1)
37sb.Append(_helperID.ToString());
Compiler\DependencyAnalysis\ReadyToRun\ReadyToRunInstructionSetSupportSignature.cs (2)
39builder.Append(r2rInstructionSet.Value.ToString()); 58builder.Append(r2rInstructionSet.Value.ToString());
Compiler\DependencyAnalysis\ReadyToRun\Target_X86\ImportThunk.cs (1)
46throw new NotSupportedException(_thunkKind.ToString() + " is not supported");
Compiler\DependencyAnalysis\ReadyToRun\TypeFixupSignature.cs (1)
190sb.Append($@"TypeFixupSignature({_fixupKind.ToString()}): ");
Compiler\DependencyAnalysis\ReadyToRun\VirtualResolutionFixupSignature.cs (1)
64sb.Append($@"VirtualResolutionFixupSignature({_fixupKind.ToString()}): ");
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (2)
295throw new NotImplementedException(key.Id.ToString()); 651throw new NotImplementedException(helperId.ToString());
Compiler\FileLayoutOptimizer.cs (1)
236throw new NotImplementedException(_methodLayoutAlgorithm.ToString());
IBC\IBCDataModel.cs (1)
38Description = section.ToString();
JitInterface\CorInfoImpl.ReadyToRun.cs (8)
964throw new NotImplementedException("ReadyToRun: " + id.ToString()); 1339throw new RequiresRuntimeJitException(ftnNum.ToString()); 1342throw new NotImplementedException(ftnNum.ToString()); 2533throw new RequiresRuntimeJitException(pResult->thisTransform.ToString()); 2645throw new NotImplementedException(pResult->kind.ToString()); 2762throw new NotImplementedException(entryKind.ToString()); 2876throw new NotImplementedException(pResult.handleType.ToString()); 2971throw new NotImplementedException(pResult.handleType.ToString());
ObjectWriter\MapFileBuilder.cs (1)
177writer.WriteLine(relocTypeCount.Key.ToString());
ObjectWriter\ProfileFileBuilder.cs (1)
74_ => throw new NotImplementedException(_targetDetails.Architecture.ToString())
ObjectWriter\TargetExtensions.cs (2)
98throw new NotImplementedException(target.Architecture.ToString()); 133throw new NotImplementedException(target.OperatingSystem.ToString());
src\runtime\src\coreclr\tools\Common\CallingConvention\TransitionBlock.cs (2)
51throw new NotImplementedException(arch.ToString()); 257throw new NotImplementedException(Architecture.ToString());
src\runtime\src\coreclr\tools\Common\Compiler\HardwareIntrinsicHelpers.cs (3)
211_ => throw new NotSupportedException(((InstructionSet_X64)instructionSet).ToString()) 321_ => throw new NotSupportedException(((InstructionSet_ARM64)instructionSet).ToString()) 359_ => throw new NotSupportedException(((InstructionSet_RiscV64)instructionSet).ToString())
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PETargetExtensions.cs (2)
98throw new NotImplementedException(target.Architecture.ToString()); 133throw new NotImplementedException(target.OperatingSystem.ToString());
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
3968throw new NotImplementedException("ReadyToRun: " + helper.ToString());
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (3)
76libHandle = NativeLibrary.Load("jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(), assembly, searchPath); 152_ => throw new NotImplementedException(target.Architecture.ToString()) 165return targetOSComponent + '_' + targetArchComponent + "_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
42_ => throw new System.ArgumentException(type.ToString())
ILCompiler.RyuJit (9)
JitInterface\CorInfoImpl.RyuJit.cs (2)
379throw new NotImplementedException("ReadyToRun: " + id.ToString()); 825throw new NotImplementedException(ftnNum.ToString());
src\runtime\src\coreclr\tools\aot\ILCompiler.Compiler\Compiler\JitHelper.cs (1)
343throw new NotImplementedException(id.ToString());
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (1)
236throw new NotImplementedException(_methodLayoutAlgorithm.ToString());
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCDataModel.cs (1)
38Description = section.ToString();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
3968throw new NotImplementedException("ReadyToRun: " + helper.ToString());
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (3)
76libHandle = NativeLibrary.Load("jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(), assembly, searchPath); 152_ => throw new NotImplementedException(target.Architecture.ToString()) 165return targetOSComponent + '_' + targetArchComponent + "_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
ILCompiler.TypeSystem (3)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemException.cs (1)
58return "[TEMPORARY EXCEPTION MESSAGE] " + id.ToString() + ": " + string.Join(", ", args);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemException.Resources.cs (1)
20return s_stringResourceManager.Value.GetString(id.ToString(), CultureInfo.InvariantCulture);
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\ILDisassembler.cs (1)
285string opCodeString = opCode.ToString().Replace("_", ".");
illink (7)
ILLink.RoslynAnalyzer (4)
DynamicallyAccessedMembersAnalyzer.cs (1)
375DAMArgument.Add(DynamicallyAccessedMembersAnalyzer.attributeArgument, mismatchedArgument.ToString());
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
70: mt.ToString();
src\runtime\src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
42_ => throw new System.ArgumentException(type.ToString())
TrimAnalysis\DiagnosticContext.cs (1)
85DAMArgument.Add("attributeArgument", expectedAnnotationsValue.DynamicallyAccessedMemberTypes.ToString());
Microsoft.AspNetCore.App.Analyzers (1)
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
37var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.AspNetCore.Authentication.Negotiate (2)
Internal\NegotiateState.cs (1)
32error = new AuthenticationFailureException(authStatus.ToString());
NegotiateHandler.cs (1)
139Logger.NegotiateError(errorType.ToString());
Microsoft.AspNetCore.Components (1)
RenderTree\RenderTreeDiffBuilder.cs (1)
772frameTypes.Add(renderTree[i].FrameTypeField.ToString());
Microsoft.AspNetCore.Components.Endpoints (1)
CacheView\CacheViewService.cs (1)
77=> "CacheVaryBy." + varyBy.ToString().Replace(", ", " | CacheVaryBy.");
Microsoft.AspNetCore.Components.WebView (2)
IpcCommon.cs (2)
14=> Serialize(messageType.ToString(), args); 17=> Serialize(messageType.ToString(), args);
Microsoft.AspNetCore.CookiePolicy (2)
ResponseCookiesWrapper.cs (2)
255_logger.CookieSameSiteUpgraded(key, Options.MinimumSameSitePolicy.ToString()); 270throw new InvalidOperationException($"Unrecognized {nameof(HttpOnlyPolicy)} value {Options.HttpOnly.ToString()}");
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
376if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
HealthCheckResponseWriters.cs (4)
12private static readonly byte[] DegradedBytes = Encoding.UTF8.GetBytes(HealthStatus.Degraded.ToString()); 13private static readonly byte[] HealthyBytes = Encoding.UTF8.GetBytes(HealthStatus.Healthy.ToString()); 14private static readonly byte[] UnhealthyBytes = Encoding.UTF8.GetBytes(HealthStatus.Unhealthy.ToString()); 24_ => httpContext.Response.WriteAsync(result.Status.ToString())
Microsoft.AspNetCore.Hosting (1)
src\aspnetcore\src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
51RuntimeInformation.ProcessArchitecture.ToString(),
Microsoft.AspNetCore.Http.Connections (1)
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (1)
87tags.Add("network.transport", localEndpoint.AddressFamily.ToString());
Microsoft.AspNetCore.Http.Connections.Client (9)
HttpConnection.cs (4)
371var transferFormatString = transferFormat.ToString(); 401transportExceptions.Add(new TransportFailedException(transportType.ToString(), "The transport is disabled by the client.")); 406transportExceptions.Add(new TransportFailedException(transportType.ToString(), $"The transport does not support the '{transferFormat}' transfer format.")); 431transportExceptions.Add(new TransportFailedException(transportType.ToString(), ex.Message, ex));
HttpConnection.Log.cs (5)
37StartingTransport(logger, transportType.ToString(), url); 63TransportDoesNotSupportTransferFormat(logger, transport.ToString(), transferFormat.ToString()); 76TransportDisabledByClient(logger, transport.ToString()); 87TransportFailed(logger, transport.ToString(), ex);
Microsoft.AspNetCore.Http.Connections.Common (1)
src\aspnetcore\src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
49return tokenType.ToString();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
37var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.AspNetCore.HttpLogging (1)
RequestBufferingStream.cs (1)
139_ => throw new NotImplementedException(_status.ToString()),
Microsoft.AspNetCore.Mvc.TagHelpers (9)
InputTagHelper.cs (9)
25{ "HiddenInput", InputType.Hidden.ToString().ToLowerInvariant() }, 26{ "Password", InputType.Password.ToString().ToLowerInvariant() }, 27{ "Text", InputType.Text.ToString().ToLowerInvariant() }, 46{ nameof(Single), InputType.Text.ToString().ToLowerInvariant() }, 47{ nameof(Double), InputType.Text.ToString().ToLowerInvariant() }, 48{ nameof(Boolean), InputType.CheckBox.ToString().ToLowerInvariant() }, 49{ nameof(Decimal), InputType.Text.ToString().ToLowerInvariant() }, 50{ nameof(String), InputType.Text.ToString().ToLowerInvariant() }, 293inputTypeHint = InputType.Text.ToString().ToLowerInvariant();
Microsoft.AspNetCore.OpenApi (10)
Extensions\JsonNodeSchemaExtensions.cs (10)
217schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes | JsonSchemaType.Null).ToString(); 258schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 269schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.Number.ToString(); 274schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.Integer.ToString(); 279schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 284schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.Boolean.ToString(); 289schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 294schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 410schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes & ~JsonSchemaType.Null).ToString(); 566schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes | JsonSchemaType.Null).ToString();
Microsoft.AspNetCore.Server.HttpSys (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
438_ => throw new NotImplementedException(input.ToString()),
Microsoft.AspNetCore.Server.IIS (3)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
src\aspnetcore\src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
51RuntimeInformation.ProcessArchitecture.ToString(),
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
438_ => throw new NotImplementedException(input.ToString()),
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Common\DotNetCommands.cs (1)
63var archSpecificDir = Path.Combine(dotnetDir, arch.ToString());
Common\RuntimeArchitectures.cs (1)
21_ => throw new NotImplementedException($"Unknown RuntimeInformation.OSArchitecture: {RuntimeInformation.OSArchitecture.ToString()}"),
TestMatrix.cs (1)
160throw new ArgumentException(server.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\Certificates\CertificateConfigLoader.cs (1)
327var storeName = string.IsNullOrEmpty(certInfo.Store) ? StoreName.My.ToString() : certInfo.Store;
Internal\Http3\Http3Formatting.cs (2)
21_ => type.ToString() 45_ => errorCode.ToString()
Internal\Infrastructure\KestrelEventSource.cs (2)
176TlsHandshakeStart(connectionContext.ConnectionId, sslOptions.EnabledSslProtocols.ToString()); 196var sslProtocols = feature?.Protocol.ToString() ?? string.Empty;
Internal\ThrowHelper.cs (1)
26return argument.ToString();
KestrelBadHttpRequestException.cs (1)
22=> throw GetException(reason, method.ToString().ToUpperInvariant());
KestrelServerOptions.cs (1)
375writer.WriteString(nameof(listenOptions.Protocols), listenOptions.Protocols.ToString());
ListenOptionsHttpsExtensions.cs (1)
121return listenOptions.UseHttps(CertificateLoader.LoadFromStoreCert(subject, storeName.ToString(), location, allowInvalid), configureOptions);
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
376if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (1)
87tags.Add("network.transport", localEndpoint.AddressFamily.ToString());
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
234throw new NotImplementedException(_state.ToString());
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
Microsoft.AspNetCore.SignalR.Common (1)
src\aspnetcore\src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
49return tokenType.ToString();
Microsoft.AspNetCore.SignalR.Core (1)
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (1)
87tags.Add("network.transport", localEndpoint.AddressFamily.ToString());
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\aspnetcore\src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
49return tokenType.ToString();
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
src\aspnetcore\src\SignalR\common\Shared\JsonUtils.cs (4)
78return JTokenType.Object.ToString(); 80return JTokenType.Array.ToString(); 82return JTokenType.Property.ToString(); 86return tokenType.ToString();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\aspnetcore\src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
49return tokenType.ToString();
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
183var exception = new NotImplementedException(preconditionState.ToString());
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
344var exception = new NotImplementedException(GetPreconditionState().ToString());
Microsoft.Build (12)
BackEnd\BuildManager\BuildManager.cs (1)
1424telemetry.LoggingServiceState = loggingService.ServiceState.ToString();
BackEnd\Client\MSBuildClient.cs (2)
261MSBuildEventSource.Log.MSBuildServerBuildStop(descriptiveCommandLine, _numConsoleWritePackets, _sizeOfConsoleWritePackets, _exitResult.MSBuildClientExitType.ToString(), _exitResult.MSBuildAppExitTypeString ?? string.Empty); 488CommunicationsUtilities.Trace($"Failed to send command packet of type '{packet?.Type.ToString() ?? "Unknown"}' to server: {ex}");
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
612$"Skipping process {process.Id} - NodeMode mismatch. Expected: {expectedNodeMode}, Found: {processNodeMode?.ToString() ?? "<null>"}. Command line: {commandLine}");
BackEnd\Components\Logging\BuildErrorTelemetryTracker.cs (1)
115buildTelemetry.FailureCategory = _primaryCategory.ToString();
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
663string cacheResultType = cacheResult?.ResultType.ToString() ?? nameof(CacheResultType.None);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
472throw new PlatformNotSupportedException(TaskRequirements.RequireSTAThread.ToString());
BackEnd\Node\OutOfProcNode.cs (1)
547MSBuildEventSource.Log.OutOfProcNodeShutDownStop(_shutdownReason.ToString());
BackEnd\Shared\TargetResult.cs (1)
183return ResultCode.ToString();
Evaluation\IntrinsicFunctions.cs (1)
695return Features.CheckFeatureAvailability(featureName).ToString();
Logging\ConsoleLogger.cs (1)
328KnownTelemetry.LoggingConfigurationTelemetry.ConsoleLoggerVerbosity = Verbosity.ToString();
Logging\FileLogger.cs (1)
91KnownTelemetry.LoggingConfigurationTelemetry.FileLoggerVerbosity = Verbosity.ToString();
Microsoft.Build.Framework (11)
AssemblyLoadBuildEventArgs.cs (1)
85RawMessage = FormatResourceStringIgnoreCodeAndKeyword(resourceName, LoadingContext.ToString(), loadingInitiator, AssemblyName, AssemblyPath, MVID.ToString(), AppDomainDescriptor ?? DefaultAppDomainDescriptor);
DebugUtils.cs (1)
124private static string GetProcessInfoString() => $"{(ProcessNodeMode.Value?.ToString() ?? "CentralNode")}_{EnvironmentUtilities.ProcessName}_PID={EnvironmentUtilities.CurrentProcessId}_x{(Environment.Is64BitProcess ? "64" : "86")}";
TargetSkippedEventArgs.cs (1)
181_ => SkipReason.ToString()
Telemetry\BuildCheckTelemetry.cs (2)
72properties["DefaultSeverity"] = buildCheckRuleTelemetryData.DefaultSeverity.ToString(); 78.Select(s => s.ToString()).ToCsvString(false);
Telemetry\CrashTelemetry.cs (4)
502telemetryItems.Add(nameof(ExitType), ExitType.ToString()); 517telemetryItems.Add(nameof(CrashOrigin), CrashOrigin.ToString()); 572AddIfNotNull(ExitType.ToString(), nameof(ExitType)); 587AddIfNotNull(CrashOrigin.ToString(), nameof(CrashOrigin));
Utilities\FileMatcher.cs (2)
2412throw new NotSupportedException(action.ToString()); 2462throw new NotSupportedException(excludeAction.ToString());
Microsoft.Build.Tasks.Core (7)
AssemblyDependency\GenerateBindingRedirects.cs (1)
311attributes.Add(new XAttribute("processorArchitecture", newProcessorArchitecture.ToString()));
AssemblyDependency\ResolveAssemblyReference.cs (2)
267return _warnOrErrorOnTargetArchitectureMismatch.ToString(); 2029location.AssemblyName.AssemblyName.ProcessorArchitecture.ToString(),
ManifestUtil\DeployManifest.cs (2)
532set => _updateMode = value.ToString(); 548set => _updateUnit = value.ToString();
ResolveSDKReference.cs (2)
1185ResolvedItem.SetMetadata("SupportsMultipleVersions", _supportsMultipleVersions.ToString()); 1451ResolvedItem.SetMetadata(SDKManifest.Attributes.SDKType, SDKType.ToString());
Microsoft.CodeAnalysis (15)
CodeGen\LocalSlotDebugInfo.cs (1)
39return SynthesizedKind.ToString() + " " + Id.ToString();
Compilation\Compilation.cs (3)
3792return string.Format("{0} ({1})", this.AssemblyName, stage.ToString()); 3798return string.Format("{0}: {1} {2} -> {3} {4}", this.AssemblyName, source.TypeKind.ToString(), source.Name, destination.TypeKind.ToString(), destination.Name);
Compilation\ParseOptions.cs (2)
84builder.Add(messageProvider.CreateDiagnostic(messageProvider.ERR_BadSourceCodeKind, Location.None, SpecifiedKind.ToString())); 89builder.Add(messageProvider.CreateDiagnostic(messageProvider.ERR_BadDocumentationMode, Location.None, DocumentationMode.ToString()));
Diagnostic\Location.cs (1)
97string result = Kind.ToString();
ExtendedSpecialType.cs (2)
67return ((SpecialType)_value).ToString(); 80return ((InternalSpecialType)_value).ToString();
InternalUtilities\JsonWriter.cs (2)
112Write(value.ToString()); 197Write(value.ToString());
PEWriter\MetadataWriter.PortablePdb.cs (2)
892WriteValue(CompilationOptionNames.OutputKind, module.OutputKind.ToString()); 924WriteValue(CompilationOptionNames.Platform, platform.ToString());
WellKnownTypes.cs (2)
799typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.'); 819Debug.Assert(expectedName == (startingOffset + i).ToString());
Microsoft.CodeAnalysis.Analyzers (9)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (2)
366=> isEnabledByDefault == false ? DisabledText : (defaultSeverity?.ToString() ?? UndetectedText); 467string arg2 = releaseTrackingLine.Kind.ToString();
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
81this.Title = fixAllScope.ToString();
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
88this.Title = fixAllScope.ToString();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (1)
287string.Format(CultureInfo.InvariantCulture, "L({0}) NL:{1}", LiteralValues.Count, NonLiteralState.ToString()[0]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.CodeStyle (7)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
36builder.Add(targetScope.ToString(), targetScope);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
171propertiesBuilder.Add(UnusedValuePreferenceKey, preference.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
212=> preference.ToString() + isRemovableAssignment;
Microsoft.CodeAnalysis.CSharp (29)
Binder\Semantics\Conversions\Conversion.cs (1)
1229return this.Kind.ToString();
Binder\Semantics\Operators\BinaryOperatorOverloadResolutionResult.cs (1)
101sb.AppendFormat("operator: {0} reason: {1}\n", result.Signature.ToString(), result.Kind.ToString());
Binder\Semantics\Operators\OperatorKindExtensions.cs (4)
411if (type != 0) b.Append(type.ToString()); 413if (op != 0) b.Append(op.ToString()); 423if (type != 0) b.Append(type.ToString()); 425if (op != 0) b.Append(op.ToString());
Binder\Semantics\Operators\UnaryOperatorOverloadResolutionResult.cs (1)
101sb.AppendFormat("operator: {0} reason: {1}\n", result.Signature.ToString(), result.Kind.ToString());
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1611sb.AppendFormat("method: {0} reason: {1}\n", result.Member.ToString(), result.Result.Kind.ToString());
BoundTree\BoundNode_Source.cs (4)
304append($" {unary.OperatorKind.ToString()} "); 344append(binary.OperatorKind.ToString()); 468_ => relationalPattern.Relation.ToString() 477appendLine(node.Kind.ToString());
Compilation\CSharpCompilation.cs (1)
4990writeValue(CompilationOptionNames.Nullable, Options.NullableContextOptions.ToString());
CSharpCompilationOptions.cs (4)
712builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadPlatformType, Platform.ToString())); 722builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadCompilationOptionValue, nameof(OutputKind), OutputKind.ToString())); 727builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadCompilationOptionValue, nameof(OptimizationLevel), OptimizationLevel.ToString())); 752builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadCompilationOptionValue, nameof(MetadataImportOptions), MetadataImportOptions.ToString()));
CSharpParseOptions.cs (1)
254builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadLanguageVersion, LanguageVersion.ToString()));
Errors\ErrorFacts.cs (6)
137string message = ResourceManager.GetString(code.ToString(), culture); 145string message = ResourceManager.GetString(code.ToString(), culture); 152return new LocalizableResourceString(code.ToString(), ResourceManager, typeof(ErrorFacts)); 157return new LocalizableResourceString(code.ToString() + s_titleSuffix, ResourceManager, typeof(ErrorFacts)); 162return new LocalizableResourceString(code.ToString() + s_descriptionSuffix, ResourceManager, typeof(ErrorFacts)); 184return ResourceManager.GetString(id.ToString(), culture);
FlowAnalysis\DefiniteAssignment.cs (1)
575Debug.Assert(newCode != oldCode || oldCode == ErrorCode.ERR_InsufficientStack, oldCode.ToString());
Symbols\Synthesized\SynthesizedLocal.cs (2)
210builder.Append(_kind.ToString()); 221builder.Append(_kind.ToString());
Syntax\CSharpSyntaxNode.cs (1)
548var kind = nodeOrToken.Kind().ToString();
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
67public override string KindText => this.Kind.ToString();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
143var properties = ImmutableDictionary<string, string?>.Empty.Add(nameof(ArrayCreationOperationLocation), operationLocation.ToString());
Microsoft.CodeAnalysis.CSharp.Features (2)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
76throw new System.NotSupportedException("Unexpected name kind: " + expression.Kind().ToString());
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
143var properties = ImmutableDictionary<string, string?>.Empty.Add(nameof(ArrayCreationOperationLocation), operationLocation.ToString());
Microsoft.CodeAnalysis.Features (20)
ChangeSignature\ChangeSignatureTelemetryLogger.cs (3)
187m[kv.Key.ToString()] = kv.Value.GetCount(); 193statistics.WriteTelemetryPropertiesTo(m, prefix: kv.Key.ToString()); 198kv.Value.WriteTelemetryPropertiesTo(m, prefix: kv.Key.ToString());
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (1)
171m[FixAllLogger.FixAllScope] = fixAllContext.State.Scope.ToString();
Completion\Log\CompletionProvidersLogger.cs (3)
91statistics.WriteTelemetryPropertiesTo(m, prefix: kv.Key.ToString()); 96m[kv.Key.ToString()] = kv.Value.GetCount(); 101kv.Value.WriteTelemetryPropertiesTo(m, prefix: kv.Key.ToString());
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
171=> CodeAction.Create(GetTitle(scope), c => ConvertToStructAsync(document, span, scope, isRecord, c), scope.ToString());
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
837[kind.ToString(), oldValue, newValue]); 902yield return CreateProjectRudeEdit(ProjectSettingKind.Platform, oldOptions.Platform.ToString(), newOptions.Platform.ToString()); 917yield return CreateProjectRudeEdit(ProjectSettingKind.OptimizationLevel, oldOptions.OptimizationLevel.ToString(), newOptions.OptimizationLevel.ToString());
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
139var change = kv.Key.ToString();
ExtractInterface\AbstractExtractInterfaceService.cs (1)
419Debug.Assert(false, string.Format(FeaturesResources.Unexpected_interface_member_kind_colon_0, member.Kind.ToString()));
QuickInfo\OnTheFlyDocsLogger.cs (1)
47m[kv.Key.ToString()] = kv.Value.GetCount();
Shared\Utilities\ExtractTypeHelpers.cs (1)
221Debug.Assert(false, string.Format(FeaturesResources.Unexpected_interface_member_kind_colon_0, member.Kind.ToString()));
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
36builder.Add(targetScope.ToString(), targetScope);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
171propertiesBuilder.Add(UnusedValuePreferenceKey, preference.ToString());
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
212=> preference.ToString() + isRemovableAssignment;
Microsoft.CodeAnalysis.NetAnalyzers (8)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructors.cs (1)
132builder.Add("Signature", missingCtorSignature.ToString());
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAttributesWithAttributeUsage.Fixer.cs (1)
46var attributeTargetValue = attributeTarget.ToString();
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsAnalyzer.cs (1)
38builder[nameof(RuleKind)] = ((RuleKind)i).ToString();
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.cs (2)
262dictBuilder.Add(ComputeTypePropertyKey, computeType.ToString()); 278dictBuilder.Add(ComputeTypePropertyKey, computeType.ToString());
Microsoft.NetCore.Analyzers\Runtime\DisposeMethodsShouldCallBaseClassDispose.cs (1)
108disposeMethodKind.ToString();
Microsoft.NetCore.Analyzers\Security\UseDefaultDllImportSearchPathsAttribute.cs (1)
140ruleArgument = ((DllImportSearchPath)validBits).ToString();
src\440320f3f10733a8\ValueContentAbstractValue.cs (1)
286string.Format(CultureInfo.InvariantCulture, "L({0}) NL:{1}", LiteralValues.Count, NonLiteralState.ToString()[0]);
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\Extensions\DefaultTagHelperHtmlAttributeIntermediateNode.cs (1)
80formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Extensions\DefaultTagHelperPropertyIntermediateNode.cs (1)
92formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Extensions\MetadataAttributeTargetExtension.cs (1)
99context.CodeWriter.Write(node.ChecksumAlgorithm.ToString());
Language\Extensions\PreallocatedTagHelperHtmlAttributeValueIntermediateNode.cs (1)
82formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Extensions\PreallocatedTagHelperPropertyIntermediateNode.cs (1)
89formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Extensions\PreallocatedTagHelperPropertyValueIntermediateNode.cs (1)
61formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Intermediate\ComponentAttributeIntermediateNode.cs (1)
182formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Intermediate\TagHelperDirectiveAttributeIntermediateNode.cs (1)
41formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Intermediate\TagHelperDirectiveAttributeParameterIntermediateNode.cs (1)
40formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Intermediate\TagHelperHtmlAttributeIntermediateNode.cs (1)
21formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Intermediate\TagHelperIntermediateNode.cs (1)
30formatter.WriteProperty(nameof(TagMode), TagMode.ToString());
Language\Intermediate\TagHelperPropertyIntermediateNode.cs (1)
35formatter.WriteProperty(nameof(AttributeStructure), AttributeStructure.ToString());
Language\Legacy\CSharpCodeParser.cs (1)
1643tokenDescriptor.Kind.ToString().ToLowerInvariant()));
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.VisualBasic (24)
Compilation\SemanticModel.vb (5)
3588Return String.Format("{0}: {1} ({2})", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position) 3593Return String.Format("{0}: {1} ({2}) at {3}", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position, position) 3613Return String.Format("{0}: {1} ({2}) at {3} ({4})", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, position, [option].ToString()) 3617Return String.Format("{0}: {1} at {2} ({3})", Me.SyntaxTree.FilePath, name, position, [option].ToString()) 3622Return String.Format("{0}: {1} {2} at {3}", Me.SyntaxTree.FilePath, symbol.Kind.ToString(), symbol.Name, position)
Compilation\VisualBasicCompilation.vb (1)
763WriteValue(builder, CompilationOptionNames.OptionStrict, Options.OptionStrict.ToString())
Errors\ErrorFactories.vb (4)
104Return ResourceManager.GetString(id.ToString(), language) 108Return New LocalizableResourceString(id.ToString(), ResourceManager, GetType(ErrorFactory)) 112Return New LocalizableResourceString(id.ToString() + s_titleSuffix, ResourceManager, GetType(ErrorFactory)) 116Return New LocalizableResourceString(id.ToString() + s_descriptionSuffix, ResourceManager, GetType(ErrorFactory))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
376Debug.Assert(Not expr.IsLValue, "stack spilling for lvalue: " + expr.Kind.ToString())
Parser\Parser.vb (2)
763Debug.Assert(False, "Unexpected terminator: " & CurrentToken.Kind.ToString()) 1185Debug.Assert(False, "Unexpected terminator: " & CurrentToken.Kind.ToString())
Semantics\Conversions.vb (1)
281Return _convKind.ToString()
Symbols\NamespaceExtent.vb (1)
73Return String.Format("{0}: {1}", Kind.ToString(), _symbolOrCompilation.ToString())
Syntax\InternalSyntax\SyntaxNode.vb (2)
28Return Me.Kind.ToString() 190Return Kind.ToString & ":" & text
VisualBasicCompilationOptions.vb (6)
1035builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(Platform), Platform.ToString())) 1043builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OutputKind), OutputKind.ToString())) 1047builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OptimizationLevel), OptimizationLevel.ToString())) 1063builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OptionStrict), OptionStrict.ToString())) 1068builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_LibAnycpu32bitPreferredConflict, NameOf(Platform), Platform.ToString())) 1072builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(MetadataImportOptions), MetadataImportOptions.ToString()))
VisualBasicParseOptions.vb (1)
250builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_BadLanguageVersion, LanguageVersion.ToString))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
996Debug.Assert(name IsNot Nothing, "Unexpected node type " + node.Kind().ToString())
Microsoft.CodeAnalysis.VisualBasic.Features (2)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (2)
2400Yield CreateProjectRudeEdit(ProjectSettingKind.OptionStrict, oldVBOptions.OptionStrict.ToString(), newVBOptions.OptionStrict.ToString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
996Debug.Assert(name IsNot Nothing, "Unexpected node type " + node.Kind().ToString())
Microsoft.CodeAnalysis.Workspaces (17)
CodeFixesAndRefactorings\FixAllLogger.cs (1)
78m[FixAllScope] = fixAllState.Scope.ToString();
Differencing\Edit.cs (1)
93var result = Kind.ToString();
Differencing\SequenceEdit.cs (1)
74var result = Kind.ToString();
Editing\DeclarationModifiers.cs (1)
246=> Modifiers.ToString();
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
104=> new(typeCode.ToString(), IsComplexType: false, IsArray: false);
Log\FunctionIdExtensions.cs (1)
14() => Enum.GetValues<FunctionId>().ToImmutableDictionary(f => f, f => f.ToString()));
Log\RoslynEventSource.cs (1)
132output.AppendLine(goal.ToString());
Log\TraceLogger.cs (3)
22=> Trace.WriteLine(string.Format("[{0}] {1} - {2}", Environment.CurrentManagedThreadId, functionId.ToString(), logMessage.GetMessage())); 25=> Trace.WriteLine(string.Format("[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage())); 29var functionString = functionId.ToString() + (cancellationToken.IsCancellationRequested ? " Canceled" : string.Empty);
Log\WorkspaceStructureLogger.cs (1)
192new XAttribute("severity", diagnostic.Severity.ToString()),
Serialization\SerializerService.cs (1)
36private static readonly Func<WellKnownSynchronizationKind, string> s_logKind = k => k.ToString();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Errors\ErrorFacts.cs (2)
198Debug.Fail("Missing resources for the error " + code.ToString()); 208string idStr = id.ToString();
Microsoft.Diagnostics.DataContractReader (1)
ContractDescriptorTarget.cs (1)
213types[DataType.pointer.ToString()] = new TypeInfo { Size = (uint)_config.PointerSize };
Microsoft.Diagnostics.DataContractReader.Contracts (5)
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (2)
71return frameType.ToString(); 78if (_target.TryReadGlobalPointer(frameType.ToString() + "Identifier", out TargetPointer? id))
DataType.cs (1)
234=> target.GetTypeInfo(type.ToString());
src\runtime\src\coreclr\tools\Common\CallingConvention\TransitionBlock.cs (2)
51throw new NotImplementedException(arch.ToString()); 257throw new NotImplementedException(Architecture.ToString());
Microsoft.Diagnostics.DataContractReader.Legacy (4)
SOSDacImpl.cs (3)
6491entries[i] = (heapTypes[i], Marshal.StringToHGlobalAnsi(heapTypes[i].ToString())); 6511? vcsType.Fields.ContainsKey(entry.HeapType.ToString()) 6512: laType.Fields.ContainsKey(entry.HeapType.ToString());
SOSDacImpl.IXCLRDataProcess.cs (1)
350return codeKind.ToString();
Microsoft.DotNet.ApiCompatibility (1)
CompatDifference.cs (1)
93hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(Type.ToString().ToLowerInvariant());
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
280if (!string.Equals(architecture, RuntimeInformation.OSArchitecture.ToString(), StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Manifest (1)
ArtifactModel.cs (1)
71Attributes[nameof(Visibility)] = value.ToString();
Microsoft.DotNet.Build.Tasks.Packaging (1)
NuGetUtility.cs (1)
118public void Log(LogLevel level, string data) => _log.LogMessage($"{level.ToString()} - {data}");
Microsoft.DotNet.CodeAnalysis (9)
Analyzers\AppContextDefaultsAnalyzer.cs (6)
27new DiagnosticDescriptor(DiagnosticIds.BCL0010.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueNotInitializedToTrue, DiagnosticIds.BCL0010.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description); 30new DiagnosticDescriptor(DiagnosticIds.BCL0011.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueInsideUnexpectedIfCondition, DiagnosticIds.BCL0011.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description); 33new DiagnosticDescriptor(DiagnosticIds.BCL0012.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueDefinedOutsideIfCondition, DiagnosticIds.BCL0012.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description);
Analyzers\MembersMustExistAnalyzer.cs (1)
26new DiagnosticDescriptor(DiagnosticIds.BCL0001.ToString(), s_title, s_messageFormat, s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description, customTags: WellKnownDiagnosticTags.CompilationEnd);
Analyzers\PinvokeAnalyzer.cs (1)
24private static DiagnosticDescriptor InvalidPinvokeCall = new DiagnosticDescriptor(DiagnosticIds.BCL0015.ToString(), Title, MessageFormat, AnalyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
Analyzers\ResourceUsageAnalyzer.cs (1)
19private static DiagnosticDescriptor InvalidSRFormatCall = new DiagnosticDescriptor(DiagnosticIds.BCL0020.ToString(), Title, "", AnalyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
Microsoft.DotNet.HotReload.Utils.Generator (1)
BaselineProject.cs (1)
53() => new([.. capabilities.ToString().Split(", ")]));
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (1)
HotReloadDeltaGeneratorComputeScriptOutputs.cs (1)
100result[index] = new TaskItem(name, new Dictionary<string,string> { { deltaOutputTypeMetadata, outputType.ToString() } });
Microsoft.DotNet.HotReload.Watch (1)
UI\ConsoleInputReader.cs (1)
66var keyDisplay = (key.Modifiers == ConsoleModifiers.None) ? key.KeyChar.ToString() : key.Key.ToString();
Microsoft.DotNet.TemplateLocator (2)
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
79$"_{currentArchitecture.ToString().ToUpperInvariant()}" :
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadInstallType.cs (1)
36var architecture = RuntimeInformation.ProcessArchitecture.ToString();
Microsoft.Extensions.AI.Evaluation.Console (2)
Commands\ReportCommand.cs (1)
40[PropertyNames.Format] = format.ToString(),
Telemetry\TelemetryHelper.cs (1)
52[TelemetryConstants.PropertyNames.OSPlatform] = Environment.OSVersion.Platform.ToString(),
Microsoft.Extensions.AI.Evaluation.Safety (6)
CodeVulnerabilityEvaluator.cs (1)
62contentSafetyServicePayloadFormat: ContentSafetyServicePayloadFormat.ContextCompletion.ToString(),
ContentHarmEvaluator.cs (1)
64contentSafetyServicePayloadFormat: ContentSafetyServicePayloadFormat.Conversation.ToString(),
GroundednessProEvaluator.cs (1)
63contentSafetyServicePayloadFormat: ContentSafetyServicePayloadFormat.QuestionAnswer.ToString(),
ProtectedMaterialEvaluator.cs (2)
84contentSafetyServicePayloadFormat: ContentSafetyServicePayloadFormat.HumanSystem.ToString(), 98contentSafetyServicePayloadFormat: ContentSafetyServicePayloadFormat.Conversation.ToString(),
UngroundedAttributesEvaluator.cs (1)
67contentSafetyServicePayloadFormat: ContentSafetyServicePayloadFormat.QueryResponse.ToString(),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (2)
737_ => new ChatRole(role.ToString()), 805finishReason?.ToString() is not string s ? null :
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientTests.cs (1)
6160return status.ToString().ToLowerInvariant();
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
128Assert.Contains(v.ToString(), message.Text); // All enum values are described as strings
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Specs\TypeIndex.cs (1)
93string proxyTypeNameStr = lastDotIndex >= 0 ? $"{typeFNQ.Substring(0, lastDotIndex + 1)}{genericProxyTypeName}" : genericProxyTypeName.ToString();
Microsoft.Extensions.DataIngestion (1)
IngestionPipeline.cs (1)
91.SetTag(ProcessDirectory.SearchOptionTagName, searchOption.ToString());
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
HttpExceptionSummaryProvider.cs (2)
46var name = socketError.ToString(); 61var name = status.ToString();
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (7)
ExceptionSummarizerTests.cs (5)
105var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString())); 123var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString())); 143var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals(WebExceptionStatus.ConnectFailure.ToString())); 163.FindIndex(x => x.Equals(WebExceptionStatus.RequestCanceled.ToString())); 186var descriptionIndex = _httpDescriptions.FindIndex(x => x.Equals(SocketError.TimedOut.ToString()));
HttpExceptionSummaryProviderTests.cs (2)
75Assert.Equal(webExceptionStatus.ToString(), _exceptionSummaryProvider.Descriptions[descriptionIndex]); 97Assert.Equal(socketError.ToString(), _exceptionSummaryProvider.Descriptions[descriptionIndex]);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
Metric.cs (2)
18=> counterMetric.Add(1, status.ToString()); 21=> counterMetric.Add(1, name, status.ToString());
TelemetryHealthCheckPublisher.cs (1)
70.Append(entry.Value.Status.ToString())
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (7)
TelemetryHealthChecksPublisherTests.cs (7)
31HealthStatus.Healthy.ToString() 39HealthStatus.Degraded.ToString() 47HealthStatus.Unhealthy.ToString() 55HealthStatus.Healthy.ToString() 63HealthStatus.Unhealthy.ToString() 72HealthStatus.Unhealthy.ToString() 123Assert.Equal(1, GetValue(unhealthyCounters, GetKey(i), healthStatuses[i].ToString()));
Microsoft.Extensions.Http.Resilience.PerformanceTests (2)
HedgingBenchmark.cs (1)
25_client = factory.CreateClient(Type.ToString());
HttpClientFactory.cs (1)
67var clientBuilder = services.AddHttpClient(clientType.ToString(), client => client.Timeout = Timeout.InfiniteTimeSpan);
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLogger.cs (1)
41builder.Append(logLevel.ToString());
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Resolver\DnsResolver.Telemetry.cs (3)
46var errorTypeTag = KeyValuePair.Create("error.type", (object?)error.ToString()); 71_activity.SetTag("dns.question.type", queryType.ToString()); 103_activity.SetTag("error.type", error.ToString());
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (1)
37var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.Gen.Metrics.Generated.Tests (28)
MetricTests.cs (16)
369("Operations", histogramStruct.Operations.ToString()), 370("Operations_FromAttribute", histogramStruct.Operations2.ToString()) 411("OperationsEnum", histogramDimensionsTest.OperationsEnum.ToString()), 412("Enum2", histogramDimensionsTest.OperationsEnum2.ToString()), 434("OperationsEnum", histogramDimensionsTest.OperationsEnum.ToString()), 435("Enum2", histogramDimensionsTest.OperationsEnum2.ToString()), 457("OperationsEnum", histogramDimensionsTest.OperationsEnum.ToString()), 458("Enum2", histogramDimensionsTest.OperationsEnum2.ToString()), 512("Operations", counterStruct.Operations.ToString()), 513("Operations_FromAttribute", counterStruct.Operations2.ToString()) 554("OperationsEnum", counterDimensionsTest.OperationsEnum.ToString()), 555("Enum2", counterDimensionsTest.OperationsEnum2.ToString()), 577("OperationsEnum", counterDimensionsTest.OperationsEnum.ToString()), 578("Enum2", counterDimensionsTest.OperationsEnum2.ToString()), 599("OperationsEnum", counterDimensionsTest.OperationsEnum.ToString()), 600("Enum2", counterDimensionsTest.OperationsEnum2.ToString()),
MetricTests.Ext.cs (12)
174("OperationsEnum", histogramDimensionsTest.OperationsEnum.ToString()), 175("Enum2", histogramDimensionsTest.OperationsEnum2.ToString()), 196("OperationsEnum", histogramDimensionsTest.OperationsEnum.ToString()), 197("Enum2", histogramDimensionsTest.OperationsEnum2.ToString()), 218("OperationsEnum", histogramDimensionsTest.OperationsEnum.ToString()), 219("Enum2", histogramDimensionsTest.OperationsEnum2.ToString()), 267("OperationsEnum", counterDimensionsTest.OperationsEnum.ToString()), 268("Enum2", counterDimensionsTest.OperationsEnum2.ToString()), 289("OperationsEnum", counterDimensionsTest.OperationsEnum.ToString()), 290("Enum2", counterDimensionsTest.OperationsEnum2.ToString()), 311("OperationsEnum", counterDimensionsTest.OperationsEnum.ToString()), 312("Enum2", counterDimensionsTest.OperationsEnum2.ToString()),
Microsoft.Interop.JavaScript.JSImportGenerator (1)
SignatureBindingHelpers.cs (1)
36return IdentifierName(Constants.JSMarshalerTypeGlobalDot + marshalerType.ToString());
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
85properties.Add(CharSet, dllImportData.CharacterSet.ToString());
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
36builder.Add(MarshalModeKey, mode.ToString());
LibraryImportGenerator.cs (1)
500IdentifierName(value.ToString()));
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
434IdentifierName(value.ToString()));
Microsoft.Interop.SourceGeneration (4)
ISymbolExtensions.cs (2)
20details = string.Format(SR.TypeAccessibilityDetails, symbol.ToDisplayString(), symbol.DeclaredAccessibility.ToString().ToLowerInvariant()); 28details = string.Format(SR.ContainingTypeAccessibilityDetails, current.ToDisplayString(), current.DeclaredAccessibility.ToString().ToLowerInvariant());
MarshalAsParser.cs (1)
210_diagnostics.ReportConfigurationNotSupported(attributeData, nameof(UnmanagedType), unmanagedType.ToString());
MarshalAsWithCustomMarshallersParser.cs (1)
55_diagnostics.ReportConfigurationNotSupported(attributeData, nameof(UnmanagedType), arrayInfo.UnmanagedType.ToString());
Microsoft.Maui (6)
Converters\FlexEnumsConverters.cs (6)
44 return fj.ToString(); 79 return fd.ToString(); 118 return fac.ToString(); 153 return fai.ToString(); 188 return fes.ToString(); 221 return fw.ToString();
Microsoft.Maui.Controls (1)
FlowDirectionConverter.cs (1)
39 return direction.ToString();
Microsoft.Maui.Graphics (1)
Text\XmlAttributedTextWriter.cs (1)
87 WriteAttribute(writer, key.ToString(), value);
Microsoft.ML.AutoML (28)
AutoMLExperiment\IMetricManager.cs (3)
52public string MetricName => Metric.ToString(); 91public string MetricName => Metric.ToString(); 126public string MetricName => Metric.ToString();
EstimatorExtensions\EstimatorExtensions.cs (14)
18var pipelineNode = new PipelineNode(EstimatorName.ColumnConcatenating.ToString(), 39var pipelineNode = new PipelineNode(EstimatorName.ColumnCopying.ToString(), 60var pipelineNode = new PipelineNode(EstimatorName.KeyToValueMapping.ToString(), 81var pipelineNode = new PipelineNode(EstimatorName.Hashing.ToString(), 102var pipelineNode = new PipelineNode(EstimatorName.MissingValueIndicating.ToString(), 129var pipelineNode = new PipelineNode(EstimatorName.MissingValueReplacing.ToString(), 156var pipelineNode = new PipelineNode(EstimatorName.Normalizing.ToString(), 177var pipelineNode = new PipelineNode(EstimatorName.OneHotEncoding.ToString(), 208var pipelineNode = new PipelineNode(EstimatorName.OneHotHashEncoding.ToString(), 234var pipelineNode = new PipelineNode(EstimatorName.TextFeaturizing.ToString(), 255var pipelineNode = new PipelineNode(EstimatorName.TypeConverting.ToString(), 281var pipelineNode = new PipelineNode(EstimatorName.ValueToKeyMapping.ToString(), 308var pipelineNode = new PipelineNode(EstimatorName.RawByteImageLoading.ToString(), PipelineNodeType.Transform, inColumn, outColumn, pipelineNodeProperty); 333var pipelineNode = new PipelineNode(EstimatorName.ImageLoading.ToString(), PipelineNodeType.Transform, inColumn, outColumn, pipelineNodeProperty);
Experiment\SuggestedPipelineRunDetails\SuggestedPipelineCrossValRunDetail.cs (1)
51return new CrossValidationRunDetail<TMetrics>(Pipeline.Trainer.TrainerName.ToString(), estimator,
Experiment\SuggestedPipelineRunDetails\SuggestedPipelineRunDetail.cs (1)
55return new RunDetail<TMetrics>(Pipeline.Trainer.TrainerName.ToString(), estimator,
SweepableEstimator\SweepableEstimatorPipeline.cs (1)
91var estimatorName = _estimators.Select(e => e.EstimatorType.ToString());
SweepableEstimator\SweepablePipeline.cs (1)
163return estimator.EstimatorType.ToString();
TrainerExtensions\TrainerExtensionUtil.cs (3)
105Name = TrainerName.Ova.ToString(), 130return new PipelineNode(trainerName.ToString(), PipelineNodeType.Trainer, DefaultColumnNames.Features, 137return new PipelineNode(trainerName.ToString(), PipelineNodeType.Trainer, DefaultColumnNames.Features,
Tuner\AutoZeroTuner.cs (4)
39var trainerEstimators = _sweepablePipeline.Estimators.Where(e => e.Value.EstimatorType.IsTrainer()).Select(e => e.Value.EstimatorType.ToString()).ToList(); 49BinaryMetricManager bm => bm.Metric.ToString(), 50MultiClassMetricManager mm => mm.Metric.ToString(), 51RegressionMetricManager rm => rm.Metric.ToString(),
Microsoft.ML.AutoML.Tests (1)
SuggestedPipelineBuilderTests.cs (1)
41Assert.Equal(EstimatorName.Normalizing.ToString(),
Microsoft.ML.CodeGenerator (20)
CodeGenerator\CSharp\AzureCodeGenerator\AzureAttachConsoleAppCodeGenerator.cs (1)
89TaskType = _settings.MlTask.ToString(),
CodeGenerator\CSharp\CodeGenerator.cs (19)
27private static readonly HashSet<string> _recommendationTrainers = new HashSet<string>() { TrainerName.MatrixFactorization.ToString() }; 28private static readonly HashSet<string> _lightGbmTrainers = new HashSet<string>() { TrainerName.LightGbmBinary.ToString(), TrainerName.LightGbmMulti.ToString(), 29TrainerName.LightGbmRegression.ToString(), TrainerName.LightGbmRanking.ToString() }; 30private static readonly HashSet<string> _mklComponentsTrainers = new HashSet<string>() { TrainerName.OlsRegression.ToString(), TrainerName.SymbolicSgdLogisticRegressionBinary.ToString() }; 31private static readonly HashSet<string> _fastTreeTrainers = new HashSet<string>() { TrainerName.FastForestBinary.ToString(), TrainerName.FastForestRegression.ToString(), 32TrainerName.FastTreeBinary.ToString(), TrainerName.FastTreeRegression.ToString(), TrainerName.FastTreeTweedieRegression.ToString(), TrainerName.FastTreeRanking.ToString() }; 33private static readonly HashSet<string> _imageTransformers = new HashSet<string>() { EstimatorName.RawByteImageLoading.ToString() }; 34private static readonly HashSet<string> _imageClassificationTrainers = new HashSet<string>() { TrainerName.ImageClassification.ToString() }; 106if (currentNode.Name == TrainerName.Ova.ToString()) 299TaskType = _settings.MlTask.ToString(), 350TaskType = _settings.MlTask.ToString(), 384TaskType = _settings.MlTask.ToString(),
Microsoft.ML.CodeGenerator.Tests (2)
ApprovalTests\ConsoleCodeGeneratorTests.cs (2)
678var loadImageNode = new PipelineNode(EstimatorName.ImageLoading.ToString(), PipelineNodeType.Transform, "ImagePath", "input"); 766var loadImageNode = new PipelineNode(EstimatorName.ImageLoading.ToString(), PipelineNodeType.Transform, "ImageSource", "ImageSource_featurized");
Microsoft.ML.Ensemble (2)
OutputCombiners\MultiWeightedAverage.cs (1)
53public string WeightageMetricName { get { return _weightageKind.ToString(); } }
OutputCombiners\WeightedAverage.cs (1)
51public string WeightageMetricName { get { return _weightageKind.ToString(); } }
Microsoft.ML.EntryPoints (7)
JsonUtils\JsonManifestUtils.cs (7)
76jField[FieldNames.Type] = typeEnum.ToString(); 337jo[FieldNames.Kind] = TlcModule.DataKind.Array.ToString(); 361return typeEnum.ToString(); 364jo[FieldNames.Kind] = typeEnum.ToString(); 370jo[FieldNames.Kind] = typeEnum.ToString(); 375jo[FieldNames.Kind] = typeEnum.ToString(); 384jo[FieldNames.Kind] = typeEnum.ToString();
Microsoft.ML.FastTree (2)
Utils\Timer.cs (2)
168padded = n.ToString().PadRight(MaxEventNameLen); 179padded = n.ToString().PadRight(MaxEventNameLen);
Microsoft.ML.ImageAnalytics (1)
ImagePixelExtractor.cs (1)
545var str = order.ToString().ToLowerInvariant();
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
36.Add(NameProperty, text).Add(DesiredNameProperty, desired.ToString());
Microsoft.ML.LightGbm (4)
LightGbmBinaryTrainer.cs (1)
187res[GetOptionName(nameof(EvaluateMetricType))] = GetOptionName(EvaluationMetric.ToString());
LightGbmMulticlassTrainer.cs (1)
128res[GetOptionName(nameof(EvaluateMetricType))] = GetOptionName(EvaluationMetric.ToString());
LightGbmRankingTrainer.cs (1)
170res[GetOptionName(nameof(EvaluateMetricType))] = GetOptionName(EvaluationMetric.ToString());
LightGbmRegressionTrainer.cs (1)
153res[GetOptionName(nameof(EvaluateMetricType))] = GetOptionName(EvaluationMetric.ToString());
Microsoft.ML.OnnxTransformer (4)
OnnxTypeParser.cs (4)
69throw Contracts.Except("Unsupported ONNX scalar type: " + dataType.ToString()); 157throw Contracts.Except("Unsupported ONNX scalar type: " + dataType.ToString()); 224var oneOfFieldName = typeProto.ValueCase.ToString(); 289var oneOfFieldName = typeProto.ValueCase.ToString();
Microsoft.ML.TestFramework (2)
BaseTestPredictorsMaml.cs (2)
53: base(test, predictor.Trainer.Kind, GetNamePrefix(cmd.ToString(), predictor, dataset, extraTag), predictor.BaselineProgress) 168TestCore(ctx, ctx.Command.ToString(), runcmd, digitsOfPrecision: digitsOfPrecision, parseOption: parseOption);
Microsoft.ML.Tokenizers (1)
Model\TiktokenTokenizer.cs (1)
1236throw new NotSupportedException($"The model '{modelName ?? modelEncoding.ToString()}' is not supported.");
Microsoft.ML.Transforms (7)
Expression\Printer.cs (2)
307_wrt.Write(node.ExprType.ToString()); 318_wrt.Write(node.ExprType.ToString());
Expression\Tokens.cs (1)
60return Kind.ToString();
OneHotEncoding.cs (1)
67string extra = OutputKind.Value.ToString();
Text\StopWordsRemovingTransformer.cs (2)
172.ToDictionary(lang => lang.ToString().AsMemory(), new ReadOnlyMemoryUtils.ReadonlyMemoryCharComparer()); 344return assembly.GetManifestResourceStream($"{assembly.GetName().Name}.Text.StopWords.{lang.ToString()}.txt");
Text\TextFeaturizingEstimator.cs (1)
320=> (StopWordsRemovingEstimator.Language)Enum.Parse(typeof(StopWordsRemovingEstimator.Language), Language.ToString());
Microsoft.ML.Vision (3)
ImageClassificationTrainer.cs (3)
173return $"Phase: Training, Dataset used: {DatasetUsed.ToString(),10}, Batch Processed Count: {BatchProcessedCount,3}, " + 176return $"Phase: Training, Dataset used: {DatasetUsed.ToString(),10}, Batch Processed Count: {BatchProcessedCount,3}, " + 202public override string ToString() => $"Phase: Bottleneck Computation, Dataset used: {DatasetUsed.ToString(),10}, Image Index: {Index,3}";
Microsoft.NET.Build.Containers (8)
Exceptions\ContainerHttpException.cs (1)
13: base($"{ErrorPrefix} {message}\nURI: {targetUri ?? "Unknown"}\nHTTP status code: {statusCode?.ToString() ?? "Unknown"}")
LocalDaemons\ContainerRuntime.cs (1)
138=> string.Format(Strings.DockerCli_PushInfo, _runtime?.GetTelemetryValue().ToString());
Tasks\ComputeDotnetBaseImageAndTag.cs (2)
356{ nameof(telemetryData.ProjectType), telemetryData.ProjectType.ToString() }, 357{ nameof(telemetryData.PublishMode), telemetryData.PublishMode.ToString() },
Telemetry.cs (4)
66{ nameof(Context.RemotePullType), Context.RemotePullType?.ToString() }, 67{ nameof(Context.LocalPullType), Context.LocalPullType?.ToString() }, 68{ nameof(Context.RemotePushType), Context.RemotePushType?.ToString() }, 69{ nameof(Context.LocalPushType), Context.LocalPushType?.ToString() }
Microsoft.NET.Build.Extensions.Tasks (1)
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
236item.SetMetadata(nameof(ConflictItemType), conflict.ItemType.ToString());
Microsoft.NET.Build.Tasks (9)
LockFileCache.cs (1)
126code: message.Code == NuGetLogCode.Undefined ? default : message.Code.ToString(),
ProcessFrameworkReferences.cs (1)
830var packName = toolPackType.ToString();
ResolveCopyLocalAssets.cs (1)
79item.SetMetadata(MetadataKeys.AssetType, resolvedFile.Asset.ToString().ToLowerInvariant());
ResolvePackageAssets.cs (2)
1267WriteMetadata(MetadataKeys.DiagnosticCode, message.Code.ToString()); 1498diagnosticLevel = level.ToString();
ResolvePackageDependencies.cs (1)
382item.SetMetadata(MetadataKeys.FileGroup, fileGroup.ToString());
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
79$"_{currentArchitecture.ToString().ToUpperInvariant()}" :
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadInstallType.cs (1)
36var architecture = RuntimeInformation.ProcessArchitecture.ToString();
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
236item.SetMetadata(nameof(ConflictItemType), conflict.ItemType.ToString());
Microsoft.NET.HostModel (1)
Bundle\TargetInfo.cs (1)
99string arch = Arch.ToString().ToLowerInvariant();
Microsoft.Net.Http.Headers (3)
SetCookieHeaderValue.cs (3)
28private static readonly string SameSiteNoneToken = SameSiteMode.None.ToString().ToLowerInvariant(); 29private static readonly string SameSiteLaxToken = SameSiteMode.Lax.ToString().ToLowerInvariant(); 30private static readonly string SameSiteStrictToken = SameSiteMode.Strict.ToString().ToLowerInvariant();
Microsoft.NET.Sdk.Publish.Tasks (53)
MsDeploy\CommonUtility.cs (28)
830string objectName = item.GetMetadata(ReplaceRuleMetadata.ObjectName.ToString()); 831string matchRegularExpression = item.GetMetadata(ReplaceRuleMetadata.Match.ToString()); 832string replaceWith = item.GetMetadata(ReplaceRuleMetadata.Replace.ToString()); 833string scopeAttributeName = item.GetMetadata(ReplaceRuleMetadata.ScopeAttributeName.ToString()); 834string scopeAttributeValue = item.GetMetadata(ReplaceRuleMetadata.ScopeAttributeValue.ToString()); 835string targetAttributeName = item.GetMetadata(ReplaceRuleMetadata.TargetAttributeName.ToString()); 921string element = item.GetMetadata(ExistingParameterValidationMetadata.Element.ToString()); 924string kind = item.GetMetadata(DeclareParameterMetadata.Kind.ToString()); 925string scope = item.GetMetadata(DeclareParameterMetadata.Scope.ToString()); 926string matchRegularExpression = item.GetMetadata(DeclareParameterMetadata.Match.ToString()); 927string description = item.GetMetadata(DeclareParameterMetadata.Description.ToString()); 928string defaultValue = item.GetMetadata(DeclareParameterMetadata.DefaultValue.ToString()); 929string tags = item.GetMetadata(DeclareParameterMetadata.Tags.ToString()); 967string validationString = item.GetMetadata(ExistingParameterValidationMetadata.ValidationString.ToString()); 1015IList<Framework.ITaskItem> items = SortParametersTaskItems(originalItems, fOptimisticPickNextDefaultValue, DeclareParameterMetadata.DefaultValue.ToString()); 1074IList<Framework.ITaskItem> items = SortParametersTaskItems(originalItems, fOptimisticPickNextDefaultValue, SimpleSyncParameterMetadata.Value.ToString()); 1083string value = item.GetMetadata(SimpleSyncParameterMetadata.Value.ToString()); 1274IList<Framework.ITaskItem> items = SortParametersTaskItems(originalItems, fOptimisticPickNextDefaultValue, SyncParameterMetadata.DefaultValue.ToString()); 1280string kind = item.GetMetadata(SyncParameterMetadata.Kind.ToString()); 1281string scope = item.GetMetadata(SyncParameterMetadata.Scope.ToString()); 1282string matchRegularExpression = item.GetMetadata(SyncParameterMetadata.Match.ToString()); 1283string value = item.GetMetadata(SyncParameterMetadata.Value.ToString()); 1284string description = item.GetMetadata(SyncParameterMetadata.Description.ToString()); 1285string defaultValue = item.GetMetadata(SyncParameterMetadata.DefaultValue.ToString()); 1286string tags = item.GetMetadata(SyncParameterMetadata.Tags.ToString()); 1287string element = item.GetMetadata(ExistingParameterValidationMetadata.Element.ToString()); 1290string validationString = item.GetMetadata(ExistingParameterValidationMetadata.ValidationString.ToString()); 1932string metadataName = PipelineMetadata.Exclude.ToString();
MsDeploy\VsMSDeployObject.cs (1)
295m_NameValueDictionary.Add(expressMetadata.ToString(), value);
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
79$"_{currentArchitecture.ToString().ToUpperInvariant()}" :
Tasks\MsDeploy\CreateParameterFile.cs (16)
61private static readonly string[] s_parameterAttributes = {DeclareParameterMetadata.Description.ToString().ToLowerInvariant(), 63DeclareParameterMetadata.Tags.ToString().ToLowerInvariant(), }; 64private static readonly string[] s_setParameterAttributes = { SyncParameterMetadata.Description.ToString().ToLowerInvariant(), 65SyncParameterMetadata.Value.ToString().ToLowerInvariant(), 66SyncParameterMetadata.Tags.ToString().ToLowerInvariant(),}; 67private static readonly string[] s_parameterEntryIdentities = { ExistingParameterValidationMetadata.Element.ToString().ToLowerInvariant(), 68ExistingDeclareParameterMetadata.Kind.ToString().ToLowerInvariant(), 69ExistingDeclareParameterMetadata.Scope.ToString().ToLowerInvariant(), 70ExistingDeclareParameterMetadata.Match.ToString().ToLowerInvariant(),}; 72private static readonly string[] s_parameterValidationIdentities = { ExistingParameterValidationMetadata.Element.ToString().ToLowerInvariant(), 73ExistingParameterValidationMetadata.Kind.ToString().ToLowerInvariant(), 84WriteDeclareParametersToFile(loggingHelper, parameters, s_parameterAttributes, outputFileName, foptimisticParameterDefaultValue, DeclareParameterMetadata.DefaultValue.ToString()); 89WriteDeclareParametersToFile(loggingHelper, parameters, s_setParameterAttributes, outputFileName, foptimisticParameterDefaultValue, SyncParameterMetadata.Value.ToString()); 132string elementValue = item.GetMetadata(ExistingParameterValidationMetadata.Element.ToString()); 155if (string.Equals(parameterIdentities[i], ExistingDeclareParameterMetadata.Match.ToString().ToLowerInvariant())) 241= Utility.SortParametersTaskItems(parameters, foptimisticParameterDefaultValue, SimpleSyncParameterMetadata.Value.ToString());
Tasks\MsDeploy\MSDeploy.cs (7)
637string element = item.GetMetadata(ExistingParameterValidationMetadata.Element.ToString()); 674IList<Framework.ITaskItem> items = Utility.SortParametersTaskItems(originalItems, foptimisticParameterDefaultValue, DeclareParameterMetadata.DefaultValue.ToString()); 720IList<Framework.ITaskItem> items = Utility.SortParametersTaskItems(originalItems, foptimisticParameterDefaultValue, SimpleSyncParameterMetadata.Value.ToString()); 750IList<Framework.ITaskItem> items = Utility.SortParametersTaskItems(originalItems, foptimisticParameterDefaultValue, ExistingSyncParameterMetadata.Value.ToString()); 766string element = item.GetMetadata(ExistingParameterValidationMetadata.Element.ToString()); 791data = item.GetMetadata(ExistingSyncParameterMetadata.Value.ToString()); 803arguments.Add(string.Concat(ExistingSyncParameterMetadata.Value.ToString().ToLower(),
Microsoft.NET.Sdk.WorkloadManifestReader (2)
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
79$"_{currentArchitecture.ToString().ToUpperInvariant()}" :
WorkloadInstallType.cs (1)
36var architecture = RuntimeInformation.ProcessArchitecture.ToString();
Microsoft.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Serializer\MemberTypeInfo.cs (2)
30null => Type.ToString()!, 32PrimitiveType primitive => primitive.ToString()!,
Microsoft.TestPlatform.CommunicationUtilities (1)
Serialization\TestRunStatisticsConverter.cs (1)
58writer.WriteNumber(kvp.Key.ToString(), kvp.Value);
Microsoft.TestPlatform.CoreUtilities (4)
Helpers\DotnetHostHelper.cs (4)
165envKey = $"DOTNET_ROOT_{targetArchitecture.ToString().ToUpperInvariant()}"; 331using IRegistryKey? nativeArch = dotnetInstalledVersion.OpenSubKey(targetArchitecture.ToString().ToLowerInvariant()); 340EqtTrace.Verbose($@"DotnetHostHelper.GetMuxerFromGlobalRegistrationWin: Muxer resolved using win registry key 'SOFTWARE\dotnet\Setup\InstalledVersions\{targetArchitecture.ToString().ToLowerInvariant()}\InstallLocation' in '{path}'"); 349string installLocation = $"{baseInstallLocation}install_location_{targetArchitecture.ToString().ToLowerInvariant()}";
Microsoft.TestPlatform.CrossPlatEngine (1)
Utilities\SourceDetailHelper.cs (1)
24InferRunSettingsHelper.UpdateTargetPlatform(document, sourceDetail.Architecture.ToString(), overwrite: true);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
ProcessDumpUtility.cs (1)
120EqtTrace.Info($"ProcessDumpUtility.HangDump: Creating {dumpType.ToString().ToLowerInvariant()} dump of process {processName} ({processId}) into temporary path '{tempDirectory}'.");
Microsoft.TestPlatform.PlatformAbstractions (1)
common\System\ProcessHelper.cs (1)
375=> GetCurrentProcessArchitecture().ToString()
Microsoft.TestPlatform.TestHostRuntimeProvider (5)
Hosting\DefaultTestHostManager.cs (1)
306testHostProcessName.Append('.').Append(architecture.ToString().ToLowerInvariant());
Hosting\DotnetTestHostManager.cs (4)
359: $"testhost.{_architecture.ToString().ToLowerInvariant()}.exe"; 379? Architecture.X64.ToString().ToLowerInvariant() 380: _architecture.ToString().ToLowerInvariant(); 522string message = string.Format(CultureInfo.CurrentCulture, TestHostResources.NoDotnetMuxerFoundForArchitecture, $"dotnet{(_platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows ? ".exe" : string.Empty)}", finalTargetArchitecture.ToString());
Microsoft.TestPlatform.Utilities (1)
InferRunSettingsHelper.cs (1)
617XmlUtilities.AppendOrModifyChild(xmlDocument, TargetPlatformNodePath, TargetPlatformNodeName, effectivePlatform.ToString());
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
190e.Level.ToString());
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
TrxLogger.cs (1)
282Debug.Fail("TrxLogger.TestMessageHandler: The test message level is unrecognized: {0}", e.Level.ToString());
XML\XmlPersistence.cs (1)
471string attributeName = outcome.ToString();
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
RunSettings\RunConfiguration.cs (4)
291_framework = Framework.FromString(value.ToString()); 499targetPlatform.InnerXml = TargetPlatform.ToString(); 546executionThreadApartmentState.InnerXml = ExecutionThreadApartmentState.ToString(); 559adapterLoadingStrategy.InnerXml = TestAdapterLoadingStrategy.ToString();
Microsoft.Web.XmlTransform (1)
XmlFormatter.cs (1)
132Debug.Fail(String.Format(CultureInfo.InvariantCulture, "Unexpected element type '{0}' while formatting document", node.NodeType.ToString()));
Mono.Cecil (16)
Mono.Cecil\AssemblyReader.cs (2)
3652 throw new NotImplementedException (type.ToString ()); 3686 throw new NotImplementedException (etype.ToString ());
Mono.Cecil\Import.cs (2)
671 throw new NotSupportedException (type.etype.ToString ()); 769 throw new ArgumentNullException (Argument.module.ToString ());
Mono.Cecil\Modifiers.cs (2)
60 throw new ArgumentNullException (Mixin.Argument.modifierType.ToString ()); 105 throw new ArgumentNullException (Mixin.Argument.modifierType.ToString ());
Mono.Cecil\ModuleDefinition.cs (10)
1256 throw new ArgumentNullException (Argument.name.ToString ()); 1262 throw new ArgumentNullOrEmptyException (Argument.name.ToString ()); 1268 throw new ArgumentNullOrEmptyException (Argument.fileName.ToString ()); 1274 throw new ArgumentNullOrEmptyException (Argument.fullName.ToString ()); 1280 throw new ArgumentNullException (Argument.stream.ToString ()); 1298 throw new ArgumentNullException (Argument.type.ToString ()); 1304 throw new ArgumentNullException (argument.ToString ()); 1310 throw new ArgumentNullException (Argument.field.ToString ()); 1316 throw new ArgumentNullException (Argument.method.ToString ()); 1322 throw new ArgumentNullException (Argument.parameters.ToString ());
MSBuild (6)
JsonOutputFormatter.cs (1)
95targetResults["Result"] = targetResult.ResultCode.ToString();
MSBuildClientApp.cs (1)
79KnownTelemetry.PartialBuildTelemetry.ServerFallbackReason = exitResult.MSBuildClientExitType.ToString();
XMake.cs (4)
1365if (!Enum.TryParse<CrashExitType>(exitType.ToString(), out CrashExitType crashExitType)) 3434return (exitCode, exitType.ToString()); 3446CommandLineSwitchException.Throw("InvalidNodeNumberValue", nodeMode.ToString()); 4715jsonNode[featureName] = Features.CheckFeatureAvailability(featureName).ToString();
NuGet.Build.Tasks (1)
GetRestoreDotnetCliToolsTask.cs (1)
89properties.Add("ProjectStyle", ProjectStyle.DotnetCliTool.ToString());
NuGet.CommandLine.XPlat (1)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (1)
298.Select(x => x.ToString());
NuGet.Commands (12)
CommandRunners\PackCommandRunner.cs (4)
359includes.Add(LibraryIncludeFlags.All.ToString()); 364effectiveInclude.ToString().Split(new char[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries)); 371(LibraryIncludeFlagUtils.NoContent & ~effectiveInclude).ToString() 793logMessages.AddRange(rule.Validate(package).OrderBy(p => p.Code.ToString(), StringComparer.CurrentCulture));
RestoreCommand\Utility\AuditUtility.cs (1)
566_ => auditMode.ToString()
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
220GenerateProperty("NuGetProjectStyle", projectStyle.ToString()),
RestoreCommand\Utility\SpecValidationUtility.cs (3)
190ProjectStyle.PackageReference.ToString()); 202ProjectStyle.PackageReference.ToString()); 214ProjectStyle.PackageReference.ToString());
TrustedSignersCommand\TrustedSignerActionsProvider.cs (2)
95throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnsupportedTrustTarget, trustTarget.ToString())); 179throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithm, hashAlgorithm.ToString()));
TrustedSignersCommand\TrustedSignersCommandRunner.cs (1)
244trustedSignerBuilder.AppendLine(defaultIndentation + extraIndentation + string.Format(CultureInfo.CurrentCulture, summaryAllowUntrustedRoot, cert.HashAlgorithm.ToString(), cert.Fingerprint));
NuGet.Configuration (10)
Settings\Items\CertificateItem.cs (3)
40UpdateAttribute(ConfigurationConstants.HashAlgorithm, value.ToString().ToUpper(CultureInfo.InvariantCulture)); 75AddAttribute(ConfigurationConstants.HashAlgorithm, hashAlgorithm.ToString().ToUpper(CultureInfo.InvariantCulture)); 90UpdateAttribute(ConfigurationConstants.HashAlgorithm, HashAlgorithm.ToString().ToUpper(CultureInfo.InvariantCulture));
Settings\Items\StoreClientCertItem.cs (7)
29return type.ToString().Replace("FindBy", string.Empty); 34return storeName.ToString(); 39return storeLocation.ToString(); 78storeLocation = DefaultStoreLocation.ToString(); 86storeName = DefaultStoreName.ToString(); 270AddOrUpdateAttribute(ConfigurationConstants.StoreLocationAttribute, storeLocation.Value.ToString()); 275AddOrUpdateAttribute(ConfigurationConstants.StoreNameAttribute, storeName.Value.ToString());
NuGet.Credentials (1)
SecurePluginCredentialProvider.cs (1)
157MessageMethod.SetLogLevel.ToString(),
NuGet.LibraryModel (4)
LibraryDependencyTargetUtils.cs (2)
132flagStrings.Add(value.ToString().ToLowerInvariant()); 150enumAsString = includeFlags.ToString();
LibraryIncludeFlagUtils.cs (2)
93flagStrings.Add(value.ToString().ToLowerInvariant()); 134enumAsString = includeFlags.ToString();
NuGet.PackageManagement (1)
PackageDownloader.cs (1)
218message = task.Status.ToString();
NuGet.Packaging (13)
Licenses\LogicalOperator.cs (1)
32return $"{Left.ToString()} {LogicalOperatorType.ToString().ToUpper(CultureInfo.InvariantCulture)} {Right.ToString()}";
PackageCreation\Xml\PackageMetadataXmlExtensions.cs (1)
280attributes.Add(GetXAttributeFromNameAndValue(NuspecUtility.Type, metadata.Type.ToString().ToLowerInvariant()));
PackageExtraction\PackageExtractionBehavior.cs (2)
26if (string.Equals(xmlDocFileMode, XmlDocFileSaveMode.Compress.ToString(), StringComparison.OrdinalIgnoreCase)) 30else if (string.Equals(xmlDocFileMode, XmlDocFileSaveMode.Skip.ToString(), StringComparison.OrdinalIgnoreCase))
Signing\Signatures\AuthorPrimarySignature.cs (1)
33string.Format(CultureInfo.CurrentCulture, Strings.SignatureType, Type.ToString())));
Signing\Signatures\RepositoryCountersignature.cs (1)
99string.Format(CultureInfo.CurrentCulture, Strings.SignatureType, Type.ToString())));
Signing\Signatures\RepositoryPrimarySignature.cs (1)
38string.Format(CultureInfo.CurrentCulture, Strings.SignatureType, Type.ToString())));
Signing\Signatures\Signature.cs (1)
315string.Join(", ", chainStatuses.Select(x => x.Status.ToString())))));
Signing\Timestamp\Timestamp.cs (1)
271string.Join(", ", chainStatusList.Select(x => x.Status.ToString())))));
Signing\TrustedSigners\TrustedSignersProvider.cs (2)
105string.Format(CultureInfo.CurrentCulture, Strings.ConflictingAllowUntrustedRoot, certificate.HashAlgorithm.ToString(), certificate.Fingerprint), 137return $"{certificate.HashAlgorithm.ToString()}-{certificate.Fingerprint}";
Signing\Utility\CertificateUtility.cs (2)
53issues.Add(SignatureLog.MinimalLog($"{indentation}{string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHash, fingerprintAlgorithm.ToString(), certificateFingerprint)}")); 76certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHash, fingerprintAlgorithm.ToString(), certificateFingerprint));
NuGet.ProjectModel (4)
PackageSpecWriter.cs (3)
108SetValue(writer, "projectStyle", msbuildMetadata.ProjectStyle.ToString()); 473SetValue(writer, "include", dependency.IncludeType.ToString()); 478SetValue(writer, "suppressParent", dependency.SuppressParent.ToString());
ProjectLockFile\PackagesLockFileFormat.cs (1)
311[TypeProperty] = dependency.Type.ToString()
NuGet.Protocol (14)
Plugins\Logging\CommunicationLogMessage.cs (3)
30["method"] = _method.ToString(), 31["type"] = _type.ToString(), 32["state"] = _state.ToString(),
Plugins\Logging\PluginInstanceLogMessage.cs (1)
33["state"] = _state.ToString(),
Plugins\Logging\TaskLogMessage.cs (3)
33["method"] = _method.ToString(), 34["type"] = _type.ToString(), 35["state"] = _state.ToString(),
Plugins\MessageConverter.cs (2)
174writer.WriteString(nameof(Message.Type), value.Type.ToString()); 175writer.WriteString(nameof(Message.Method), value.Method.ToString());
Plugins\PluginManager.cs (2)
307MessageMethod.MonitorNuGetProcessExit.ToString(), 315MessageMethod.Initialize.ToString(),
RemoteRepositories\PluginFindPackageByIdResource.cs (2)
199MessageMethod.SetLogLevel.ToString(), 277MessageMethod.SetLogLevel.ToString(),
Resources\DownloadResourcePlugin.cs (1)
111MessageMethod.SetLogLevel.ToString(),
PresentationBuildTasks (4)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5537MarkupCompiler.ThrowCompilerException(nameof(SR.ParserInvalidKnownType), ((int)knownElement).ToString(CultureInfo.InvariantCulture), knownElement.ToString());
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (1)
127ThrowException(nameof(SR.StyleTagNotSupported), xamlNode.TokenType.ToString(),
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (1)
115ThrowException(nameof(SR.TemplateTagNotSupported), xamlNode.TokenType.ToString(),
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
1316XmlReader.NodeType.ToString());
PresentationCore (57)
MS\Internal\FontFace\CompositeFontParser.cs (1)
344Fail(string.Format("No FontFamily element found in FontFamilyCollection that matches current OS or greater: {0}", OSVersionHelper.GetOsVersion().ToString()));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
364ISFDebugTrace("Decoding Tag: " + ((KnownTagCache.KnownTagIndex)isfTag).ToString());
MS\Internal\TextFormatting\Bidi.cs (51)
712characterClass[counter + classIndex].ToString()); 848state.ToString() + 849", Class: " + currentClass.ToString()); 893state.ToString() + 894", Class: "+ currentClass.ToString()); 938state.ToString() + 939", Class: "+ currentClass.ToString()); 943state.ToString() + 944" Class: "+ currentClass.ToString()); 1043state.ToString() +", Class: "+ 1044currentClass.ToString()); 1082state.ToString() + ", Class: "+ 1083currentClass.ToString()); 1115state.ToString() + ", Class: " + 1116currentClass.ToString()); 1133state.ToString() + ", Class: " + 1134currentClass.ToString()); 1146state.ToString() + ", Class: " + 1147currentClass.ToString()); 1160state.ToString() + ", Class: " + 1161currentClass.ToString()); 1165state.ToString() + ", Class: " + 1166currentClass.ToString()); 1176state.ToString() + ", Class: " + 1177currentClass.ToString()); 1185state.ToString() + ", Class: " + 1186currentClass.ToString()); 1203state.ToString() + ", Class: " + 1204currentClass.ToString()); 1207state.ToString() + ", Class: " + 1208currentClass.ToString()); 1214state.ToString() + ", Class: " + 1215currentClass.ToString()); 1219state.ToString() + ", Class: " + 1220currentClass.ToString()); 1268state.ToString() + ", Class: " + 1269currentClass.ToString()); 1282state.ToString() + ", Class: " + 1283currentClass.ToString()); 1287state.ToString() + ", Class: " + 1288currentClass.ToString()); 1319state.ToString() + ", Class: " + 1320currentClass.ToString()); 1346state.ToString() + ", Class: " + 1347currentClass.ToString()); 1391state.ToString() + ", Class: " + 1392currentClass.ToString()); 1427state.ToString() + ", Class: " + 1428currentClass.ToString()); 1569state.ToString() + ", Class: " + 1570currentClass.ToString());
System\Windows\Media\Animation\Timeline.cs (1)
1106builder.Append(FillBehavior.ToString());
System\Windows\Media\PixelFormat.cs (1)
500return _format.ToString();
System\Windows\Media\RequestCachePolicyConverter.cs (2)
110return httpPolicy.Level.ToString(); 125return policy.Level.ToString();
PresentationFramework (29)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
539string xmlName = token.ToString();
System\Windows\Controls\DataGridLengthConverter.cs (1)
163return length.UnitType.ToString();
System\Windows\Controls\FlowDocumentReader.cs (3)
1258if (str == FlowDocumentReaderViewingMode.Page.ToString()) 1263else if (str == FlowDocumentReaderViewingMode.TwoPage.ToString()) 1268else if (str == FlowDocumentReaderViewingMode.Scroll.ToString())
System\Windows\Documents\TextMapOffsetErrorLogger.cs (1)
61Direction = direction.ToString(),
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (1)
215SpellerCOMAction = _action.ToString(),
System\Windows\Markup\BamlReader.cs (7)
1852nodeInfo.RecordType.ToString(), 2037_currentBamlRecord.RecordType.ToString(), 2038BamlRecordType.ElementEnd.ToString())); 2144_currentBamlRecord.RecordType.ToString(), 2145expectedType.ToString())); 2251_currentBamlRecord.RecordType.ToString(), 2252BamlRecordType.ConstructorParametersEnd.ToString()));
System\Windows\Markup\BamlRecords.cs (1)
980typeName = elm.ToString();
System\Windows\Markup\BamlWriter.cs (7)
305parentType.ToString())); 472parentType.ToString())); 506parentType.ToString())); 796startTagType.ToString(), 797BamlRecordType.PropertyComplexEnd.ToString())); 1044startTagState.ToString(), 1045endTagBeingWritten.ToString()));
System\Windows\Markup\ParserContext.cs (1)
139XmlSpace = xmlReader.XmlSpace.ToString();
System\Windows\Navigation\NavigationService.cs (4)
1506navInfo != null ? navInfo.NavigationMode.ToString() : NavigationMode.New.ToString(), 1619navigateInfo != null ? navigateInfo.NavigationMode.ToString() : NavigationMode.New.ToString(),
System\Windows\SystemResourceKey.cs (1)
2015return _id.ToString();
System\Windows\SystemThemeKey.cs (1)
78return _id.ToString();
PresentationUI (1)
MS\Internal\Documents\SignatureResourceHelper.cs (1)
89sigStatus.ToString(),
ReachFramework (35)
PrintConfig\DocumentNUp.cs (2)
328return Value.ToString(); 649return Value.ToString();
PrintConfig\JobCollate.cs (2)
58return Value.ToString(); 297return Value.ToString();
PrintConfig\JobDuplex.cs (2)
58return Value.ToString(); 295return Value.ToString();
PrintConfig\JobInputBins.cs (2)
59return Value.ToString(); 382return Value.ToString();
PrintConfig\JobPageOrder.cs (2)
58return Value.ToString(); 269return Value.ToString();
PrintConfig\JobStaple.cs (2)
60return Value.ToString(); 300return Value.ToString();
PrintConfig\PageBorderless.cs (2)
59return Value.ToString(); 270return Value.ToString();
PrintConfig\PageDeviceFont.cs (2)
59return Value.ToString(); 271return Value.ToString();
PrintConfig\PageMediaSize.cs (2)
84return Value.ToString() + ": " + MediaSizeWidth.ToString(CultureInfo.CurrentCulture) + 528return Value.ToString() +
PrintConfig\PageMediaType.cs (2)
61return Value.ToString(); 272return Value.ToString();
PrintConfig\PageOrientation.cs (2)
59return Value.ToString(); 269return Value.ToString();
PrintConfig\PageOutputColor.cs (2)
60return Value.ToString(); 272return Value.ToString();
PrintConfig\PageOutputQuality.cs (2)
60return Value.ToString(); 271return Value.ToString();
PrintConfig\PageResolution.cs (2)
87QualitativeResolution.ToString() + ")"; 422"(qualitative: " + QualitativeResolution.ToString() + ")";
PrintConfig\PageScaling.cs (3)
118return Value.ToString() + ": " + 544return Value.ToString(); 548return Value.ToString() +
PrintConfig\PageTrueTypeFont.cs (2)
58return Value.ToString(); 271return Value.ToString();
PrintConfig\PhotoPrintingIntent.cs (2)
58return Value.ToString(); 269return Value.ToString();
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
376if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
System.ComponentModel.Composition (1)
Microsoft\Internal\Requires.cs (1)
100throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_InvalidEnumInSet, parameterName, value, enumFlagSet.ToString()), parameterName);
System.Configuration.ConfigurationManager (1)
System\Diagnostics\TraceConfiguration.cs (1)
147traceSource.Switch = new SourceSwitch(name, traceSource.DefaultLevel.ToString());
System.Data.Common (28)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
347return SR.Format(SR.ADP_ConnectionStateMsg, state.ToString());
System\Data\Common\AdapterUtil.Common.cs (14)
73Debug.Fail("valid AcceptRejectRule " + value.ToString()); 88Debug.Fail("valid CatalogLocation " + value.ToString()); 103Debug.Fail("valid ConflictOption " + value.ToString()); 121Debug.Fail("valid DataRowState " + value.ToString()); 136Debug.Fail("valid KeyRestrictionBehavior " + value.ToString()); 152Debug.Fail("valid LoadOption " + value.ToString()); 168Debug.Fail("valid MissingMappingAction " + value.ToString()); 185Debug.Fail("valid MissingSchemaAction " + value.ToString()); 201Debug.Fail("valid Rule " + value.ToString()); 216Debug.Fail("valid SchemaType " + value.ToString()); 234Debug.Fail("valid StatementType " + value.ToString()); 251Debug.Fail("valid UpdateStatus " + value.ToString()); 260return NotSupportedEnumerationValue(typeof(StatementType), value.ToString(), method); 513return Argument(SR.Format(SR.ADP_UnwantedStatementType, statementType.ToString()));
System\Data\DataException.cs (4)
346=> _InvalidEnumArgumentException(SR.Format(SR.ADP_InvalidEnumerationValue, typeof(T).Name, value.ToString())); 520public static Exception CantChangeDateTimeMode(DataSetDateTime oldValue, DataSetDateTime newValue) => _InvalidOperation(SR.Format(SR.DataColumn_DateTimeMode, oldValue.ToString(), newValue.ToString())); 681public static Exception InvalidStorageType(TypeCode typecode) => _Data(SR.Format(SR.DataStorage_InvalidStorageType, typecode.ToString()));
System\Data\DataSetUtil.cs (2)
63Debug.Fail("valid DataRowState " + value.ToString()); 78Debug.Fail("valid LoadOption " + value.ToString());
System\Data\Filter\BinaryNode.cs (1)
1265Debug.Fail("Invalid (unmapped) precedence " + code.ToString());
System\Data\Filter\FilterException.cs (2)
163return _Syntax(SR.Format(SR.Expr_UnknownToken1, tokExpected.ToString(), tokCurr.ToString(), position.ToString(CultureInfo.InvariantCulture)));
System\Data\ForeignKeyConstraint.cs (1)
554Debug.Fail("attempt to cascade unknown action: " + action.ToString());
System\Data\Merger.cs (1)
521"Unexpected value of MissingSchemaAction parameter : " + _missingSchemaAction.ToString());
System\Data\xmlsaver.cs (1)
1388root.SetAttribute("DateTimeMode", Keywords.MSDNS, col.DateTimeMode.ToString());
System\Xml\XmlDataDocument.cs (1)
1076_ => throw new InvalidOperationException(SR.Format(SR.DataDom_CloneNode, dp.NodeType.ToString())),
System.Data.Odbc (16)
Common\System\Data\Common\AdapterUtil.Odbc.cs (9)
96Debug.Fail("valid CommandType " + value.ToString()); 113Debug.Fail("valid DataRowVersion " + value.ToString()); 133Debug.Fail("valid IsolationLevel " + value.ToString()); 148Debug.Fail("valid KeyRestrictionBehavior " + value.ToString()); 165Debug.Fail("valid ParameterDirection " + value.ToString()); 182Debug.Fail("valid UpdateRowSource " + value.ToString()); 302return DataAdapter(SR.GetString(SR.ADP_DeriveParametersNotSupported, value.GetType().Name, value.CommandType.ToString())); 366return Argument(SR.GetString(SR.ADP_InvalidDataType, typecode.ToString())); 374return Argument(SR.GetString(SR.ADP_DbTypeNotSupported, type.ToString(), enumtype.Name));
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
347return SR.Format(SR.ADP_ConnectionStateMsg, state.ToString());
System\Data\Odbc\Odbc32.cs (5)
25return ADP.Argument(SR.GetString(SR.Odbc_UnknownSQLType, sqltype.ToString())); 45Debug.Fail("valid CommandType " + value.ToString()); 50Debug.Fail("invalid CommandType " + value.ToString()); 67Debug.Fail("valid IsolationLevel " + value.ToString()); 72Debug.Fail("invalid IsolationLevel " + value.ToString());
System\Data\Odbc\OdbcCommand.cs (1)
561return ExecuteReaderObject(CommandBehavior.Default, method.ToString(), true, methodArguments, method);
System.Data.OleDb (12)
OleDb_Enum.cs (1)
219return enumOleDbType.ToString();
OleDb_Util.cs (6)
78builder.Append(SR.Format(SR.OleDb_CommandParameterError, index.ToString(CultureInfo.InvariantCulture), status.ToString())); 91return ADP.InvalidOperation(SR.Format(SR.OleDb_UninitializedParameters, index.ToString(CultureInfo.InvariantCulture), dbtype.ToString())); 95return ADP.DataAdapter(SR.Format(SR.OleDb_BadStatus_ParamAcc, index.ToString(CultureInfo.InvariantCulture), status.ToString())); 284return ADP.DataAdapter(SR.Format(SR.OleDb_UnexpectedStatusValue, status.ToString())); 298return ADP.DataAdapter(SR.Format(SR.OleDb_BadStatusRowAccessor, i.ToString(CultureInfo.InvariantCulture), rowStatus.ToString())); 696string result = hr.ToString();
OleDbConnectionInternal.cs (1)
428row[literalName] = ((OleDbLiteral)tag.it).ToString();
System\Data\Common\AdapterUtil.cs (4)
407return SR.GetString(SR.ADP_ConnectionStateMsg, state.ToString()); 553return DataAdapter(SR.GetString(SR.ADP_DeriveParametersNotSupported, value.GetType().Name, value.CommandType.ToString())); 694return Argument(SR.GetString(SR.ADP_InvalidDataType, typecode.ToString())); 698return Argument(SR.GetString(SR.ADP_DbTypeNotSupported, type.ToString(), enumtype.Name));
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DiagLinkedList.cs (1)
163vsb.Append(ac.TraceFlags.ToString());
System.Diagnostics.TextWriterTraceListener (2)
System\Diagnostics\DelimitedListTraceListener.cs (1)
166Write(eventType.ToString());
System\Diagnostics\XmlWriterTraceListener.cs (1)
227InternalWrite(eventType.ToString());
System.Diagnostics.TraceSource (3)
System\Diagnostics\TraceSource.cs (1)
100_internalSwitch = new SourceSwitch(_sourceName, _switchLevel.ToString());
System\Diagnostics\TraceSwitch.cs (2)
41SetSwitchValues((int)value, value.ToString()); 110SetSwitchValues((int)level, level.ToString());
System.DirectoryServices (3)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (3)
90throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.TransportNotFound, transport.ToString()), typeof(ActiveDirectoryInterSiteTransport), transport.ToString()); 347return _transport.ToString();
System.DirectoryServices.AccountManagement (17)
System\DirectoryServices\AccountManagement\AD\ADDNConstraintLinkedAttrSet.cs (1)
127Debug.Fail("ADStoreCtx.ADDNConstraintLinkedAttrSet: fell off end looking for " + _constraint.ToString());
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (1)
983GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter match type " + kvp.Value.MatchType.ToString());
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (2)
436GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "AccessCheck " + targetPermission.ToString()); 1105Debug.Fail("ADStoreCtx.FindByDate: fell off end looking for " + matchType.ToString());
System\DirectoryServices\AccountManagement\AD\SDSCache.cs (2)
64contextOptions.ToString()); 167"GetContext: creating context, contextName=" + contextName + ", options=" + contextOptions.ToString());
System\DirectoryServices\AccountManagement\Context.cs (7)
589Debug.Fail("PrincipalContext.Initialize: fell off end looking for " + _contextType.ToString()); 634GlobalDebug.WriteLineIf(GlobalDebug.Info, "PrincipalContext", "DoMachineInit: authTypes is " + authTypes.ToString()); 695throw new ArgumentException(SR.Format(SR.PassedContextTypeDoesNotMatchDetectedType, _serverProperties.contextType.ToString())); 725GlobalDebug.WriteLineIf(GlobalDebug.Info, "PrincipalContext", "DoLDAPDirectoryInit: authTypes is " + authTypes.ToString()); 806GlobalDebug.WriteLineIf(GlobalDebug.Info, "PrincipalContext", "DoLDAPDirectoryInitNoContainer: authTypes is " + authTypes.ToString()); 1154GlobalDebug.WriteLineIf(GlobalDebug.Info, "ReadServerConfig", "OsVersion : " + properties.OsVersion.ToString()); 1156GlobalDebug.WriteLineIf(GlobalDebug.Info, "ReadServerConfig", "contextType : " + properties.contextType.ToString());
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (2)
710Debug.Fail("FindByDateMatcher.Matches: Fell off end looking for propertyToMatch=" + _propertyToMatch.ToString()); 798Debug.Fail("FindByDateMatcher.TestForMatch: Fell off end looking for matchType=" + _matchType.ToString());
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (2)
317GlobalDebug.WriteLineIf(GlobalDebug.Info, "SAMStoreCtx", "AccessCheck " + targetPermission.ToString()); 341Debug.Fail("SAMStoreCtx.AccessCheck: Fell off end looking for " + targetPermission.ToString());
System.Drawing.Common (2)
System\Drawing\Font.cs (1)
352throw new ArgumentException(SR.Format(SR.GdiplusFontStyleNotFound, _fontFamily.Name, _fontStyle.ToString()));
System\Drawing\FontConverter.cs (1)
79sb.AppendLiteral(font.Style.ToString());
System.Drawing.Primitives (1)
System\Drawing\Color.cs (1)
476color <= 0 || color > KnownColor.RebeccaPurple ? FromName(color.ToString()) : new Color(color);
System.Formats.Asn1 (1)
System\Formats\Asn1\Asn1Tag.cs (1)
471classAndValue = ((UniversalTagNumber)TagValue).ToString();
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.Read.cs (1)
605throw new InvalidOperationException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag.ToString()));
System.IO.Compression (1)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
264throw new InvalidOperationException("InitializationState != " + requiredState.ToString());
System.IO.Packaging (1)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
505writer.WriteAttributeString(TargetModeAttributeName, relationship.TargetMode.ToString());
System.IO.Pipelines (2)
System\IO\Pipelines\ThrowHelper.cs (2)
14private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(ExceptionArgument argument) => new ArgumentOutOfRangeException(argument.ToString()); 19private static ArgumentNullException CreateArgumentNullException(ExceptionArgument argument) => new ArgumentNullException(argument.ToString());
System.Linq.Expressions (2)
System\Linq\Expressions\DebugViewWriter.cs (1)
1004Out("." + node.Kind.ToString(), Flow.Space);
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
793Out(node.NodeType == ExpressionType.Extension ? node.GetType().FullName : node.NodeType.ToString());
System.Memory (2)
System\ThrowHelper.cs (2)
30private static ArgumentNullException CreateArgumentNullException(ExceptionArgument argument) { return new ArgumentNullException(argument.ToString()); } 35private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(ExceptionArgument argument) { return new ArgumentOutOfRangeException(argument.ToString()); }
System.Net.Http (2)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
234throw new NotImplementedException(_state.ToString());
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
53throw new NotSupportedException(SR.Format(SR.net_listener_invalid_cbt_type, kind.ToString()));
System.Net.Mail (2)
System\Net\Mime\MimeMultiPart.cs (2)
29throw new NotSupportedException(value.ToString()); 37ContentType.MediaType = "multipart/" + type.ToString().ToLowerInvariant();
System.Net.Primitives (3)
src\runtime\src\libraries\Common\src\System\Net\SocketAddress.cs (1)
157string familyString = Family.ToString();
System\Net\Cache\RequestCachePolicy.cs (1)
25public override string ToString() => "Level:" + Level.ToString();
System\Net\IPEndPoint.cs (1)
192throw new ArgumentException(SR.Format(SR.net_InvalidAddressFamily, socketAddress.Family.ToString(), GetType().FullName), nameof(socketAddress));
System.Net.Requests (1)
System\Net\Cache\HttpRequestCachePolicy.cs (1)
95return "Level:" + Level.ToString() +
System.Net.Security (6)
System\Net\Security\NegotiateStream.cs (5)
655throw new ArgumentOutOfRangeException(nameof(impersonationLevel), impersonationLevel.ToString(), SR.net_auth_supported_impl_levels); 781new AuthenticationException(SR.Format(SR.net_auth_context_expectation, _expectedImpersonationLevel.ToString(), PrivateImpersonationLevel.ToString())), 783new AuthenticationException(SR.Format(SR.net_auth_context_expectation, _context.ProtectionLevel.ToString(), _expectedProtectionLevel.ToString())),
System\Net\Security\SslStream.IO.cs (1)
397throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException());
System.Net.Sockets (1)
System\Net\Sockets\Socket.Unix.cs (1)
94Debug.Assert(e == Interop.Error.SUCCESS, e.ToString());
System.Net.WebSockets (2)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
264throw new InvalidOperationException("InitializationState != " + requiredState.ToString());
System\Net\WebSockets\ManagedWebSocket.cs (1)
480if (NetEventSource.Log.IsEnabled()) NetEventSource.SendFrameAsyncStarted(this, opcode.ToString(), payloadBuffer.Length);
System.Private.CoreLib (11)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (3)
140name, ((EventChannel)value).ToString())); 386channelType = attribs.EventChannelType.ToString(); 642string channelName = channel.ToString(); // For well know channels this is a nice name, otherwise a number
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (3)
1399return ToString(); 1441/// <summary>This method overload is obsolete; use <see cref="ToString()"/>.</summary> 1444ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5335Debug.Fail("Unknown DateTimeParseFailure: " + result.failure.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
493typeString = typeCode.ToString(); 1031Debug.Assert(!string.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers."); 1032return "ResourceTypeCode." + typeCode.ToString();
System\Reflection\ModifiedType.NativeAot.cs (1)
73Debug.Fail(handle.HandleType.ToString());
System.Private.DataContractSerialization (19)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (3)
781JsonGlobals.serverTypeString, JsonGlobals.typeString, _dataType.ToString().ToLowerInvariant(), JsonGlobals.objectString)); 823throw new XmlException(SR.Format(SR.JsonInvalidWriteState, "WriteStartDocument", WriteState.ToString())); 1239throw new XmlException(SR.Format(SR.JsonCannotWriteTextAfterNonTextAttribute, _dataType.ToString().ToLowerInvariant()));
System\Xml\XmlBaseWriter.cs (16)
155throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString())); 179throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString())); 207throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartAttribute", WriteState.ToString())); 311throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString())); 370throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString())); 434throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteComment", WriteState.ToString())); 460throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteFullEndElement", WriteState.ToString())); 472throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteCData", WriteState.ToString())); 501throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())); 542throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())); 869throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartDocument", WriteState.ToString())); 1632throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "StartFragment", WriteState.ToString())); 1684throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "EndFragment", WriteState.ToString())); 1719throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteFragment", WriteState.ToString())); 1821throw new InvalidOperationException(SR.Format(SR.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString())); 1828throw new InvalidOperationException(SR.Format(SR.XmlInvalidPrefixState, WriteState.ToString()));
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Serializer\MemberTypeInfo.cs (2)
30null => Type.ToString()!, 32PrimitiveType primitive => primitive.ToString()!,
System.Private.Xml (57)
System\Xml\Core\ReadContentAsBinaryHelper.cs (3)
244throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 291throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 403throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (3)
199throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 239throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo); 325throw new XmlException(SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
System\Xml\Core\XmlReader.cs (13)
750throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 760throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 778throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 798throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 806throw new XmlException(SR.Xml_UnexpectedNodeInSimpleContent, new string[] { NodeType.ToString(), "ReadElementString" }, this as IXmlLineInfo); 825throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 838throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 857throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 870throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 887throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 1417throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo); 1549throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString()); 1780string result = nt.ToString();
System\Xml\Core\XmlReaderAsync.cs (1)
403throw new XmlException(SR.Xml_InvalidNodeType, NodeType.ToString());
System\Xml\Core\XmlReaderSettings.cs (2)
523throw new InvalidOperationException(SR.Format(SR.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString())); 582throw new InvalidOperationException(SR.Format(SR.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString()));
System\Xml\Core\XmlSubtreeReader.cs (4)
933throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1070throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1391throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 1420throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo);
System\Xml\Core\XmlSubtreeReaderAsync.cs (4)
339throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 476throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 575throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo); 604throw new XmlException(SR.Xml_InvalidNodeType, reader.NodeType.ToString(), reader as IXmlLineInfo);
System\Xml\Core\XmlTextReaderImpl.cs (4)
3024Throw(SR.Xml_PartialContentNodeTypeNotSupportedEx, fragmentType.ToString()); 5902Throw(SR.Xml_InvalidNodeType, _curNode.type.ToString()); 8945Throw(SR.Xml_InvalidNodeType, _curNode.type.ToString()); 9468throw new XmlException(SR.Xml_InvalidNodeType, _curNode.type.ToString(), this as IXmlLineInfo);
System\Xml\Core\XmlTextReaderImplAsync.cs (3)
3669Throw(SR.Xml_InvalidNodeType, _curNode.type.ToString()); 5313Throw(SR.Xml_InvalidNodeType, _curNode.type.ToString()); 5467throw new XmlException(SR.Xml_InvalidNodeType, _curNode.type.ToString(), this as IXmlLineInfo);
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
985throw new XmlException(SR.Xml_InvalidNodeType, _outerReader.NodeType.ToString());
System\Xml\Dom\XmlLoader.cs (1)
1000return new InvalidOperationException(SR.Format(CultureInfo.InvariantCulture, SR.Xml_UnexpectedNodeType, nodetype.ToString()));
System\Xml\Dom\XmlNode.cs (2)
114set { throw new InvalidOperationException(SR.Format(CultureInfo.InvariantCulture, SR.Xdom_Node_SetVal, NodeType.ToString())); } 1462string result = nodeType.ToString();
System\Xml\Schema\DataTypeImplementation.cs (1)
2041exception = new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, _dateTimeFlags.ToString()));
System\Xml\Schema\XmlSchemaDataType.cs (1)
169_ => typeCode.ToString(),
System\Xml\Serialization\SchemaObjectWriter.cs (1)
582return v.ToString();
System\Xml\ValidateNames.cs (4)
489if (throwOnError) throw new XmlException(SR.XmlBadName, new string[] { nodeKind.ToString(), localName }); 507if (throwOnError) throw new XmlException(SR.XmlNoNameAllowed, nodeKind.ToString()); 536if (throwOnError) throw new XmlException(SR.XmlBadName, new string[] { nodeKind.ToString(), localName }); 577if (throwOnError) throw new XmlException(SR.XmlNoNameAllowed, nodeKind.ToString());
System\Xml\XPath\XPathNavigator.cs (1)
2149string result = _nav.NodeType.ToString();
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (1)
282s += ((OptimizerPatternName)pattNum).ToString();
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (1)
380s += _constrMeth.ToString();
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (5)
1572throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { constructorType.ToString(), XmlStateToNodeType(_xstate).ToString() }); 1577throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { constructorType.ToString(), _rootType.ToString() }); 1585throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { "Unknown", XmlStateToNodeType(_xstate).ToString() });
System\Xml\Xsl\XmlQueryType.cs (1)
410sb.Append(this[i].TypeCode.ToString());
System.Reflection.Metadata (3)
System\Reflection\Metadata\Signatures\SignatureHeader.cs (3)
117sb.Append(Kind.ToString()); 122sb.Append(CallingConvention.ToString()); 128sb.Append(Attributes.ToString());
System.Resources.Extensions (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
493typeString = typeCode.ToString(); 1031Debug.Assert(!string.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers."); 1032return "ResourceTypeCode." + typeCode.ToString();
System.Security.Cryptography (18)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.SignVerify.cs (2)
64signatureFormat.ToString()); 100signatureFormat.ToString());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (1)
63SR.Format(SR.Cryptography_CurveNotSupported, curve.CurveType.ToString()));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (1)
75throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_CurveNotSupported, curve.CurveType.ToString()));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.SignVerify.cs (1)
66signatureFormat.ToString());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
67encryptionAlgorithm.ToString()); 76encryptionAlgorithm.ToString());
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
28targetFormat.ToString()); 49currentFormat.ToString());
System\Security\Cryptography\Base64Transforms.cs (2)
389public static void ThrowArgumentNull(ExceptionArgument argument) => throw new ArgumentNullException(argument.ToString()); 391public static void ThrowArgumentOutOfRange(ExceptionArgument argument) => throw new ArgumentOutOfRangeException(argument.ToString(), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Security\Cryptography\CngAlgorithmCore.cs (1)
112throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_CurveNotSupported, curve.Value.CurveType.ToString()));
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
531SR.Format(SR.Cryptography_CurveNotSupported, ecParameters.Curve.CurveType.ToString()));
System\Security\Cryptography\ECCurve.cs (1)
245throw new CryptographicException(SR.Format(SR.Cryptography_CurveNotSupported, CurveType.ToString()));
System\Security\Cryptography\ECDiffieHellmanCng.Key.cs (1)
94throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_CurveNotSupported, curve.CurveType.ToString()));
System\Security\Cryptography\ECDsaCng.Key.cs (1)
83throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_CurveNotSupported, curve.CurveType.ToString()));
System\Security\Cryptography\RSAEncryptionPadding.cs (1)
132return _mode.ToString() + _oaepHashAlgorithm.Name;
System\Security\Cryptography\RSASignaturePadding.cs (1)
84return _mode.ToString();
System.Security.Cryptography.Cose (3)
System\Security\Cryptography\Cose\CoseKey.cs (3)
186throw new CryptographicException(SR.Format(SR.Sign1UnsupportedKey, KeyType.ToString())); 211throw new CryptographicException(SR.Format(SR.Sign1UnsupportedKey, KeyType.ToString())); 263throw new ArgumentException(SR.Sign1UnsupportedKey, KeyType.ToString());
System.Security.Cryptography.Pkcs (4)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
86recipientInfo.Type.ToString());
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
137recipient.RecipientIdentifierType.ToString());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
67encryptionAlgorithm.ToString()); 76encryptionAlgorithm.ToString());
System.Security.Principal.Windows (8)
System\Security\Principal\WindowsIdentity.cs (8)
1118claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1124claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1132claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1138claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1171claim.Properties.Add(ClaimTypes.WindowsSubAuthority, sid.IdentifierAuthority.ToString()); 1177claim.Properties.Add(ClaimTypes.WindowsSubAuthority, sid.IdentifierAuthority.ToString()); 1219claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString()); 1227claim.Properties.Add(ClaimTypes.WindowsSubAuthority, groupSid.IdentifierAuthority.ToString());
System.ServiceModel.Federation (1)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
149return new InvalidOperationException(SR.Format(SR.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(), State.ToString()));
System.ServiceModel.Http (7)
System\ServiceModel\BasicHttpSecurity.cs (1)
24Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
System\ServiceModel\BasicHttpsSecurityMode.cs (1)
40Fx.Assert(mode == BasicHttpSecurityMode.Transport || mode == BasicHttpSecurityMode.TransportWithMessageCredential, string.Format(CultureInfo.InvariantCulture, "Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
186clientWebSocket.Options.SetRequestHeader(WebSocketTransportSettings.BinaryEncoderTransferModeHeader, _channelFactory.TransferMode.ToString());
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
168statusDescription = response.StatusCode.ToString();
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
78_webSocketCloseDetails.OutputCloseStatus.ToString(), 97_webSocketCloseDetails.OutputCloseStatus.ToString(), 111_webSocketCloseDetails.OutputCloseStatus.ToString(),
System.ServiceModel.NetFramingBase (5)
System\ServiceModel\Channels\FramingDecoders.cs (5)
397SR.FramingModeNotSupported, mode.ToString())), FramingEncodingString.UnsupportedModeFault); 432return new InvalidDataException(SR.Format(SR.FramingRecordTypeMismatch, expectedType.ToString(), foundType.ToString())); 486get { return CurrentState.ToString(); } 615get { return CurrentState.ToString(); }
System.ServiceModel.NetTcp (2)
System\ServiceModel\NetTcpSecurity.cs (2)
23mode.ToString(), 25SecurityMode.Transport.ToString()));
System.ServiceModel.Primitives (31)
Extensions\XmlReaderExtensions.cs (2)
16throw new XmlException(SRP.Format(SRP.Xml_InvalidNodeType, reader.NodeType.ToString()), null, lineInfo?.LineNumber ?? 0, lineInfo?.LinePosition ?? 0); 27throw new XmlException(SRP.Format(SRP.Xml_InvalidNodeType, reader.NodeType.ToString()), null, lineInfo?.LineNumber ?? 0, lineInfo?.LinePosition ?? 0);
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
275channelName = traceChannel.ToString();
Internals\System\Xml\XmlMtomWriter.cs (8)
1206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPreface, state.ToString()))); 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPart, state.ToString()))); 1241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPart, state.ToString()))); 1263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForClose, state.ToString()))); 1288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForClose, state.ToString()))); 1338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForHeader, state.ToString()))); 1358throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForContent, state.ToString()))); 1377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForContent, state.ToString())));
System\ServiceModel\Channels\AuthenticationSchemesHelper.cs (1)
43return authScheme.ToString().ToLowerInvariant();
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (2)
163CompressionFormat.ToString(), 165CompressionFormat.None.ToString())));
System\ServiceModel\Channels\ChannelParameterCollection.cs (4)
90channel.GetType().ToString(), state.ToString()); 95channel.GetType().ToString(), state.ToString()); 118channel.GetType().ToString(), state.ToString()); 130channel.GetType().ToString(), state.ToString());
System\ServiceModel\Channels\CommunicationObject.cs (2)
334return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(), _state.ToString())); 339return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeModifiedInState, GetCommunicationObjectType().ToString(), _state.ToString()));
System\ServiceModel\Channels\Message.cs (1)
1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MessageBodyReaderInvalidReadState, bodyReader.ReadState.ToString())));
System\ServiceModel\Channels\ReliableChannelBinder.cs (1)
517GetType().ToString(), State.ToString()));
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
609sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString())); 611sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString()));
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
219return authenticationLevel.ToString();
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
250Exception e = new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetType().ToString(), state.ToString()));
System\ServiceModel\Security\SecurityProtocol.cs (2)
580Fx.Assert("Unknown token attachment mode " + supportingTokens[i].SecurityTokenAttachmentMode.ToString()); 581throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnknownTokenAttachmentMode, supportingTokens[i].SecurityTokenAttachmentMode.ToString())));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
154sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString()));
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
134sb.Append(String.Format(CultureInfo.InvariantCulture, "X509ReferenceStyle: {0}", _x509ReferenceStyle.ToString()));
System\ServiceModel\Security\WindowsClientCredential.cs (1)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.UnsupportedTokenImpersonationLevel, "AllowedImpersonationLevel", value.ToString())));
System.ServiceModel.Primitives.Tests (2)
Description\OperationBehaviorTest.cs (2)
84Assert.Equal("Rpc", serializerBehavior.XmlSerializerFormatAttribute.Style.ToString()); 88Assert.Equal("Document", serializerBehavior.XmlSerializerFormatAttribute.Style.ToString());
System.ServiceModel.UnixDomainSocket (2)
System\ServiceModel\UnixDomainSocketSecurity.cs (2)
31mode.ToString(), 33s_defaultMode.ToString()));
System.Speech (14)
Internal\Synthesis\TextWriterEngine.cs (2)
129_writer.WriteAttributeString("level", word.ToString().ToLowerInvariant()); 221_writer.WriteAttributeString("gender", gender.ToString().ToLowerInvariant());
Recognition\SrgsGrammar\SrgsRuleRef.cs (1)
230sb.Append(_type.ToString());
Recognition\SrgsGrammar\SrgsSubset.cs (1)
123return _text + " [" + _matchMode.ToString() + "]";
SR.cs (1)
15string? text = s_resourceManager.GetString(id.ToString());
Synthesis\PromptBuilder.cs (9)
93sPromptRate = rate.ToString().ToLowerInvariant(); 133sVolumeLevel = volume.ToString().ToLowerInvariant(); 160emphasisElement._attributes.Add(new AttributeItem("level", emphasis.ToString().ToLowerInvariant())); 183emphasisElement._attributes.Add(new AttributeItem("level", style.Emphasis.ToString().ToLowerInvariant())); 215sPromptRate = style.Rate.ToString().ToLowerInvariant(); 236sVolumeLevel = style.Volume.ToString().ToLowerInvariant(); 304startVoice._attributes.Add(new AttributeItem("gender", voice.Gender.ToString().ToLowerInvariant())); 958throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, SR.Get(SRID.PromptBuilderInvalidElement), currentElement.ToString(), stackElement._state.ToString()));
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\ThrowHelper.cs (1)
28return argument.ToString();
System.Text.Json.SourceGeneration (1)
Helpers\SourceGeneratorHelpers.cs (1)
15IEnumerable<string> values = value.ToString().Split(s_enumSeparator, StringSplitOptions.RemoveEmptyEntries)
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexNode.cs (1)
3495var sb = new StringBuilder(Kind.ToString());
System.Text.RegularExpressions.Generator (4)
RegexGenerator.Emitter.cs (2)
685helperName = $"IndexOfAny{(negatedCategory ? "Except" : "")}{string.Concat(categories.Slice(0, numCategories).ToArray().Select(c => c.ToString()))}"; 5554string s = options.ToString();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
3495var sb = new StringBuilder(Kind.ToString());
UpgradeToGeneratedRegexCodeFixer.cs (1)
409string optionsLiteral = Literal(((RegexOptions)(int)argument.Value.ConstantValue.Value!).ToString());
System.Transactions.Local (17)
System\Transactions\TransactionsEtwProvider.cs (17)
333TransactionExceptionBase(type.ToString(), message, innerExceptionStr); 337TransactionExceptionLtm(type.ToString(), message, innerExceptionStr); 351TransactionExceptionLtm(type.ToString(), message, innerExceptionStr); 431TransactionDependentCloneCreateLtm(txTraceId.TransactionIdentifier, option.ToString()); 435TransactionDependentCloneCreateOleTx(txTraceId.TransactionIdentifier, option.ToString()); 527EnlistmentStatusLtm(enlistmentTraceId.EnlistmentIdentifier, notificationCall.ToString()); 531EnlistmentStatusOleTx(enlistmentTraceId.EnlistmentIdentifier, notificationCall.ToString()); 559EnlistmentCreatedLtm(enlistmentTraceId.EnlistmentIdentifier, enlistmentType.ToString(), enlistmentOptions.ToString()); 563EnlistmentCreatedOleTx(enlistmentTraceId.EnlistmentIdentifier, enlistmentType.ToString(), enlistmentOptions.ToString()); 740EnlistmentCallbackPositive(enlistmentTraceIdentifier.EnlistmentIdentifier, callback.ToString()); 758EnlistmentCallbackNegative(enlistmentTraceIdentifier.EnlistmentIdentifier, callback.ToString()); 1201TransactionstateEnlist(enlistmentID.EnlistmentIdentifier.ToString(), enlistmentType.ToString(), enlistmentOption.ToString()); 1203TransactionstateEnlist(string.Empty, enlistmentType.ToString(), enlistmentOption.ToString());
System.Windows.Forms (20)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
146Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString())); 177Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
3759throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString())); 4972(selectionMode).ToString()), 4973(DefaultSelectionMode).ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
10745throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, DataGridViewColumnSortMode.Automatic.ToString(), SelectionMode.ToString())); 10877DataGridViewColumnSortMode.Automatic.ToString(), 10878SelectionMode.ToString())); 15377DataGridViewColumnSortMode.Automatic.ToString(), 15378SelectionMode.ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
732throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, (value).ToString(), DataGridView.SelectionMode.ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
77throw new InvalidOperationException(string.Format(SR.DataGridViewColumnHeaderCell_SortModeAndSortGlyphDirectionClash, (value).ToString()));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
153throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString())); 165throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString()));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemWithImageAccessibleObject.cs (2)
50throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString())); 70throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString()));
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
560using BSTR where = new(orientation.ToString());
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButton.cs (1)
81_text = standardButtonResult.ToString();
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
46Text = DockStyle.None.ToString(),
System\Windows\Forms\Design\StyleEditorForm.cs (4)
589sizeType = rowStyle.SizeType.ToString(); 595sizeType = colStyle.SizeType.ToString(); 828member, SizeType.Absolute.ToString(), 919UpdateListViewItem(index, _columnsAndRowsListView.Items[index].SubItems[MemberIndex].Text, type.ToString(), FormatValueString(type, value));
System.Xaml (8)
System\Xaml\InfosetObjects\DeferredWriter.cs (7)
103throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), methodName)); 133throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteEndObject")); 162throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteMember")); 183throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteEndMember")); 222throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteValue")); 247throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteNamespace")); 300throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), nameof(SetLineInfo)));
System\Xaml\Parser\XamlPullParser.cs (1)
1259: base(xamlScanner, SR.Format(SR.UnexpectedNodeType, nodetype.ToString(), parseRule)) { }
vstest.console (5)
Internal\ConsoleLogger.cs (1)
500EqtTrace.Warning("ConsoleLogger.TestMessageHandler: The test message level is unrecognized: {0}", e.Level.ToString());
Processors\PlatformArgumentProcessor.cs (1)
139_runSettingsManager.UpdateRunSettingsNode(RunSettingsPath, platform.ToString());
Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (1)
235_runSettingsManager.UpdateRunSettingsNode(RunSettingsPath, strategy.ToString());
TestPlatformHelpers\TestRequestManager.cs (2)
987InferRunSettingsHelper.UpdateTargetPlatform(document, commonPlatform.ToString(), overwrite: true); 1285runConfiguration.TargetPlatform.ToString());
vstest.console.arm64 (5)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
500EqtTrace.Warning("ConsoleLogger.TestMessageHandler: The test message level is unrecognized: {0}", e.Level.ToString());
src\vstest\src\vstest.console\Processors\PlatformArgumentProcessor.cs (1)
139_runSettingsManager.UpdateRunSettingsNode(RunSettingsPath, platform.ToString());
src\vstest\src\vstest.console\Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (1)
235_runSettingsManager.UpdateRunSettingsNode(RunSettingsPath, strategy.ToString());
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (2)
987InferRunSettingsHelper.UpdateTargetPlatform(document, commonPlatform.ToString(), overwrite: true); 1285runConfiguration.TargetPlatform.ToString());