Base:
method
ToString
System.ValueType.ToString()
1482 references to ToString
aspire (11)
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))
Certificates\NativeCertificateToolRunner.cs (1)
29? certificateManager.GetTrustLevel(cert).ToString()
Commands\GroupedHelpWriter.cs (1)
196_ => group.ToString(),
Commands\RootCommand.cs (1)
81return level.HasValue ? ["--log-level", level.Value.ToString()] : null;
Commands\RunCommand.cs (1)
548_ => entry.LogLevel.ToString().ToUpperInvariant()
Diagnostics\FileLoggerProvider.cs (1)
261_ => logLevel.ToString().ToUpperInvariant()
Interaction\SpectreConsoleLoggerProvider.cs (1)
74_ => logLevel.ToString().ToLower()
Utils\EnvironmentChecker\DotNetSdkCheck.cs (1)
44var architecture = System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
Utils\EnvironmentChecker\EnvironmentCheckResult.cs (1)
101writer.WriteStringValue(value.ToString().ToLowerInvariant());
Utils\SdkInstallHelper.cs (1)
63_ => result.ToString().ToLowerInvariant()
Aspire.Dashboard (29)
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\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(), 651new 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)
267SeverityText = log.Severity.ToString(), 751HealthStatus = resource.HealthStatus?.ToString(), 777Status = 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(); 236config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 263config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString();
Integration\McpServiceTests.cs (2)
78config[DashboardConfigNames.DashboardMcpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 101config[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(); 209config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 231config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 253config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 274config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 293config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 314config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 333config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 334config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.Unsecured.ToString(); 354config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 355config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 380config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 381config[DashboardConfigNames.DashboardApiAuthModeName.ConfigKey] = ApiAuthMode.ApiKey.ToString(); 404config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 406config[DashboardConfigNames.DashboardMcpAuthModeName.ConfigKey] = McpAuthMode.ApiKey.ToString(); 427config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 458config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 491config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 513config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 535config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 554config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.Unsecured.ToString(); 574config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 575config[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)
90uriScheme ??= protocol.ToString().ToLowerInvariant(); 171get => _transport ?? (UriScheme == "http" || UriScheme == "https" ? "http" : Protocol.ToString().ToLowerInvariant());
ApplicationModel\ResourceNotificationService.cs (1)
900error.Append(CultureInfo.InvariantCulture, $" - {report.Name}: {report.Status?.ToString() ?? "Unknown"}");
Ats\NotificationExports.cs (1)
143HealthStatus = 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)
183LogLevel = logLevel.ToString(), 321InputType = input.InputType.ToString(),
Publishing\ManifestPublishingContext.cs (1)
498Writer.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)
91Value = serviceMode.ToString()
Aspire.Hosting.Tests (2)
Pipelines\DistributedApplicationPipelineTests.cs (1)
1382log.LogLevel.ToString() == expectedLevel &&
Publishing\PipelineActivityReporterTests.cs (1)
968Assert.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());
aspire-server (3)
CodeGeneration\CodeGenerationService.cs (3)
69CapabilityKind = c.CapabilityKind.ToString(), 98Category = t.Category.ToString(), 138Severity = d.Severity.ToString(),
AuthSamples.FunctionalTests (1)
HttpClientExtensions.cs (1)
47var submision = new HttpRequestMessage(new HttpMethod(submit.Method.ToString()), target)
BuildValidator (1)
IldasmUtilities.cs (1)
18return RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
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();
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-dev-certs (2)
Program.cs (1)
521statusString = trustStatus.ToString();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
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)
1027var globalconfigFileName = $"{analysisLevelPropName}_{analysisLevelVersionString}_{analysisMode!.ToString()!.ToLowerInvariant()}"; 1593_ => throw new NotImplementedException(severity.Value.ToString()),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
HealthChecksSample (2)
CustomWriterStartup.cs (2)
46new JProperty("status", result.Status.ToString()), 49new JProperty("status", pair.Value.Status.ToString()),
http2cat (2)
Program.cs (1)
40Trace.Assert(headersFrame.Type == Http2FrameType.HEADERS, headersFrame.Type.ToString());
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
Http3SampleApp (1)
Program.cs (1)
27var cert = CertificateLoader.LoadFromStoreCert("localhost", StoreName.My.ToString(), StoreLocation.CurrentUser, false);
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
222deploymentResult.DeploymentParameters.RuntimeArchitecture.ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
107.SetAttributeValue("hostingModel", model.ToString());
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
IIS.LongTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
IIS.NewHandler.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
222deploymentResult.DeploymentParameters.RuntimeArchitecture.ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
107.SetAttributeValue("hostingModel", model.ToString());
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
illink (7)
ILLink.RoslynAnalyzer (4)
DynamicallyAccessedMembersAnalyzer.cs (1)
380DAMArgument.Add(DynamicallyAccessedMembersAnalyzer.attributeArgument, mismatchedArgument.ToString());
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
70: mt.ToString();
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
42_ => throw new System.ArgumentException(type.ToString())
TrimAnalysis\DiagnosticContext.cs (1)
81DAMArgument.Add("attributeArgument", expectedAnnotationsValue.DynamicallyAccessedMemberTypes.ToString());
InMemory.FunctionalTests (10)
Http2\Http2ConnectionTests.cs (7)
5408throw new NotImplementedException(finalFrameType.ToString()); 5454throw new NotImplementedException(finalFrameType.ToString()); 5500throw new NotImplementedException(finalFrameType.ToString()); 5586throw new NotImplementedException(finalFrameType.ToString()); 5785throw new NotImplementedException(finalFrameType.ToString()); 5822throw new NotImplementedException(finalFrameType.ToString()); 5846throw new NotImplementedException(finalFrameType.ToString());
Http2\Http2TimeoutTests.cs (2)
288throw new NotImplementedException(finalFrameType.ToString()); 315throw new NotImplementedException(finalFrameType.ToString());
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
176return (protocol?.ToString() ?? "null").Replace(", ", "-");
Interop.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
Metrics (6)
MetricsOutputWriter.cs (1)
63writer.WriteStartElement(data.Symbol.Kind.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Metrics.Legacy (6)
src\RoslynAnalyzers\Tools\Metrics\MetricsOutputWriter.cs (1)
63writer.WriteStartElement(data.Symbol.Kind.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.AspNetCore.App.Analyzers (1)
src\Shared\RoslynUtils\WellKnownTypes.cs (1)
37var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (2)
295var element = new XElement(node.Kind.ToString()); 306var element = new XElement(token.Kind.ToString());
Microsoft.AspNetCore.Authentication.Negotiate (2)
Internal\NegotiateState.cs (1)
32error = new AuthenticationFailureException(authStatus.ToString());
NegotiateHandler.cs (1)
139Logger.NegotiateError(errorType.ToString());
Microsoft.AspNetCore.BrowserTesting (5)
BrowserManager.cs (5)
86GetBrowserInstance(browserInstance.ToString(), contextInfo); 98GetBrowserInstance(browserInstance.ToString(), contextName, contextInfo); 110GetBrowserInstance(browserInstance.ToString(), contextName, options, contextInfo); 163_launchBrowsers.ContainsKey(browserKind.ToString()); 167_browserManagerConfiguration.DisabledBrowsers.Contains(browserKind.ToString()) ||
Microsoft.AspNetCore.Components (1)
RenderTree\RenderTreeDiffBuilder.cs (1)
772frameTypes.Add(renderTree[i].FrameTypeField.ToString());
Microsoft.AspNetCore.Components.Tests (4)
BindConverterTest.cs (2)
246var expected = value.ToString(); 260var expected = value.ToString();
EventCallbackFactoryBinderExtensionsTest.cs (2)
358await binder.InvokeAsync(new ChangeEventArgs() { Value = expectedValue.ToString(), }); 377await binder.InvokeAsync(new ChangeEventArgs() { Value = expectedValue.ToString(), });
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.DataProtection.Tests (5)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (5)
32int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_CBC$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 33string hashAlgorithm = Regex.Match(validationAlgorithm.ToString(), @"^HMAC(?<hashAlgorithm>.*)$").Groups["hashAlgorithm"].Value; 60int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_GCM$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 86int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_GCM$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 123int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_CBC$").Groups["keyLength"].Value, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (17)
CertificateManagerTests.cs (17)
140Output.WriteLine(creation.ToString()); 172Output.WriteLine(creation.ToString()); 205Output.WriteLine(creation.ToString()); 236Output.WriteLine(creation.ToString()); 269Output.WriteLine(creation.ToString()); 296Output.WriteLine(creation.ToString()); 336Output.WriteLine(creation.ToString()); 367Output.WriteLine(creation.ToString()); 387Output.WriteLine(creation.ToString()); 407Output.WriteLine(creation.ToString()); 426Output.WriteLine(creation.ToString()); 434Output.WriteLine(alreadyExist.ToString()); 448Output.WriteLine(creation.ToString()); 465Output.WriteLine(creation.ToString()); 484Output.WriteLine(creation.ToString()); 490Output.WriteLine(creation.ToString()); 496Output.WriteLine(creation.ToString());
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.Diagnostics.HealthChecks.Tests (1)
HealthCheckMiddlewareTests.cs (1)
307var json = JsonConvert.SerializeObject(new { status = r.Status.ToString(), });
Microsoft.AspNetCore.Hosting (1)
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
51RuntimeInformation.ProcessArchitecture.ToString(),
Microsoft.AspNetCore.Http.Connections.Client (9)
HttpConnection.cs (4)
360var transferFormatString = transferFormat.ToString(); 390transportExceptions.Add(new TransportFailedException(transportType.ToString(), "The transport is disabled by the client.")); 395transportExceptions.Add(new TransportFailedException(transportType.ToString(), $"The transport does not support the '{transferFormat}' transfer format.")); 420transportExceptions.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\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
49return tokenType.ToString();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
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.Identity.FunctionalTests (1)
Extensions\HttpClientExtensions.cs (1)
49var submision = new HttpRequestMessage(new HttpMethod(submit.Method.ToString()), target)
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\EnumTypeModelBinderTest.cs (4)
88Assert.Equal(expected, boundModel.ToString()); 112Assert.Equal(expected, boundModel.ToString()); 174Assert.Equal(expected, boundModel.ToString()); 199Assert.Equal(expected, boundModel.ToString());
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
DataAnnotationsMetadataProviderTest.cs (1)
33{ new DataTypeAttribute(DataType.Duration), d => d.DataTypeName, DataType.Duration.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.Mvc.TagHelpers.Test (2)
FormTagHelperTest.cs (2)
383var expectedAttribute = new TagHelperAttribute("method", method.ToString().ToLowerInvariant()); 416Method = method.ToString().ToLowerInvariant()
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (33)
Rendering\HtmlHelperFormExtensionsTest.cs (14)
394method.ToString().ToLowerInvariant(), 438method.ToString().ToLowerInvariant(), 482method.ToString().ToLowerInvariant(), 522method.ToString().ToLowerInvariant(), 678method.ToString().ToLowerInvariant(), 724method.ToString().ToLowerInvariant(), 770method.ToString().ToLowerInvariant(), 816method.ToString().ToLowerInvariant(), 864method.ToString().ToLowerInvariant(), 1162method.ToString().ToLowerInvariant(), 1206method.ToString().ToLowerInvariant(), 1250method.ToString().ToLowerInvariant(), 1294method.ToString().ToLowerInvariant(), 1339method.ToString().ToLowerInvariant(),
Rendering\HtmlHelperFormTest.cs (2)
227method.ToString().ToLowerInvariant(), 276method.ToString().ToLowerInvariant(),
Rendering\HtmlHelperSelectTest.cs (17)
64new SelectListItem { Text = SelectSources.ModelStateEntry.ToString() }, 65new SelectListItem { Text = SelectSources.ModelStateEntryWithPrefix.ToString() }, 66new SelectListItem { Text = SelectSources.ViewDataEntry.ToString() }, 67new SelectListItem { Text = SelectSources.PropertyOfViewDataEntry.ToString() }, 68new SelectListItem { Text = SelectSources.ViewDataEntryWithPrefix.ToString() }, 69new SelectListItem { Text = SelectSources.PropertyOfViewDataEntryWithPrefix.ToString() }, 70new SelectListItem { Text = SelectSources.ModelValue.ToString() }, 71new SelectListItem { Text = SelectSources.PropertyOfModel.ToString() }, 415SelectSources.ModelStateEntry.ToString()); 419SelectSources.ModelStateEntryWithPrefix.ToString()); 452SelectSources.ModelStateEntry.ToString()); 456SelectSources.ModelStateEntryWithPrefix.ToString()); 818SelectSources.ModelStateEntry.ToString()); 822SelectSources.ModelStateEntryWithPrefix.ToString()); 855SelectSources.ModelStateEntry.ToString()); 859SelectSources.ModelStateEntryWithPrefix.ToString()); 1544return $"<option{ GetSelected(optionSource, source) }>HtmlEncode[[{ optionSource.ToString() }]]</option>";
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(); 364schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes & ~JsonSchemaType.Null).ToString(); 493schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes | JsonSchemaType.Null).ToString();
Microsoft.AspNetCore.OpenApi.Tests (1)
Integration\OpenApiDocumentIntegrationTests.cs (1)
46var outputDirectory = Path.Combine(baseSnapshotsDirectory, version.ToString());
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
438_ => throw new NotImplementedException(input.ToString()),
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (11)
AuthenticationTests.cs (7)
58Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 80Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 202var authTypeList = authType.ToString().Split(new char[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries); 249var authTypeList = authType.ToString().Split(new char[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries); 272var authTypeList = authType.ToString().Split(new char[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries); 316var authTypeList = authType.ToString().Split(new char[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries); 367Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.First().Scheme);
Listener\AuthenticationOnExistingQueueTests.cs (2)
88Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 112Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase);
RequestHeaderTests.cs (1)
231var key = testRow.Key.ToString();
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
51RuntimeInformation.ProcessArchitecture.ToString(),
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.IntegrationTesting.IIS (4)
IISDeployer.cs (1)
135value: DeploymentParameters.HostingModel.ToString());
IISExpressDeployer.cs (3)
120dllRoot = Path.Combine(DeploymentParameters.ApplicationPath, "bin", DeploymentParameters.RuntimeArchitecture.ToString(), 322aspNetCore.SetAttributeValue("hostingModel", DeploymentParameters.HostingModel.ToString()); 350value: DeploymentParameters.HostingModel.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\Infrastructure\KestrelMetrics.cs (1)
359tags.Add("network.transport", localEndpoint.AddressFamily.ToString());
Internal\ThrowHelper.cs (1)
26return argument.ToString();
KestrelBadHttpRequestException.cs (1)
22=> throw GetException(reason, method.ToString().ToUpperInvariant());
KestrelServerOptions.cs (1)
372writer.WriteString(nameof(listenOptions.Protocols), listenOptions.Protocols.ToString());
ListenOptionsHttpsExtensions.cs (1)
117return listenOptions.UseHttps(CertificateLoader.LoadFromStoreCert(subject, storeName.ToString(), location, allowInvalid), configureOptions);
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
234throw new NotImplementedException(_state.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
176return (protocol?.ToString() ?? "null").Replace(", ", "-");
Microsoft.AspNetCore.Server.Kestrel.Tests (8)
KestrelConfigurationLoaderTests.cs (8)
1065new KeyValuePair<string, string>("Endpoints:End1:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 1074new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", SslProtocols.Tls13.ToString()), 1083new KeyValuePair<string, string>("Endpoints:End1:Sni:Protocols", HttpProtocols.Http1.ToString()), 1098new KeyValuePair<string, string>("EndpointDefaults:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 1111new KeyValuePair<string, string>("EndpointDefaults:SslProtocols:0", SslProtocols.Tls13.ToString()), 1634new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:Protocols", HttpProtocols.None.ToString()), 1635new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:SslProtocols:0", SslProtocols.Tls13.ToString()), 1636new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()),
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.ToString();
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
438_ => throw new NotImplementedException(input.ToString()),
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
234throw new NotImplementedException(_state.ToString());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Hubs.cs (1)
98return Context.Features.Get<IHttpTransportFeature>().TransportType.ToString();
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
49return tokenType.ToString();
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (1)
49return tokenType.ToString();
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
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\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.Framework (10)
AssemblyLoadBuildEventArgs.cs (1)
86RawMessage = FormatResourceStringIgnoreCodeAndKeyword(resourceName, LoadingContext.ToString(), loadingInitiator, AssemblyName, AssemblyPath, MVID.ToString(), AppDomainDescriptor ?? DefaultAppDomainDescriptor);
TargetSkippedEventArgs.cs (1)
182_ => SkipReason.ToString()
Telemetry\BuildCheckTelemetry.cs (2)
70properties["DefaultSeverity"] = buildCheckRuleTelemetryData.DefaultSeverity.ToString(); 76.Select(s => s.ToString()).ToCsvString(false);
Telemetry\CrashTelemetry.cs (4)
344telemetryItems.Add(nameof(ExitType), ExitType.ToString()); 359telemetryItems.Add(nameof(CrashOrigin), CrashOrigin.ToString()); 394AddIfNotNull(ExitType.ToString(), nameof(ExitType)); 409AddIfNotNull(CrashOrigin.ToString(), nameof(CrashOrigin));
Telemetry\CrashTelemetryRecorder.cs (2)
147faultEvent.Properties[$"{TelemetryConstants.PropertyPrefix}ExitType"] = crashTelemetry.ExitType.ToString(); 148faultEvent.Properties[$"{TelemetryConstants.PropertyPrefix}CrashOrigin"] = crashTelemetry.CrashOrigin.ToString();
Microsoft.Cci.Extensions (7)
Differs\Differences.cs (1)
34return en.ToString();
Extensions\CSharp\CSharpCciExtensions.cs (1)
994_ => visibility.ToString().ToLowerInvariant(),
Writers\CSharp\CSDeclarationWriter.Attributes.cs (4)
23securityAttributes = securityAttributes.OrderBy(s => s.Action.ToString(), StringComparer.OrdinalIgnoreCase); 76string.Join("|", ops.ToString().Split(',').Select(x => "System.Runtime.CompilerServices.MethodImplOptions." + x.TrimStart())) : 77ops.ToString(); 159Write("System.Security.Permissions.SecurityAction." + action.ToString());
Writers\CSharp\CSDeclarationWriter.Types.cs (1)
30string layoutKind = string.Format("System.Runtime.InteropServices.LayoutKind.{0}", type.Layout.ToString());
Microsoft.CodeAnalysis (15)
CodeGen\LocalSlotDebugInfo.cs (1)
39return SynthesizedKind.ToString() + " " + Id.ToString();
Compilation\Compilation.cs (3)
3771return string.Format("{0} ({1})", this.AssemblyName, stage.ToString()); 3777return 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)
786typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.'); 806Debug.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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (1)
287string.Format(CultureInfo.InvariantCulture, "L({0}) NL:{1}", LiteralValues.Count, NonLiteralState.ToString()[0]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
36builder.Add(targetScope.ToString(), targetScope);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
171propertiesBuilder.Add(UnusedValuePreferenceKey, preference.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
212=> preference.ToString() + isRemovableAssignment;
Microsoft.CodeAnalysis.CSharp (29)
Binder\Semantics\Conversions\Conversion.cs (1)
1163return 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)
4910writeValue(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\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
143var properties = ImmutableDictionary<string, string?>.Empty.Add(nameof(ArrayCreationOperationLocation), operationLocation.ToString());
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (11)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (7)
257var element = new XElement(node.Kind.ToString()); 269node.Kind.ToString(), 278node.Kind.ToString(), 285node.Kind.ToString(), 291node.Kind.ToString(), 304var element = new XElement(token.Kind.ToString()); 323trivia.Kind.ToString(),
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (4)
212var element = new XElement(node.Kind.ToString()); 227var element = new XElement(alternationNode.Kind.ToString()); 236var element = new XElement(token.Kind.ToString()); 258trivia.Kind.ToString(),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\FixedSizeBufferTests.cs (3)
984[StructLayout( LayoutKind." + layout.ToString() + ", CharSet = CharSet." + charSet.ToString() + @")] 1016[StructLayout( LayoutKind." + layout.ToString() + @")]
Emit\EmitMetadataTests.cs (1)
2224CompileAndVerify(comp.WithAssemblyName("EmitWithNoResourcesAllPlatforms_" + platform.ToString()).WithOptions(options));
Microsoft.CodeAnalysis.CSharp.Features (2)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
76throw new System.NotSupportedException("Unexpected name kind: " + expression.Kind().ToString());
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
143var properties = ImmutableDictionary<string, string?>.Empty.Add(nameof(ArrayCreationOperationLocation), operationLocation.ToString());
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
ConvertTupleToStruct\ConvertTupleToStructTests.cs (8)
2823""", index: 1, equivalenceKey: Scope.ContainingType.ToString(), 2916""", index: 1, equivalenceKey: Scope.ContainingType.ToString(), 3015""", index: 1, equivalenceKey: Scope.ContainingType.ToString(), 3118""", index: 1, equivalenceKey: Scope.ContainingType.ToString(), 3266CodeActionEquivalenceKey = Scope.ContainingType.ToString(), 3411CodeActionEquivalenceKey = Scope.ContainingProject.ToString(), 3540CodeActionEquivalenceKey = Scope.DependentProjects.ToString(), 3681CodeActionEquivalenceKey = Scope.DependentProjects.ToString(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\OperatorTests.cs (1)
3249"@operator" => ((BinaryOperatorSignature)child.Value).Kind.ToString(),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\Metadata\PE\LoadingEvents.cs (2)
445var @event = type.GetMember<EventSymbol>(mod1.ToString() + mod2.ToString());
Symbols\Metadata\PE\LoadingProperties.cs (2)
359var property = type.GetMember<PropertySymbol>(mod1.ToString() + mod2.ToString());
Symbols\MockSymbolTests.cs (1)
140builder.AppendFormat("{0} {1}", (sym as NamedTypeSymbol).TypeKind.ToString().ToLower(), sym.Name);
Symbols\Source\PropertyTests.cs (1)
606"Accessor kind: " + accessor.MethodKind.ToString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\DiagnosticTest.cs (3)
216string errorCodeName = errorCode.ToString(); 254string errorCodeName = errorCode.ToString(); 508if (!error.ToString().StartsWith("WRN"))
LexicalAndXml\PreprocessorTests.cs (1)
383throw new NotImplementedException(dt.Kind().ToString());
Syntax\SyntaxNodeTests.cs (1)
547Assert.True(compilationUnit.ContainsDirective(directiveKind), directiveKind.ToString());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTrackingDiagnosticAnalyzer.cs (1)
29return base.IsAnalyzeNodeSupported(syntaxKind) && !s_omittedSyntaxKindRegex.IsMatch(syntaxKind.ToString());
Microsoft.CodeAnalysis.EditorFeatures (9)
DocumentationComments\CopilotGenerateDocumentationCommentProvider.cs (4)
248symbolKey = edit.TagType.ToString() + "-" + edit.SymbolName; 268if (edit.TagType == DocumentationCommentTagType.Summary && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Summary.ToString(), out var summary) && !string.IsNullOrEmpty(summary)) 272else if (edit.TagType == DocumentationCommentTagType.Remarks && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Remarks.ToString(), out var remarks) && !string.IsNullOrEmpty(remarks)) 284else if (edit.TagType == DocumentationCommentTagType.Returns && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Returns.ToString(), out var returns) && !string.IsNullOrEmpty(returns))
IntelliSense\AsyncCompletion\AsyncCompletionLogger.cs (3)
84statistics.WriteTelemetryPropertiesTo(m, prefix: kv.Key.ToString()); 89m[kv.Key.ToString()] = kv.Value.GetCount(); 94kv.Value.WriteTelemetryPropertiesTo(m, prefix: kv.Key.ToString());
Logging\FunctionIdOptions.cs (1)
21var name = id.ToString();
Suggestions\SuggestedActions\EditorSuggestedAction.cs (1)
182map[FixAllLogger.FixAllScope] = fixSome.RefactorOrFixAllState.Scope.ToString();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
QuickInfo\ToolTipAssert.cs (2)
209var stringValue = style.ToString(); 215var stringValue = style.ToString();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
CSharp\Scanner.cs (1)
51? Kind.ToString()
VisualBasic\Scanner.cs (1)
46? Kind.ToString()
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
VisualBasicParsingTests.cs (3)
48var expectedKind = SyntaxFacts.GetKeywordKind(pair.Key).ToString(); 49var actualKind = pair.Value.ToString(); 69var kindText = kind.ToString();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\MemberInfo\TypeImpl.cs (1)
229throw new NotImplementedException(member.MemberType.ToString());
ResultProviderTestBase.cs (1)
482var parts = e.ToString().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries);
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)
832[kind.ToString(), oldValue, newValue]); 897yield return CreateProjectRudeEdit(ProjectSettingKind.Platform, oldOptions.Platform.ToString(), newOptions.Platform.ToString()); 912yield 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)
416Debug.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\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
36builder.Add(targetScope.ToString(), targetScope);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
171propertiesBuilder.Add(UnusedValuePreferenceKey, preference.ToString());
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
212=> preference.ToString() + isRemovableAssignment;
Microsoft.CodeAnalysis.Features.UnitTests (11)
EditAndContinue\RudeEditDiagnosticTests.cs (10)
87Assert.False(d.GetMessage().Contains("{"), kind.ToString()); 93Assert.True(d.GetMessage().Contains("<1>"), kind.ToString()); 94Assert.True(d.GetMessage().Contains("<2>"), kind.ToString()); 95Assert.False(d.GetMessage().Contains("{"), kind.ToString()); 101Assert.True(d.GetMessage().Contains("<1>"), kind.ToString()); 102Assert.True(d.GetMessage().Contains("<2>"), kind.ToString()); 103Assert.True(d.GetMessage().Contains("<3>"), kind.ToString()); 104Assert.False(d.GetMessage().Contains("{"), kind.ToString()); 110Assert.True(d.GetMessage().Contains("<1>"), kind.ToString()); 111Assert.False(d.GetMessage().Contains("{"), kind.ToString());
FindUsages\DefinitionItemFactoryTests.cs (1)
36=> string.Join(" | ", e.ToString().Split(',').Select(s => $"{typeof(TEnum).Name}.{s.Trim()}"));
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Extensions\ProtocolConversions.cs (1)
720var glyphString = glyph.ToString().Replace(nameof(Accessibility.Public), string.Empty)
Handler\CodeActions\CodeActionHelpers.cs (2)
201var flavorStrings = fixAllFlavors.Actions.Select(a => a.RefactorOrFixAllState?.Scope.ToString()).WhereNotNull(); 376var fixAllFlavor = suggestedAction.Flavors.Value.Actions.Where(a => a.RefactorOrFixAllState != null && a.RefactorOrFixAllState.Scope.ToString() == fixAllScope).First();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.Rebuild.UnitTests (9)
BasicDeterministicKeyBuilderTests.cs (2)
148Assert.Equal(effective.ToString(), obj.Value<string>("languageVersion")); 149Assert.Equal(languageVersion.ToString(), obj.Value<string>("specifiedLanguageVersion"));
CSharpDeterministicKeyBuilderTests.cs (4)
294Assert.Equal(binderFlags.ToString(), value.Value<string>("topLevelBinderFlags")); 295Assert.Equal(nullableContextOptions.ToString(), value.Value<string>("nullableContextOptions")); 339Assert.Equal(effective.ToString(), obj.Value<string>("languageVersion")); 340Assert.Equal(languageVersion.ToString(), obj.Value<string>("specifiedLanguageVersion"));
DeterministicKeyBuilderTests.cs (3)
325Assert.Equal(outputKind.ToString(), obj.Value<string>("outputKind")); 441Assert.Equal(sourceCodeKind.ToString(), obj.Value<string>("kind")); 442Assert.Equal(documentationMode.ToString(), obj.Value<string>("documentationMode"));
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (1)
ResxGeneratorTests.cs (1)
99await new VerifyCS.Test(identifier: languageVersion.ToString())
Microsoft.CodeAnalysis.Test.Utilities (11)
Compilation\OperationTreeVerifier.cs (2)
151return kind.ToString(); 378LogString(element.ToString());
Diagnostics\DiagnosticDescription.cs (2)
449sb.Append($".WithDefaultSeverity(DiagnosticSeverity.{_defaultSeverityOpt.Value.ToString()})"); 454sb.Append($".WithEffectiveSeverity(DiagnosticSeverity.{_effectiveSeverityOpt.Value.ToString()})");
Diagnostics\OperationTestAnalyzer.cs (3)
1575binary.OperatorKind.ToString())); 1628binary.OperatorKind.ToString())); 1652unary.OperatorKind.ToString()));
Metadata\IlasmUtilities.cs (1)
29return RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
Metadata\MetadataReaderUtils.cs (2)
346string kind = handle.Kind.ToString(); 458=> typeCode.ToString();
Traits\CompilerTraitDiscoverer.cs (1)
24var value = feature.ToString();
Microsoft.CodeAnalysis.VisualBasic (24)
Compilation\SemanticModel.vb (5)
3586Return String.Format("{0}: {1} ({2})", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position) 3591Return String.Format("{0}: {1} ({2}) at {3}", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position, position) 3611Return String.Format("{0}: {1} ({2}) at {3} ({4})", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, position, [option].ToString()) 3615Return String.Format("{0}: {1} at {2} ({3})", Me.SyntaxTree.FilePath, name, position, [option].ToString()) 3620Return 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.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)
231=> 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);
Serialization\SerializerService.cs (1)
36private static readonly Func<WellKnownSynchronizationKind, string> s_logKind = k => k.ToString();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
179d["Result"] = exception.Result.ToString();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\JsonWriter.cs (2)
112Write(value.ToString()); 197Write(value.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.DotNet.ArcadeLogging (2)
PipelinesLogger.cs (2)
163_builder.AddProperty("state", state.ToString()); 166_builder.AddProperty("result", result.Value.ToString());
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.GenAPI (3)
GenAPITask.cs (3)
71get => _writerType.ToString(); 80get => _syntaxWriterType.ToString(); 89get => _docIdKinds.ToString();
Microsoft.DotNet.Helix.Sdk (1)
ProvisioningProfileProvider.cs (1)
230=> _profileUrlTemplate!.Replace("{PLATFORM}", platform.ToString());
Microsoft.DotNet.SignTool (3)
src\Configuration.cs (2)
663_log.LogMessage(MessageImportance.High, $"{code.ToString()}: {warning}"); 670=> _log.LogWarning(subcategory: null, warningCode: code.ToString(), helpKeyword: null, file: null, lineNumber: 0, columnNumber: 0, endLineNumber: 0, endColumnNumber: 0, message: message);
src\SignToolTask.cs (1)
206warningCode: SigningToolErrorCode.SIGN003.ToString(),
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\ServiceClientModelFactory.cs (1)
235throw new NotSupportedException(type.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.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.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.Primitives (1)
ThrowHelper.cs (1)
82return argument.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\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)
474IdentifierName(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)
162_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)
1230throw 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.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.VisualBasic.Forms.Tests (1)
System\Windows\TestUtilities\TestData\DualTimeZones.vb (1)
9TimeName = zone.ToString
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\Devices\ComputerInfoTests.cs (1)
16Environment.OSVersion.Platform.ToString().Should().Be(info.OSPlatform);
Microsoft.VisualStudio.LanguageServices (10)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
223Debug.Fail("Unsupported member kind: " + symbol.Kind.ToString());
Library\ObjectBrowser\Helpers.cs (2)
37Debug.Fail("Unsupported list type: " + ((_LIB_LISTTYPE)listType).ToString()); 62Debug.Fail("Unsupported object list kind: " + kind.ToString());
Library\ObjectBrowser\Lists\MemberListItem.cs (1)
52Debug.Fail("Unsupported symbol for member: " + symbol.Kind.ToString());
Library\ObjectBrowser\ObjectList.cs (3)
223Debug.Fail("Unexpected type kind: " + typeListItem.Kind.ToString()); 303Debug.Fail("Unexpected member kind: " + memberListItem.Kind.ToString()); 783Debug.Fail("Unsupported object list kind: " + Kind.ToString());
ProjectSystem\Logging\RoslynWorkspaceStructureLogger.cs (1)
179new XAttribute("severity", diagnostic.Severity.ToString()),
Telemetry\FileLogger.cs (1)
72var str = functionId.ToString();
Utilities\MemberSymbolViewModel.cs (1)
49public string Accessibility => Symbol.DeclaredAccessibility.ToString();
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
141var name = "#op_" + kind.ToString();
ObjectBrowser\DescriptionBuilder.cs (1)
85Debug.Fail("Invalid type kind encountered: " + typeSymbol.TypeKind.ToString());
Microsoft.VisualStudio.LanguageServices.Implementation (3)
CodeModel\MethodXml\AbstractMethodXmlBuilder.cs (3)
147_ => throw new InvalidOperationException("Invalid BinaryOperatorKind: " + kind.ToString()), 158_ => throw new InvalidOperationException("Invalid SymbolKind: " + kind.ToString()), 360throw new InvalidOperationException("Invalid symbol kind: " + symbol.Kind.ToString());
PresentationBuildTasks (4)
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\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (1)
127ThrowException(nameof(SR.StyleTagNotSupported), xamlNode.TokenType.ToString(),
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (1)
115ThrowException(nameof(SR.TemplateTagNotSupported), xamlNode.TokenType.ToString(),
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)
1493navInfo != null ? navInfo.NavigationMode.ToString() : NavigationMode.New.ToString(), 1606navigateInfo != 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\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Roslyn.Diagnostics.Analyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (1)
130=> string.Join(" | ", value.ToString().Split(',').Select(s => $"{typeof(TEnum).Name}.{s.Trim()}"));
Roslyn.VisualStudio.DiagnosticsWindow (3)
Loggers\OutputWindowLogger.cs (3)
35OutputPane.WriteLine(string.Format("[{0}] {1} - {2}", Environment.CurrentManagedThreadId, functionId.ToString(), logMessage.GetMessage())); 40OutputPane.WriteLine(string.Format("[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage())); 45var functionString = functionId.ToString() + (cancellationToken.IsCancellationRequested ? " Canceled" : string.Empty);
Roslyn.VisualStudio.Next.UnitTests (3)
UnifiedSettings\UnifiedSettingsTests.cs (3)
374Map = customMaps ?? [.. expectedEnumValues.Select(value => new Map { Result = value.ToString().ToCamelCase(), Match = Convert.ToInt32(value) })] 379? new AlternativeDefault<string>(featureFlagAndExperimentValue.Value.featureFlagOption, featureFlagAndExperimentValue.Value.value.ToString().ToCamelCase()) 393Enum = [.. expectedEnumValues.Select(value => value.ToString().ToCamelCase())],
ServerComparison.FunctionalTests (1)
HelloWorldTest.cs (1)
108throw new NotImplementedException(variant.Server.ToString());
SignalR.Client.FunctionalTestApp (1)
TestHub.cs (1)
112return Context.Features.Get<IHttpTransportFeature>().TransportType.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\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\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.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.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.Common.Tests (1)
System\Drawing\Printing\PrinterSettingsTests.cs (1)
602+ " Duplex=" + printerSettings.Duplex.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)
667throw new InvalidOperationException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag.ToString()));
System.IO.Compression (1)
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)
509writer.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\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
183throw new NotImplementedException(_state.ToString());
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\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)
647throw new ArgumentOutOfRangeException(nameof(impersonationLevel), impersonationLevel.ToString(), SR.net_auth_supported_impl_levels); 773new AuthenticationException(SR.Format(SR.net_auth_context_expectation, _expectedImpersonationLevel.ToString(), PrivateImpersonationLevel.ToString())), 775new AuthenticationException(SR.Format(SR.net_auth_context_expectation, _context.ProtectionLevel.ToString(), _expectedProtectionLevel.ToString())),
System\Net\Security\SslStream.IO.cs (1)
392throw 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\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
264throw new InvalidOperationException("InitializationState != " + requiredState.ToString());
System\Net\WebSockets\ManagedWebSocket.cs (1)
474if (NetEventSource.Log.IsEnabled()) NetEventSource.SendFrameAsyncStarted(this, opcode.ToString(), payloadBuffer.Length);
System.Private.CoreLib (11)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
94Environment.FailFast(reason.ToString());
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\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\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5331Debug.Fail("Unknown DateTimeParseFailure: " + result.failure.ToString());
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
497typeString = typeCode.ToString(); 1035Debug.Assert(!string.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers."); 1036return "ResourceTypeCode." + typeCode.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)
402throw 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()); 5892Throw(SR.Xml_InvalidNodeType, _curNode.type.ToString()); 8935Throw(SR.Xml_InvalidNodeType, _curNode.type.ToString()); 9458throw 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\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
497typeString = typeCode.ToString(); 1035Debug.Assert(!string.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers."); 1036return "ResourceTypeCode." + typeCode.ToString();
System.Security.Cryptography (16)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs (1)
68throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_CurveNotSupported, curve.CurveType.ToString()));
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (2)
277signatureFormat.ToString()); 342signatureFormat.ToString());
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
206signatureFormat.ToString());
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.cs (1)
99SR.Format(SR.Cryptography_CurveNotSupported, curve.CurveType.ToString()));
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (1)
36SR.Format(SR.Cryptography_CurveNotSupported, parameters.Curve.CurveType.ToString()));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
55encryptionAlgorithm.ToString()); 64encryptionAlgorithm.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\EccKeyFormatHelper.cs (1)
552SR.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\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\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
55encryptionAlgorithm.ToString()); 64encryptionAlgorithm.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.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)
3307var sb = new StringBuilder(Kind.ToString());
System.Text.RegularExpressions.Generator (4)
RegexGenerator.Emitter.cs (2)
684helperName = $"IndexOfAny{(negatedCategory ? "Except" : "")}{string.Concat(categories.Slice(0, numCategories).ToArray().Select(c => c.ToString()))}"; 5505string s = options.ToString();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
3307var sb = new StringBuilder(Kind.ToString());
UpgradeToGeneratedRegexCodeFixer.cs (1)
390string 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)
138Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString())); 169Debug.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.Analyzers.CSharp.Tests (1)
ProjectFileReaderTests.cs (1)
189{ $"build_property.{PropertyNameCSharp.HighDpiMode}", value.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.Windows.Forms.Tests (8)
System\Windows\Forms\ApplicationTests.cs (1)
140}, valueParam.ToString());
System\Windows\Forms\CommonDialogTests.cs (3)
143}, runDialogResultParam.ToString(), expectedDialogResultParam.ToString()).Dispose(); 178}, runDialogResultParam.ToString(), expectedDialogResultParam.ToString()).Dispose(); 215}, runDialogResultParam.ToString(), expectedDialogResultParam.ToString()).Dispose();
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4042}, enableHeadersVisualStylesParam.ToString(), rowIndexParam.ToString(), expectedButtonStateParam.ToString()).Dispose();
System\Windows\Forms\ListViewGroupTests.cs (2)
777}, footerParam, valueParam.ToString(), expectedAlignParam.ToString()).Dispose(); 1029}, headerParam, valueParam.ToString(), expectedAlignParam.ToString()).Dispose();
System\Windows\Forms\TabPageTests.cs (1)
642}, useVisualStyleBackColorParam.ToString(), parentAppearanceParam.ToString(), expectedParam.ToArgb().ToString()).Dispose();
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)) { }
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Templates.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
Test.Utilities (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
Text.Analyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
384_ => typeKind.ToString() 397_ => methodKind.ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
107serializeValue: value => value.ToString()); 140serializeValue: value => value == null ? "null" : value.Value.ToString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (1)
24=> arg.ToString();
WinFormsControlsTest (3)
Buttons.cs (3)
54Text = style.ToString(), 75Text = style.ToString(), 96Text = style.ToString()