Base:
method
ToString
System.ValueType.ToString()
1413 references to ToString
aspire (1)
Backchannel\ExtensionBackchannel.cs (1)
499[_token, logLevel.ToString(), message],
Aspire.Dashboard (16)
Components\Controls\StructuredLogDetails.razor.cs (1)
93new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = _viewModel.LogEntry.Severity.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)
135ViewKind = PageViewModel.SelectedViewKind?.ToString() 351new ComponentTelemetryProperty(TelemetryPropertyKeys.MetricsSelectedView, new AspireTelemetryProperty(PageViewModel.SelectedViewKind?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting))
Components\Pages\Resources.razor.cs (2)
860ViewKind = PageViewModel.SelectedViewKind != ResourceViewKind.Table ? PageViewModel.SelectedViewKind.ToString() : null, 897new(TelemetryPropertyKeys.ResourceView, new AspireTelemetryProperty(PageViewModel.SelectedViewKind.ToString(), AspireTelemetryPropertyType.UserSetting)),
Components\Pages\StructuredLogs.razor.cs (3)
364return $"log-row-{entry.Severity.ToString().ToLowerInvariant()}"; 433LogLevelText = PageViewModel.SelectedLogLevel.Id?.ToString().ToLowerInvariant(), 497new ComponentTelemetryProperty(TelemetryPropertyKeys.StructuredLogsSelectedLogLevel, new AspireTelemetryProperty(PageViewModel.SelectedLogLevel.Id?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting)),
DashboardWebApplication.cs (1)
555values[$"Kestrel:Endpoints:{endpointName}:ClientCertificateMode"] = ClientCertificateMode.RequireCertificate.ToString();
Model\StructuredLogsViewModel.cs (1)
90filters.Add(new TelemetryFilter { Field = nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = _logLevel.Value.ToString() });
Otlp\Model\OtlpSpan.cs (4)
101new OtlpDisplayField { DisplayName = "Kind", Key = KnownTraceFields.KindField, Value = Kind.ToString() }, 106props.Add(new OtlpDisplayField { DisplayName = "Status", Key = KnownTraceFields.StatusField, Value = Status.ToString() }); 195KnownTraceFields.KindField => span.Kind.ToString(), 196KnownTraceFields.StatusField => span.Status.ToString(),
Aspire.Dashboard.Components.Tests (4)
Pages\MetricsTests.cs (3)
112ViewKind = MetricViewKind.Table.ToString() 183Assert.Equal(MetricViewKind.Table.ToString(), query["view"]); 288navigationManager.NavigateTo(DashboardUrls.MetricsUrl(resource: "TestApp", meter: "test-meter", instrument: app1InstrumentName, duration: 720, view: MetricViewKind.Table.ToString()));
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
40State = state?.ToString(),
Aspire.Dashboard.Tests (22)
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(); 224config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.ToString(); 251config[DashboardConfigNames.DashboardFrontendAuthModeName.ConfigKey] = FrontendAuthMode.BrowserToken.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\OtlpHttpServiceTests.cs (3)
105config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 129config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString(); 157config[DashboardConfigNames.DashboardOtlpAuthModeName.ConfigKey] = OtlpAuthMode.ApiKey.ToString();
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
40State = state?.ToString(),
Aspire.Hosting (6)
ApplicationModel\EndpointAnnotation.cs (2)
41uriScheme ??= protocol.ToString().ToLowerInvariant(); 118get => _transport ?? (UriScheme == "http" || UriScheme == "https" ? "http" : Protocol.ToString().ToLowerInvariant());
Backchannel\AppHostRpcTarget.cs (1)
101Health = healthStatus?.ToString()
Dashboard\ResourceSnapshot.cs (1)
49yield return (KnownProperties.Resource.HealthState, CustomResourceSnapshot.ComputeHealthStatus(HealthReports, State) is not { } healthStatus ? Value.ForNull() : Value.ForString(healthStatus.ToString()), IsSensitive: false);
Publishing\ManifestPublishingContext.cs (1)
413Writer.WriteString("protocol", endpoint.Protocol.ToString().ToLowerInvariant());
Publishing\PublishingActivityProgressReporter.cs (1)
292InputType = input.InputType.ToString(),
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)
82Value = serviceMode.ToString()
Aspire.Hosting.Yarp (1)
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());
AuthSamples.FunctionalTests (1)
HttpClientExtensions.cs (1)
47var submision = new HttpRequestMessage(new HttpMethod(submit.Method.ToString()), target)
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)
517statusString = 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)
223deploymentResult.DeploymentParameters.RuntimeArchitecture.ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
108.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());
IIS.NewShim.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)
223deploymentResult.DeploymentParameters.RuntimeArchitecture.ToString(),
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
108.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)
351DAMArgument.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)
5397throw new NotImplementedException(finalFrameType.ToString()); 5443throw new NotImplementedException(finalFrameType.ToString()); 5489throw new NotImplementedException(finalFrameType.ToString()); 5575throw new NotImplementedException(finalFrameType.ToString()); 5774throw new NotImplementedException(finalFrameType.ToString()); 5811throw new NotImplementedException(finalFrameType.ToString()); 5835throw 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)
36var 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.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)
363var transferFormatString = transferFormat.ToString(); 393transportExceptions.Add(new TransportFailedException(transportType.ToString(), "The transport is disabled by the client.")); 398transportExceptions.Add(new TransportFailedException(transportType.ToString(), $"The transport does not support the '{transferFormat}' transfer format.")); 423transportExceptions.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)
36var typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
Microsoft.AspNetCore.HttpLogging (1)
RequestBufferingStream.cs (1)
138_ => 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 (13)
Extensions\JsonNodeSchemaExtensions.cs (13)
88schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 136schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 199schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes | JsonSchemaType.Null).ToString(); 240schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 251schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.Number.ToString(); 256schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.Integer.ToString(); 261schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 266schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.Boolean.ToString(); 271schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 276schema[OpenApiSchemaKeywords.TypeKeyword] = JsonSchemaType.String.ToString(); 343schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes & ~JsonSchemaType.Null).ToString(); 446schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes | JsonSchemaType.Null).ToString(); 464schema[OpenApiSchemaKeywords.TypeKeyword] = (schemaTypes | JsonSchemaType.Null).ToString();
Microsoft.AspNetCore.OpenApi.Tests (1)
Integration\OpenApiDocumentIntegrationTests.cs (1)
36var outputDirectory = Path.Combine(baseSnapshotsDirectory, version.ToString());
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
113return argument.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)
198var 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)
133value: DeploymentParameters.HostingModel.ToString());
IISExpressDeployer.cs (3)
120dllRoot = Path.Combine(DeploymentParameters.ApplicationPath, "bin", DeploymentParameters.RuntimeArchitecture.ToString(), 320aspNetCore.SetAttributeValue("hostingModel", DeploymentParameters.HostingModel.ToString()); 348value: DeploymentParameters.HostingModel.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\Certificates\CertificateConfigLoader.cs (1)
180var 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)
817new KeyValuePair<string, string>("Endpoints:End1:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 826new KeyValuePair<string, string>("Endpoints:End1:SslProtocols:0", SslProtocols.Tls13.ToString()), 835new KeyValuePair<string, string>("Endpoints:End1:Sni:Protocols", HttpProtocols.Http1.ToString()), 850new KeyValuePair<string, string>("EndpointDefaults:ClientCertificateMode", ClientCertificateMode.RequireCertificate.ToString()), 863new KeyValuePair<string, string>("EndpointDefaults:SslProtocols:0", SslProtocols.Tls13.ToString()), 1386new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:Protocols", HttpProtocols.None.ToString()), 1387new KeyValuePair<string, string>("Endpoints:End1:Sni:*.example.org:SslProtocols:0", SslProtocols.Tls13.ToString()), 1388new 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 (3)
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 (17)
BackEnd\Client\MSBuildClient.cs (2)
228MSBuildEventSource.Log.MSBuildServerBuildStop(descriptiveCommandLine, _numConsoleWritePackets, _sizeOfConsoleWritePackets, _exitResult.MSBuildClientExitType.ToString(), _exitResult.MSBuildAppExitTypeString ?? string.Empty); 431CommunicationsUtilities.Trace("Failed to send command packet of type '{0}' to server: {1}", packet?.Type.ToString() ?? "Unknown", ex);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (3)
191ErrorUtilities.VerifyThrow(_nodeContexts.ContainsKey(hostContext), "Invalid host context specified: {0}.", hostContext.ToString()); 588CommunicationsUtilities.Trace("For a host context of {0}, spawning dotnet.exe from {1}.", hostContext.ToString(), msbuildAssemblyPath); 613CommunicationsUtilities.Trace("For a host context of {0}, spawning executable from {1}.", hostContext.ToString(), msbuildLocation ?? Constants.MSBuildExecutableName);
BackEnd\Components\Logging\LoggingService.cs (1)
977ErrorUtilities.ThrowInternalError("Expected packet type \"{0}\" but instead got packet type \"{1}\".", nameof(NodePacketType.LogMessage), packet.Type.ToString());
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
661string cacheResultType = cacheResult?.ResultType.ToString() ?? nameof(CacheResultType.None);
BackEnd\Shared\TargetResult.cs (1)
159return ResultCode.ToString();
Evaluation\IntrinsicFunctions.cs (1)
699return Features.CheckFeatureAvailability(featureName).ToString();
FileMatcher.cs (2)
2409throw new NotSupportedException(action.ToString()); 2459throw new NotSupportedException(excludeAction.ToString());
Logging\ConsoleLogger.cs (1)
364KnownTelemetry.LoggingConfigurationTelemetry.ConsoleLoggerVerbosity = Verbosity.ToString();
Logging\FileLogger.cs (1)
93KnownTelemetry.LoggingConfigurationTelemetry.FileLoggerVerbosity = Verbosity.ToString();
LogMessagePacketBase.cs (2)
508ErrorUtilities.VerifyThrow(_buildEvent is not null, "Not Supported LoggingEventType {0}", _eventType.ToString()); 842ErrorUtilities.ThrowInternalError("Not Supported LoggingEventType {0}", eventType.ToString());
NodeEndpointOutOfProcBase.cs (2)
290CommunicationsUtilities.Trace("Changing link status from {0} to {1}", _status.ToString(), newStatus.ToString());
Microsoft.Build.Engine.UnitTests (17)
BackEnd\TaskHostFactory_Tests.cs (1)
206projectInstance.GetPropertyValue("EnumOutput").ShouldBe(TargetBuiltReason.BeforeTargets.ToString());
BuildEventArgsSerialization_Tests.cs (12)
147e => e.Flags.ToString(), 215e => e.BuildReason.ToString(), 466e => e.Importance.ToString(), 506e => e.Importance.ToString(), 536e => e.Importance.ToString(), 539e => e.LoadingContext.ToString(), 710e => e.Importance.ToString(), 732e => e.Kind.ToString(), 832e => e.Importance.ToString(), 862e => e.Importance.ToString(), 869e => e.BuildReason.ToString(), 870e => e.SkipReason.ToString(),
Evaluation\Expander_Tests.cs (1)
2888var currentArchitectureString = RuntimeInformation.OSArchitecture.ToString();
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
634_env.SetEnvironmentVariable("MSBUILD_SDKREFERENCE_PROPERTY_EXPANSION_MODE", data.Mode?.ToString());
ProjectCache\ProjectCacheTests.cs (2)
1654var exceptionLocation = typedValue.ToString(); 1655_env.SetEnvironmentVariable(exceptionLocation, errorKind.ToString());
Microsoft.Build.Framework (4)
AssemblyLoadBuildEventArgs.cs (1)
86RawMessage = FormatResourceStringIgnoreCodeAndKeyword(resourceName, LoadingContext.ToString(), loadingInitiator, AssemblyName, AssemblyPath, MVID.ToString(), AppDomainDescriptor ?? DefaultAppDomainDescriptor);
TargetSkippedEventArgs.cs (1)
184_ => SkipReason.ToString()
Telemetry\BuildCheckTelemetry.cs (2)
70properties["DefaultSeverity"] = buildCheckRuleTelemetryData.DefaultSeverity.ToString(); 76.Select(s => s.ToString()).ToCsvString(false);
Microsoft.Build.Tasks.Core (9)
AssemblyDependency\GenerateBindingRedirects.cs (1)
306attributes.Add(new XAttribute("processorArchitecture", newProcessorArchitecture.ToString()));
AssemblyDependency\ResolveAssemblyReference.cs (2)
255return _warnOrErrorOnTargetArchitectureMismatch.ToString(); 1889location.AssemblyName.AssemblyName.ProcessorArchitecture.ToString(),
FileMatcher.cs (2)
2409throw new NotSupportedException(action.ToString()); 2459throw new NotSupportedException(excludeAction.ToString());
ManifestUtil\DeployManifest.cs (2)
531set => _updateMode = value.ToString(); 547set => _updateUnit = value.ToString();
ResolveSDKReference.cs (2)
1185ResolvedItem.SetMetadata("SupportsMultipleVersions", _supportsMultipleVersions.ToString()); 1451ResolvedItem.SetMetadata(SDKManifest.Attributes.SDKType, SDKType.ToString());
Microsoft.Build.Utilities.Core (2)
FileMatcher.cs (2)
2409throw new NotSupportedException(action.ToString()); 2459throw new NotSupportedException(excludeAction.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 (14)
CodeGen\LocalSlotDebugInfo.cs (1)
39return SynthesizedKind.ToString() + " " + Id.ToString();
Compilation\Compilation.cs (3)
3693return string.Format("{0} ({1})", this.AssemblyName, stage.ToString()); 3699return 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)
63return ((SpecialType)_value).ToString(); 68return ((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 (1)
742typeIdName = typeId.ToString().Replace("__", "+").Replace('_', '.');
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)
80this.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)
38builder.Add(targetScope.ToString(), targetScope);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
172propertiesBuilder.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.CSharp (25)
Binder\Semantics\Conversions\Conversion.cs (1)
1163return this.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());
BoundTree\BoundNode_Source.cs (3)
316append($" {unary.OperatorKind.ToString()} "); 356append(binary.OperatorKind.ToString()); 362appendLine(node.Kind.ToString());
Compilation\CSharpCompilation.cs (1)
4826writeValue(CompilationOptionNames.Nullable, Options.NullableContextOptions.ToString());
CSharpCompilationOptions.cs (4)
682builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadPlatformType, Platform.ToString())); 692builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadCompilationOptionValue, nameof(OutputKind), OutputKind.ToString())); 697builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadCompilationOptionValue, nameof(OptimizationLevel), OptimizationLevel.ToString())); 722builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadCompilationOptionValue, nameof(MetadataImportOptions), MetadataImportOptions.ToString()));
CSharpParseOptions.cs (1)
248builder.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)
624Debug.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.Emit.UnitTests (4)
CodeGen\FixedSizeBufferTests.cs (3)
972[StructLayout( LayoutKind." + layout.ToString() + ", CharSet = CharSet." + charSet.ToString() + @")] 1004[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)
2986text, expected, index: 1, equivalenceKey: Scope.ContainingType.ToString(), 3084text, expected, index: 1, equivalenceKey: Scope.ContainingType.ToString(), 3187text, expected, index: 1, equivalenceKey: Scope.ContainingType.ToString(), 3294text, expected, index: 1, equivalenceKey: Scope.ContainingType.ToString(), 3443CodeActionEquivalenceKey = Scope.ContainingType.ToString(), 3588CodeActionEquivalenceKey = Scope.ContainingProject.ToString(), 3717CodeActionEquivalenceKey = Scope.DependentProjects.ToString(), 3858CodeActionEquivalenceKey = Scope.DependentProjects.ToString(),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
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());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\DiagnosticTest.cs (3)
216string errorCodeName = errorCode.ToString(); 254string errorCodeName = errorCode.ToString(); 505if (!error.ToString().StartsWith("WRN"))
LexicalAndXml\PreprocessorTests.cs (1)
383throw new NotImplementedException(dt.Kind().ToString());
Syntax\SyntaxNodeTests.cs (1)
473Assert.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 (4)
DocumentationComments\CopilotGenerateDocumentationCommentProvider.cs (3)
234if (edit.TagType == DocumentationCommentTagType.Summary && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Summary.ToString(), out var summary) && !string.IsNullOrEmpty(summary)) 238else if (edit.TagType == DocumentationCommentTagType.Remarks && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Remarks.ToString(), out var remarks) && !string.IsNullOrEmpty(remarks)) 250else if (edit.TagType == DocumentationCommentTagType.Returns && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Returns.ToString(), out var returns) && !string.IsNullOrEmpty(returns))
Logging\FunctionIdOptions.cs (1)
21var name = id.ToString();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
QuickInfo\ToolTipAssert.cs (2)
205var stringValue = style.ToString(); 211var 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 (2)
VisualBasicParsingTests.cs (2)
48var expectedKind = SyntaxFacts.GetKeywordKind(pair.Key).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 (6)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
171=> CodeAction.Create(GetTitle(scope), c => ConvertToStructAsync(document, span, scope, isRecord, c), scope.ToString());
ExtractInterface\AbstractExtractInterfaceService.cs (1)
416Debug.Assert(false, string.Format(FeaturesResources.Unexpected_interface_member_kind_colon_0, member.Kind.ToString()));
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)
38builder.Add(targetScope.ToString(), targetScope);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
172propertiesBuilder.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 (1)
Extensions\ProtocolConversions.cs (1)
643var glyphString = glyph.ToString().Replace(nameof(Accessibility.Public), string.Empty)
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)
285Assert.Equal(binderFlags.ToString(), value.Value<string>("topLevelBinderFlags")); 286Assert.Equal(nullableContextOptions.ToString(), value.Value<string>("nullableContextOptions")); 330Assert.Equal(effective.ToString(), obj.Value<string>("languageVersion")); 331Assert.Equal(languageVersion.ToString(), obj.Value<string>("specifiedLanguageVersion"));
DeterministicKeyBuilderTests.cs (3)
316Assert.Equal(outputKind.ToString(), obj.Value<string>("outputKind")); 432Assert.Equal(sourceCodeKind.ToString(), obj.Value<string>("kind")); 433Assert.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)
94await new VerifyCS.Test(identifier: languageVersion.ToString())
Microsoft.CodeAnalysis.Test.Utilities (10)
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\MetadataReaderUtils.cs (2)
326string kind = handle.Kind.ToString(); 438=> typeCode.ToString();
Traits\CompilerTraitDiscoverer.cs (1)
24var value = feature.ToString();
Microsoft.CodeAnalysis.VisualBasic (24)
Compilation\SemanticModel.vb (5)
3593Return String.Format("{0}: {1} ({2})", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position) 3598Return String.Format("{0}: {1} ({2}) at {3}", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position, position) 3618Return String.Format("{0}: {1} ({2}) at {3} ({4})", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, position, [option].ToString()) 3622Return String.Format("{0}: {1} at {2} ({3})", Me.SyntaxTree.FilePath, name, position, [option].ToString()) 3627Return String.Format("{0}: {1} {2} at {3}", Me.SyntaxTree.FilePath, symbol.Kind.ToString(), symbol.Name, position)
Compilation\VisualBasicCompilation.vb (1)
762WriteValue(builder, CompilationOptionNames.OptionStrict, Options.OptionStrict.ToString())
Errors\ErrorFactories.vb (4)
104Return ResourceManager.GetString(id.ToString(), language) 108Return New LocalizableResourceString(id.ToString(), ResourceManager, GetType(ErrorFactory)) 112Return New LocalizableResourceString(id.ToString() + s_titleSuffix, ResourceManager, GetType(ErrorFactory)) 116Return New LocalizableResourceString(id.ToString() + s_descriptionSuffix, ResourceManager, GetType(ErrorFactory))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
376Debug.Assert(Not expr.IsLValue, "stack spilling for lvalue: " + expr.Kind.ToString())
Parser\Parser.vb (2)
763Debug.Assert(False, "Unexpected terminator: " & CurrentToken.Kind.ToString()) 1185Debug.Assert(False, "Unexpected terminator: " & CurrentToken.Kind.ToString())
Semantics\Conversions.vb (1)
281Return _convKind.ToString()
Symbols\NamespaceExtent.vb (1)
73Return String.Format("{0}: {1}", Kind.ToString(), _symbolOrCompilation.ToString())
Syntax\InternalSyntax\SyntaxNode.vb (2)
28Return Me.Kind.ToString() 190Return Kind.ToString & ":" & text
VisualBasicCompilationOptions.vb (6)
1035builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(Platform), Platform.ToString())) 1043builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OutputKind), OutputKind.ToString())) 1047builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OptimizationLevel), OptimizationLevel.ToString())) 1063builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OptionStrict), OptionStrict.ToString())) 1068builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_LibAnycpu32bitPreferredConflict, NameOf(Platform), Platform.ToString())) 1072builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(MetadataImportOptions), MetadataImportOptions.ToString()))
VisualBasicParseOptions.vb (1)
250builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_BadLanguageVersion, LanguageVersion.ToString))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
963Debug.Assert(name IsNot Nothing, "Unexpected node type " + node.Kind().ToString())
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Attributes\AttributeTests_WellKnownAttributes.vb (2)
1954sb.Append(cc.Value.ToString()) 1959sb.Append(charSet.Value.ToString())
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
92_s.AppendLine(indent + node.NodeType.ToString() + "(")
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (28)
Syntax\ManualTests.vb (2)
56If CType(k, SyntaxKind).ToString() = k.ToString Then Continue For ' Skip any "holes" in the SyntaxKind enum 62If CType(k, SyntaxKind).ToString() = k.ToString Then Continue For ' Skip any "holes" in the SyntaxKind enum
Syntax\SyntaxFactsTest.vb (1)
1163"Expected diagnostic when adding line continuation to " & currentToken.Kind.ToString() & " in " & currentToken.Parent.ToString() & ".")
TestSyntaxNodes.vb (25)
3606Assert.Equal(1, collector.GetCount(SyntaxKind.GroupByClause.ToString)) 3629Assert.Equal(1, collector.GetCount(SyntaxKind.CatchFilterClause.ToString)) 3650Assert.Equal(1, collector.GetCount(SyntaxKind.DistinctClause.ToString)) 3674Assert.Equal(1, collector.GetCount(SyntaxKind.RangeCaseClause.ToString)) 3714Assert.Equal(1, collector.GetCount(SyntaxKind.HandlesClause.ToString)) 3715Assert.Equal(1, collector.GetCount(SyntaxKind.HandlesClauseItem.ToString)) 3716Assert.Equal(1, collector.GetCount(SyntaxKind.WithEventsEventContainer.ToString)) 3750Assert.Equal(1, collector.GetCount(SyntaxKind.KeywordEventContainer.ToString)) 3775Assert.Equal(1, collector.GetCount(SyntaxKind.OmittedArgument.ToString)) 3799Assert.Equal(1, collector.GetCount(SyntaxKind.MidExpression.ToString)) 3822Assert.Equal(1, collector.GetCount(SyntaxKind.AggregateClause.ToString)) 3861Assert.Equal(1, collector.GetCount(SyntaxKind.ConstDirectiveTrivia.ToString)) 3862Assert.Equal(1, collector.GetCount(SyntaxKind.IfDirectiveTrivia.ToString)) 3863Assert.Equal(1, collector.GetCount(SyntaxKind.ElseIfDirectiveTrivia.ToString)) 3864Assert.Equal(1, collector.GetCount(SyntaxKind.ElseDirectiveTrivia.ToString)) 3865Assert.Equal(1, collector.GetCount(SyntaxKind.ExternalSourceDirectiveTrivia.ToString)) 3866Assert.Equal(1, collector.GetCount(SyntaxKind.EndExternalSourceDirectiveTrivia.ToString)) 3867Assert.Equal(1, collector.GetCount(SyntaxKind.ExternalChecksumDirectiveTrivia.ToString)) 3868Assert.Equal(1, collector.GetCount(SyntaxKind.RegionDirectiveTrivia.ToString)) 3869Assert.Equal(1, collector.GetCount(SyntaxKind.EndRegionDirectiveTrivia.ToString)) 3935Assert.Equal(1, collector.GetCount(SyntaxKind.RangeArgument.ToString)) 3960Assert.Equal(2, collector.GetCount(SyntaxKind.XmlBracketedName.ToString)) 3978Assert.Equal(1, collector.GetCount(SyntaxKind.IncompleteMember.ToString)) 3998Assert.Equal(1, collector.GetCount(SyntaxKind.SkippedTokensTrivia.ToString)) 4021Assert.Equal(2, collector.GetCount(SyntaxKind.InferredFieldInitializer.ToString))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (18)
BasicTrackingDiagnosticAnalyzer.vb (1)
21Return MyBase.IsAnalyzeNodeSupported(syntaxKind) AndAlso Not s_omittedSyntaxKindRegex.IsMatch(syntaxKind.ToString())
ParserTestUtilities.vb (16)
375Assert.False(node.IsMissing, "Unexpected missing node: " & node.Kind.ToString & node.Span.ToString) 385Assert.True(0 <> node.Span.Length OrElse node.Kind = SyntaxKind.CompilationUnit, "Unexpected 0 width node: " & node.Kind.ToString & node.Span.ToString) 451node.Kind.ToString & node.Span.ToString & 453node.Parent.Kind.ToString & node.Parent.Span.ToString & ")") 658.AppendLine("Actual Errors (on " & node.Kind().ToString & node.Span.ToString & ")") 775Assert.False(node.IsMissing, "Unexpected missing node: " & node.Kind().ToString & node.Span.ToString) 781Not node.IsKind(SyntaxKind.ColonToken), "Unexpected missing token: " & node.Kind().ToString & node.Span.ToString) 797Assert.True(0 <> node.Span.Length, "Unexpected 0 width node: " & node.Kind().ToString & node.Span.ToString) 802Assert.True(0 <> node.Span.Length OrElse node.IsKind(SyntaxKind.EndOfFileToken) OrElse node.IsKind(SyntaxKind.StatementTerminatorToken) OrElse node.IsKind(SyntaxKind.ColonToken), "Unexpected 0 width token: " & node.Kind().ToString & node.Span.ToString) 804Assert.True(0 <> tr.Span.Length, "Unexpected 0 width trivia: " & node.Kind().ToString & node.Span.ToString) 810Assert.True(0 <> tr.Span.Length, "Unexpected 0 width trivia: " & node.Kind().ToString & node.Span.ToString) 840"Both current and previous trivia have Kind=" & tr.Kind.ToString & 841" [See under TokenKind=" & node.Kind().ToString & ", NonTerminalKind=" & node.Parent.Kind.ToString & "]") 856node.Kind().ToString & node.Span.ToString & 858node.Parent.Kind.ToString & node.Parent.Span.ToString & ")")
SyntaxTreeExtensions.vb (1)
82builder.Builder.Append(node.Kind.ToString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
963Debug.Assert(name IsNot Nothing, "Unexpected node type " + node.Kind().ToString())
Microsoft.CodeAnalysis.Workspaces (17)
CodeFixesAndRefactorings\FixAllLogger.cs (1)
78m[FixAllScope] = fixAllState.Scope.ToString();
Differencing\Edit.cs (1)
93var result = Kind.ToString();
Differencing\SequenceEdit.cs (1)
74var result = Kind.ToString();
Editing\DeclarationModifiers.cs (1)
230=> Modifiers.ToString();
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
120=> new(typeCode.ToString(), isComplex: false, isArray: false);
Log\FunctionIdExtensions.cs (1)
14() => Enum.GetValues(typeof(FunctionId)).Cast<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)
609_log.LogMessage(MessageImportance.High, $"{code.ToString()}: {warning}"); 616=> _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)
201warningCode: SigningToolErrorCode.SIGN003.ToString(),
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\ServiceClientModelFactory.cs (1)
235throw new NotSupportedException(type.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)
624_ => new ChatRole(role.ToString()), 666finishReason?.ToString() is not string s ? null :
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
134Assert.Contains(v.ToString(), message.Text); // All enum values are described as strings
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)
36var 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)
537IdentifierName(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 (25)
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,
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 (3)
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 (6)
JsonUtils\JsonManifestUtils.cs (6)
76jField[FieldNames.Type] = typeEnum.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)
1161throw 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 (9)
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());
Telemetry\FileLogger.cs (1)
72var str = functionId.ToString();
Utilities\MemberSymbolViewModel.cs (1)
53public 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.UnitTests (4)
CodeModel\AbstractCodeElementTests`1.vb (4)
133"TextPoint.Line was incorrect for " & part.ToString() & "." & vbCrLf & 141"TextPoint.LineCharOffset was incorrect for " & part.ToString() & "." & vbCrLf & 149"TextPoint.AbsoluteCharOffset was incorrect for " & part.ToString() & "." & vbCrLf & 157"TextPoint.LineLength was incorrect for " & part.ToString() & "." & vbCrLf &
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.NodeNameGenerator.vb (1)
112Dim name = "#op_" & kind.ToString()
ObjectBrowser\DescriptionBuilder.vb (1)
85Debug.Fail("Invalid type kind encountered: " & typeSymbol.TypeKind.ToString())
MSBuild (8)
JsonOutputFormatter.cs (1)
137targetResults["Result"] = targetResult.ResultCode.ToString();
LogMessagePacketBase.cs (2)
508ErrorUtilities.VerifyThrow(_buildEvent is not null, "Not Supported LoggingEventType {0}", _eventType.ToString()); 842ErrorUtilities.ThrowInternalError("Not Supported LoggingEventType {0}", eventType.ToString());
MSBuildClientApp.cs (1)
83KnownTelemetry.PartialBuildTelemetry.ServerFallbackReason = exitResult.MSBuildClientExitType.ToString();
NodeEndpointOutOfProcBase.cs (2)
290CommunicationsUtilities.Trace("Changing link status from {0} to {1}", _status.ToString(), newStatus.ToString());
XMake.cs (2)
3512return (exitCode, exitType.ToString()); 4741jsonNode[featureName] = Features.CheckFeatureAvailability(featureName).ToString();
MSBuildTaskHost (4)
LogMessagePacketBase.cs (2)
508ErrorUtilities.VerifyThrow(_buildEvent is not null, "Not Supported LoggingEventType {0}", _eventType.ToString()); 842ErrorUtilities.ThrowInternalError("Not Supported LoggingEventType {0}", eventType.ToString());
NodeEndpointOutOfProcBase.cs (2)
290CommunicationsUtilities.Trace("Changing link status from {0} to {1}", _status.ToString(), newStatus.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)
1319XmlReader.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();
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.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 (1)
UnifiedSettings\UnifiedSettingsTests.cs (1)
373? new AlternativeDefault<string>(featureFlagAndExperimentValue.Value.featureFlagOption, featureFlagAndExperimentValue.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)
144traceSource.Switch = new SourceSwitch(name, traceSource.DefaultLevel.ToString());
System.Data.Common (28)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
350return 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)
524"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)
350return 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)
567return 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.Tests (1)
System\Drawing\Printing\PrinterSettingsTests.cs (1)
602+ " Duplex=" + printerSettings.Duplex.ToString()
System.Drawing.Primitives (1)
System\Drawing\Color.cs (1)
473color <= 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)
628throw new InvalidOperationException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag.ToString()));
System.IO.Compression (2)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
227throw new InvalidOperationException("InitializationState != " + requiredState.ToString());
System\IO\Compression\ZipArchiveEntry.cs (1)
866CompressionMethodValues.BZip2 or CompressionMethodValues.LZMA => SR.Format(SR.UnsupportedCompressionMethod, CompressionMethod.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)
30throw new NotSupportedException(value.ToString()); 38ContentType.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)
160throw 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)
367throw 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)
227throw 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\EventSource.cs (3)
5409name, ((EventChannel)value).ToString())); 5655channelType = attribs.EventChannelType.ToString(); 5911string 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)
1398return ToString(); 1440/// <summary>This method overload is obsolete; use <see cref="ToString()"/>.</summary> 1443ToString();
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5230Debug.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)
1003return 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)
381s += _constrMeth.ToString();
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (5)
1573throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { constructorType.ToString(), XmlStateToNodeType(_xstate).ToString() }); 1578throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { constructorType.ToString(), _rootType.ToString() }); 1586throw 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\EccKeyFormatHelper.cs (1)
552SR.Format(SR.Cryptography_CurveNotSupported, ecParameters.Curve.CurveType.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)
54encryptionAlgorithm.ToString()); 63encryptionAlgorithm.ToString());
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (2)
102targetFormat.ToString()); 123currentFormat.ToString());
System\Security\Cryptography\Base64Transforms.cs (2)
384public static void ThrowArgumentNull(ExceptionArgument argument) => throw new ArgumentNullException(argument.ToString()); 386public static void ThrowArgumentOutOfRange(ExceptionArgument argument) => throw new ArgumentOutOfRangeException(argument.ToString(), SR.ArgumentOutOfRange_NeedNonNegNum);
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)
54encryptionAlgorithm.ToString()); 63encryptionAlgorithm.ToString());
System.ServiceModel.Federation (1)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
149return new InvalidOperationException(SR.Format(SR.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(), State.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.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)
2882var sb = new StringBuilder(Kind.ToString());
System.Text.RegularExpressions.Generator (4)
RegexGenerator.Emitter.cs (2)
560helperName = $"IndexOfAny{(negatedCategory ? "Except" : "")}{string.Concat(categories.Slice(0, numCategories).ToArray().Select(c => c.ToString()))}"; 5429string s = options.ToString();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
2882var sb = new StringBuilder(Kind.ToString());
UpgradeToGeneratedRegexCodeFixer.cs (1)
294string optionsLiteral = Literal(((RegexOptions)(int)argument.Value.ConstantValue.Value!).ToString());
System.Transactions.Local (17)
System\Transactions\TransactionsEtwProvider.cs (17)
339TransactionExceptionBase(type.ToString(), message, innerExceptionStr); 343TransactionExceptionLtm(type.ToString(), message, innerExceptionStr); 357TransactionExceptionLtm(type.ToString(), message, innerExceptionStr); 437TransactionDependentCloneCreateLtm(txTraceId.TransactionIdentifier, option.ToString()); 441TransactionDependentCloneCreateOleTx(txTraceId.TransactionIdentifier, option.ToString()); 533EnlistmentStatusLtm(enlistmentTraceId.EnlistmentIdentifier, notificationCall.ToString()); 537EnlistmentStatusOleTx(enlistmentTraceId.EnlistmentIdentifier, notificationCall.ToString()); 565EnlistmentCreatedLtm(enlistmentTraceId.EnlistmentIdentifier, enlistmentType.ToString(), enlistmentOptions.ToString()); 569EnlistmentCreatedOleTx(enlistmentTraceId.EnlistmentIdentifier, enlistmentType.ToString(), enlistmentOptions.ToString()); 746EnlistmentCallbackPositive(enlistmentTraceIdentifier.EnlistmentIdentifier, callback.ToString()); 764EnlistmentCallbackNegative(enlistmentTraceIdentifier.EnlistmentIdentifier, callback.ToString()); 1207TransactionstateEnlist(enlistmentID.EnlistmentIdentifier.ToString(), enlistmentType.ToString(), enlistmentOption.ToString()); 1209TransactionstateEnlist(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)
3760throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString())); 4973(selectionMode).ToString()), 4974(DefaultSelectionMode).ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
10748throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, DataGridViewColumnSortMode.Automatic.ToString(), SelectionMode.ToString())); 10880DataGridViewColumnSortMode.Automatic.ToString(), 10881SelectionMode.ToString())); 15380DataGridViewColumnSortMode.Automatic.ToString(), 15381SelectionMode.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()