Base:
method
ToString
System.Object.ToString()
8 overrides of ToString
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
363public override string ToString()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
59public override string ToString()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
74public override string ToString() => _unmodifiedType.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
82public abstract override string ToString();
System\RuntimeType.NativeAot.cs (1)
653public override string ToString()
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
472public override string ToString()
System.Reflection.Emit (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
363public override string ToString()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
282public abstract override string ToString();
408 references to ToString
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (1)
179throw new InvalidCastException($"Cannot cast '{paramName}' from '{value?.GetType().ToString() ?? "null"}' to '{typeof(T)}'");
Aspire.Hosting.RemoteHost (5)
Ats\AtsMarshaller.cs (2)
721return underlying.ToString(); 723return type.ToString();
Ats\CapabilityDispatcher.cs (3)
723return (param.Name ?? $"arg{i}", paramType.ToString(), "null"); 728return (param.Name ?? $"arg{i}", paramType.ToString(), arg.GetType().ToString());
Aspire.Hosting.Rust.Tests (1)
CargoMetadataTests.cs (1)
274field => field.FieldType.ToString().Contains("Aspire.Hosting.Dcp.Process", StringComparison.Ordinal));
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
209? throw new InvalidCastException($"Cannot cast '{paramName}' from '{value?.GetType().ToString() ?? "null"}' to '{typeof(T)}'")
Contract.Fault.IntegrationTests (2)
FaultExceptionTests.cs (2)
45Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Detail == detail, string.Format("expected FaultContractInfo Detail is {0}, actual: {1}", detail.ToString(), TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Detail.ToString()));
Crossgen2Tasks (2)
CommonFilePulledFromSdkRepo\TaskBase.cs (2)
54{"exceptionType", e.GetType().ToString() }, 91s = e.GetType().ToString();
dotnet (3)
CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
49{ "commandResolver", commandResolver.GetType().ToString() }
Telemetry\TelemetryFilter.cs (2)
37{ "exceptionType", exception.GetType().ToString() }, 176s = e.GetType().ToString();
dotnet-aot (3)
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
49{ "commandResolver", commandResolver.GetType().ToString() }
src\sdk\src\Cli\dotnet\Telemetry\TelemetryFilter.cs (2)
37{ "exceptionType", exception.GetType().ToString() }, 176s = e.GetType().ToString();
dotnet-svcutil-lib (85)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (1)
1803throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString()));
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (1)
100throw new InvalidOperationException(string.Format(SRCodeDom.Provider_does_not_support_options, CodeDomProviderType.ToString()));
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
1405throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString()));
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (3)
1793throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1797throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1801throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, null);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (2)
398throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 402throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (2)
77throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 81throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (6)
739throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 743throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 747throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 1072throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 1076throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 1080throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (6)
111throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 115throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 119throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 207throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 211throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 215throw new XmlException(ResXml.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
729throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedOpenGenericType, type.ToString())); 960typeDesc = new TypeDesc(type, CodeIdentifier.MakeValid(TypeName(type)), type.ToString(), kind, null, flags, null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
313if (mapping.TypeDesc.FullName != type.ToString() && !(mapping is EnumMapping))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheChildrenQuery.cs (1)
101if (currentNode.GetType().ToString() == "Microsoft.VisualStudio.Modeling.StoreNavigator")
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (4)
187if (nav.GetType().ToString() == "Microsoft.VisualStudio.Modeling.StoreNavigator") return; 188if (nav.GetType().ToString() == "Microsoft.Xml.DataDocumentXPathNavigator") return; 215if (curr.GetType().ToString() == "Microsoft.VisualStudio.Modeling.StoreNavigator") return; 216if (curr.GetType().ToString() == "Microsoft.Xml.DataDocumentXPathNavigator") return;
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (1)
1027if (n1.GetType().ToString() != "Microsoft.VisualStudio.Modeling.StoreNavigator")
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (5)
597EmitSourceInstruction("Callvirt " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 603EmitSourceInstruction("Static Call " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 609EmitSourceInstruction("Call " + methodInfo.ToString() + " on type " + methodInfo.DeclaringType.ToString()); 617EmitSourceInstruction("Call " + ctor.ToString() + " on type " + ctor.DeclaringType.ToString()); 624EmitSourceInstruction("Newobj " + constructorInfo.ToString() + " on type " + constructorInfo.DeclaringType.ToString());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
489fieldToValueDictionary.Add("_className", value.GetType().ToString());
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
161return String.Format(CultureInfo.CurrentCulture, "{0}/{1}", source.GetType().ToString(), source.GetHashCode());
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenAuthenticator.cs (3)
44tokenType = tokenType ?? token.GetType().ToString(); 55tokenType = tokenType ?? token.GetType().ToString(); 65tokenType = tokenType ?? token.GetType().ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BindingContext.cs (1)
131string typeString = bindingElement.GetType().ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ChannelFactoryCannotBeUsedToCreateChannels, this.GetType().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\ChannelRequirements.cs (2)
276string typeString = channelType.ToString(); 320string typeString = channelType.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (6)
221return new InvalidOperationException(string.Format(SRServiceModel.CommunicationObjectCannotBeUsed, this.GetCommunicationObjectType().ToString(), _state.ToString())); 226return new InvalidOperationException(string.Format(SRServiceModel.CommunicationObjectCannotBeModifiedInState, this.GetCommunicationObjectType().ToString(), _state.ToString())); 231return new InvalidOperationException(string.Format(SRServiceModel.CommunicationObjectBaseClassMethodNotCalled, this.GetCommunicationObjectType().ToString(), method)); 242return new ObjectDisposedException(this.GetCommunicationObjectType().ToString()); 248string message = string.Format(SRServiceModel.CommunicationObjectFaulted1, this.GetCommunicationObjectType().ToString()); 254return new CommunicationObjectAbortedException(string.Format(SRServiceModel.CommunicationObjectAborted1, this.GetCommunicationObjectType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (4)
65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 356this.Complete(false, new ObjectDisposedException(this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
473return string.Format(SRServiceModel.MessageBodyToStringError, e.GetType().ToString(), e.Message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, string.Format(SRServiceModel.ObjectDisposed, this.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (2)
249return typeof(Key).ToString() + ": {" + MessageId + ", " + StateType.ToString() + "}";
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (1)
1414sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (2)
1104string text = string.Format(SRServiceModel.SFxInitializationUINotCalled, example.GetType().ToString()); 1123string text = string.Format(SRServiceModel.SFxInitializationUIDisallowed, example.GetType().ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
50return _proxiedType.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (2)
156this.GetType().ToString(), SRServiceModel.SocketConnectionDisposed), TransferOperation.Undefined)); 166this.GetType().ToString(), SRServiceModel.SocketConnectionDisposed), TransferOperation.Undefined));
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
261return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
300string message = string.Format(SRServiceModel.SFxNullReplyFromFormatter2, this.Formatter.GetType().ToString(), (_name ?? ""));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
121string text = string.Format(SRServiceModel.SFxMultipleCallbackFromSynchronizationContext, _context.GetType().ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (1)
182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnrecognizedIdentityPropertyType, this.IdentityClaim.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\ExceptionDetail.cs (1)
30_type = exception.GetType().ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (1)
61result.Append(this.GetType().ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (2)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SecurityTokenParametersCloneInvalidResult, this.GetType().ToString()))); 95sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (1)
229sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (3)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString())); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(this.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
268string message = string.Format(SRServiceModel.SFxCollectionWrongType2, type.ToString(), typeof(T).ToString());
Metadata\MetadataDocumentSaver.cs (1)
119string typeName = doc.Metadata.GetType().ToString();
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
ILCompiler.Compiler (3)
Compiler\DescriptorMarker.cs (1)
142Debug.Fail(member.GetType().ToString());
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (1)
327Debug.Fail("Trying to operate with unsupported TypeSystemEntity " + entity.GetType().ToString());
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (1)
651string name = nodeType.ToString();
ILCompiler.MetadataTransform (1)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (1)
539return "[@TODO:" + this.GetType().ToString() + "]";
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (1)
651string name = nodeType.ToString();
illink (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1419Logger.InvalidSecurityTokenType(validatedToken?.GetType().ToString());
Microsoft.AspNetCore.Components.Endpoints (1)
Serialization\JsonStoredDataSerializer.cs (1)
138return type.ToString();
Microsoft.AspNetCore.Http.Abstractions (2)
Extensions\UseMiddlewareExtensions.cs (2)
155public override string ToString() => _middleware.ToString(); 197public override string ToString() => _middlewareType.ToString();
Microsoft.AspNetCore.Mvc.Core (1)
MvcCoreLoggerExtensions.cs (1)
274filterList.Add(filter.GetType().ToString());
Microsoft.Build (4)
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
147throw new InvalidOperationException(fragment.GetType().ToString());
src\msbuild\src\Shared\ErrorUtilities.cs (1)
27if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
Utilities\Utilities.cs (2)
730Debug.Fail($"In {nameof(EnumerateProperties)}(): Unexpected property {item} of type {item?.GetType().ToString()}"); 911Debug.Fail($"In {nameof(EnumerateItems)}(): Unexpected {nameof(item)} {item} of type {item?.GetType().ToString()}");
Microsoft.Build.Framework (2)
BuildException\BuildExceptionSerializationHelper.cs (1)
70return exceptionType.FullName ?? exceptionType.ToString();
Utilities\MessageFormatter.cs (1)
224Assumed.NotEqual(argType.ToString(), arg.ToString(), StringComparison.Ordinal, $"Invalid resource arg type, was {argType.FullName}");
Microsoft.Build.Tasks.Core (1)
src\msbuild\src\Shared\ErrorUtilities.cs (1)
27if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
Microsoft.Build.Utilities.Core (1)
src\msbuild\src\Shared\ErrorUtilities.cs (1)
27if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
1442var messageArguments = new[] { analyzerName, e.GetType().ToString(), e.Message, contextInformation }; 1474return string.Format(CodeAnalysisResources.CompilerAnalyzerThrows, analyzerName, ex.GetType().ToString(), ex.Message, ex.CreateDiagnosticDescription()); 1489var messageArguments = new[] { e.GetType().ToString(), e.Message, e.CreateDiagnosticDescription() };
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1095throw ExceptionUtilities.UnexpectedValue(compilationEvent.GetType().ToString());
DiagnosticAnalyzer\DiagnosticAnalyzer.cs (1)
35return this.GetType().ToString();
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
Storage\StorageDatabaseLogger.cs (1)
43m[Kind] = ex.GetType().ToString();
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
72this.type = value == null ? "<null>" : value.GetType().ToString();
Microsoft.Data.Analysis (2)
DataFrameColumn.cs (1)
418dataColumn[0] = DataType.ToString();
PrimitiveDataFrameColumn.cs (1)
192throw new NotImplementedException(type.ToString());
Microsoft.Data.Analysis.Tests (1)
DataFrameTests.cs (1)
778Assert.Equal(df.Columns[i - 1].DataType.ToString(), column[0].ToString());
Microsoft.DotNet.ApiCompat.Task (2)
src\sdk\src\Tasks\Common\TaskBase.cs (2)
54{"exceptionType", e.GetType().ToString() }, 91s = e.GetType().ToString();
Microsoft.Extensions.DependencyInjection (5)
DependencyInjectionEventSource.cs (4)
109ServiceResolved(serviceType.ToString(), provider.GetHashCode()); 125serviceType.ToString(), 137DynamicMethodBuilt(serviceType.ToString(), methodSize, provider.GetHashCode()); 332source.ExpressionTreeGenerated(serviceType.ToString(), visitor.NodeCount, provider.GetHashCode());
ServiceLookup\ServiceIdentifier.cs (1)
67return ServiceType.ToString();
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLogger.cs (1)
142tags.Add(ExceptionType, exception.GetType().ToString());
Microsoft.Gen.Logging.Generated.Tests (1)
TagProviderTests.cs (1)
403["param2.Type"] = obj2.GetType().ToString(),
Microsoft.Maui.Controls (1)
Visuals\VisualTypeConverter.cs (1)
146 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Unable to register {visualType} please add a public default constructor", visualType.ToString());
Microsoft.ML.Data (3)
DataView\DataViewConstructionUtils.cs (2)
905itemType.ToString(), annotationItemType.RawType.ToString());
EntryPoints\SummarizePredictor.cs (1)
89bldr.AddColumn("PredictorName", predictor.GetType().ToString());
Microsoft.ML.Maml (2)
HelpCommand.cs (2)
473new XElement("Type", c.Info.Type.ToString()), 476select new XElement("SignatureType", s.ToString())),
Microsoft.ML.OnnxConverter (1)
OnnxUtils.cs (1)
255string msg = "Unsupported type: " + rawType.ToString();
Microsoft.ML.TimeSeries (1)
AdaptiveSingularSpectrumSequenceModeler.cs (1)
1424var str = "The result argument must be of type " + typeof(SsaForecastResult).ToString();
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
809labelColumnName, typeof(uint).ToString(), 810labelColumn.Type.RawType.ToString());
Microsoft.NET.Build.Extensions.Tasks (2)
src\sdk\src\Tasks\Common\TaskBase.cs (2)
54{"exceptionType", e.GetType().ToString() }, 91s = e.GetType().ToString();
Microsoft.NET.Build.Tasks (2)
src\sdk\src\Tasks\Common\TaskBase.cs (2)
54{"exceptionType", e.GetType().ToString() }, 91s = e.GetType().ToString();
Microsoft.TestPlatform.CrossPlatEngine (2)
Client\TestLoggerManager.cs (2)
661var loggerUri = extensionUri.IsNullOrEmpty() ? logger.GetType().ToString() : extensionUri; 671extensionUri.IsNullOrEmpty() ? logger.GetType().ToString() : extensionUri,
Microsoft.VisualStudio.TestPlatform.Common (3)
ExtensionFramework\TestPluginManager.cs (2)
72EqtTrace.Error("TestPluginManager.CreateTestExtension: Could not create instance of type: " + extensionType.ToString() + " Exception: " + ex); 82EqtTrace.Error("TestPluginManager.CreateTestExtension: Could not create instance of type: " + extensionType.ToString() + " Exception: " + ex);
ExtensionFramework\Utilities\TestExtensionPluginInformation.cs (1)
83EqtTrace.Error("The type \"{0}\" defined in \"{1}\" does not have ExtensionUri attribute.", testLoggerType.ToString(), testLoggerType.Module.Name);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Utility\Converter.cs (2)
217e.GetType().ToString(), 410e.GetType().ToString(),
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
TestProperty\TestProperty.cs (1)
338valueType.ToString(),
MSBuild (1)
src\msbuild\src\Shared\ErrorUtilities.cs (1)
27if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
NuGet.PackageManagement (1)
Resolution\ResolverGather.cs (1)
664string message = String.Format(CultureInfo.CurrentCulture, Strings.ExceptionWhenTryingToAddSource, ex.GetType().ToString(), currentSource);
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (1)
846elementType.ToString(),
PresentationFramework (28)
MS\Internal\Data\DefaultValueConverter.cs (2)
337destinationType.ToString(), 347destinationType.ToString()),
System\Windows\Controls\HeaderedContentControl.cs (1)
385string typeText = this.GetType().ToString();
System\Windows\Controls\HeaderedItemsControl.cs (1)
332string typeText = this.GetType().ToString();
System\Windows\Controls\Primitives\RangeBase.cs (1)
357string typeText = this.GetType().ToString();
System\Windows\Controls\Primitives\ToggleButton.cs (1)
281string typeText = this.GetType().ToString();
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12234ReadOnlySpan<char> name = t.ToString();
System\Windows\Documents\FixedPageStructure.cs (1)
473String typeString = fixedElement.Type.ToString();
System\Windows\Documents\TableCell.cs (1)
88throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TableRow.cs (1)
89throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TableRowGroup.cs (1)
289throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TextStore.cs (1)
4822string name = t.ToString();
System\Windows\Markup\BamlRecordReader.cs (1)
3378element.GetType().ToString(), holder.PropertyDefinition.Name), e);
System\Windows\Markup\Primitives\MarkupWriter.cs (3)
143throw new InvalidOperationException( SR.Format( SR.MarkupWriter_CannotSerializeNestedPublictype, type.ToString() )); 147throw new InvalidOperationException( SR.Format( SR.MarkupWriter_CannotSerializeNonPublictype, type.ToString() )); 151throw new InvalidOperationException( SR.Format( SR.MarkupWriter_CannotSerializeGenerictype, type.ToString() ));
System\Windows\Markup\XamlParseException.cs (1)
339simpleObjectId = objectType.ToString();
System\Windows\Media\Animation\Storyboard.cs (9)
277SR.Format(SR.Storyboard_NameNotFound, targetName, nameScopeUsed.GetType().ToString())); 319SR.Format(SR.Storyboard_NameNotFound, targetName, nameScope.GetType().ToString())); 328SR.Format(SR.Storyboard_NameNotFound, targetName, fe.GetType().ToString())); 337SR.Format(SR.Storyboard_NameNotFound, targetName, fce.GetType().ToString())); 445throw new InvalidOperationException(SR.Format(SR.Storyboard_NoTarget, currentTimeline.GetType().ToString() )); 453throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() )); 575$"Internal error - clockMappings table contains an unexpected object {((mappedObject == null) ? "" : mappedObject.GetType().ToString())}"); 724throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() )); 945throw new InvalidOperationException(SR.Format(SR.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
System\Windows\Navigation\NavigationService.cs (1)
1429_bp != null ? _bp.GetType().ToString() : "null"));
System\Windows\Style.cs (1)
650"Unsupported SetterBase subclass in style triggers ({0})", setterBase.GetType().ToString());
ReachFramework (7)
AlphaFlattener\PrimitiveList.cs (1)
90string typ = p.GetType().ToString();
Serialization\Manager\XpsOMSerializationManager.cs (2)
72serializedObject.GetType().ToString().Contains("FixedDocumentPaginator")) 78serializedObject.GetType().ToString().Contains("FixedDocumentSequencePaginator"))
Serialization\Manager\XpsSerializationManager.cs (2)
102serializedObject.GetType().ToString().Contains( "FixedDocumentPaginator") ) 108serializedObject.GetType().ToString().Contains( "FixedDocumentSequencePaginator") )
Serialization\VisualSerializer.cs (1)
821WriteBrushHeader(brush.GetType().ToString(), brush);
Serialization\VisualTreeFlattener.cs (1)
430_dcf.Comment(visual.GetType().ToString());
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
Security.TransportSecurity.IntegrationTests (2)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (2)
72if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException")) 149if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException"))
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
151(value != null ? value.GetType().ToString() : "null"),
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ExceptionBuilder.cs (1)
32return new ObjectDisposedException(instance.GetType().ToString());
System.Configuration.ConfigurationManager (1)
System\Configuration\ProtectedConfigurationProviderCollection.cs (1)
20typeof(ProtectedConfigurationProvider).ToString()), nameof(provider));
System.Data.Common (5)
System\Data\ColumnTypeConverter.cs (2)
87if (s_types[i].ToString().Equals(value)) 117if (s_types[i].ToString().Equals(value))
System\Data\Filter\FilterException.cs (3)
168return _Eval(SR.Format(SR.Expr_DatatypeConversion, type1.ToString(), type2.ToString())); 173return _Eval(SR.Format(SR.Expr_DatavalueConversion, value.ToString(), type.ToString()));
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
606exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionTypeTag, exception.GetType().ToString()));
System.DirectoryServices.AccountManagement (20)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (3)
465principalType.ToString(), 1334GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheToLdapConverter - Value Type " + kvp.Value.Value.GetType().ToString()); 1368GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheToLdapConverter - Element Value Type " + oVal.GetType().ToString());
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (3)
894GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionTypeConverter collection filter type " + o.GetType().ToString()); 982GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter filter type " + type.ToString()); 992GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter collection filter type " + o.GetType().ToString());
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (1)
217GlobalDebug.WriteLineIf(GlobalDebug.Warn, "SDSUtils", "InsertPrincipal: Bad principal type:" + p.GetType().ToString());
System\DirectoryServices\AccountManagement\Context.cs (4)
656+ e.GetType().ToString() + 758+ e.GetType().ToString() + 913+ e.GetType().ToString() + 1223GlobalDebug.WriteLineIf(GlobalDebug.Info, "PrincipalContext", "ContextForType: type is " + t.ToString());
System\DirectoryServices\AccountManagement\Principal.cs (1)
889throw new ObjectDisposedException(this.GetType().ToString());
System\DirectoryServices\AccountManagement\PrincipalSearcher.cs (4)
187"Dispose: disposing underlying searcher of type " + this.UnderlyingSearcher.GetType().ToString()); 281"SetDefaultPageSizeForContext: type is " + _ctx.QueryCtx.GetType().ToString()); 310GlobalDebug.WriteLineIf(GlobalDebug.Info, "PrincipalSearcher", "HasReferentialPropertiesSet: using type " + t.ToString()); 336throw new ObjectDisposedException(this.GetType().ToString());
System\DirectoryServices\AccountManagement\StoreCtx.cs (2)
371p.GetType().ToString(), 374value.GetType().ToString());
System\DirectoryServices\AccountManagement\User.cs (1)
302"GetAuthorizationGroupsHelper: retrieving AZ groups from StoreCtx of type=" + storeCtx.GetType().ToString() +
System\DirectoryServices\AccountManagement\Utils.cs (1)
162+ e.GetType().ToString() +
System.IO.Compression (4)
System\IO\Compression\ZipArchiveEntry.cs (1)
2277throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName);
System\IO\Compression\ZipCustomStreams.cs (3)
76throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 332throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 725throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName);
System.Linq.Expressions (16)
System\Linq\Expressions\DebugViewWriter.cs (12)
240Out(variable.Type.ToString()); 535Out(member.DeclaringType!.ToString() + "." + member.Name); 774Out(node.Method.DeclaringType.ToString()); 791Out(".NewArray " + node.Type.GetElementType()!.ToString()); 797Out(".NewArray " + node.Type.ToString(), Flow.Space); 805Out(".New " + node.Type.ToString()); 873Out(node.TypeOperand.ToString()); 882Out("(" + node.Type.ToString() + ")"); 885Out("#(" + node.Type.ToString() + ")"); 948Out(node.Type.ToString()); 987Out(".Default(" + node.Type.ToString() + ")"); 1068Out(Flow.NewLine, "} .Catch (" + node.Test.ToString());
System\Linq\Expressions\ExpressionStringBuilder.cs (2)
361else if (sValue == node.Value.GetType().ToString()) 546Out(node.Type.ToString());
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
68public override string ToString() => "TypeIs " + _type.ToString(); 91public override string ToString() => "TypeAs " + _type.ToString();
System.Net.Http (3)
src\runtime\src\libraries\Common\src\System\Net\DebugSafeHandle.cs (1)
30_trace = "WARNING! GC-ed >>" + this.GetType().ToString() + "<< (should be explicitly closed) \r\n";
System\Net\Http\HttpRequestMessage.cs (1)
223sb.Append(_content == null ? "<null>" : _content.GetType().ToString());
System\Net\Http\HttpResponseMessage.cs (1)
192sb.Append(_content == null ? "<null>" : _content.GetType().ToString());
System.Net.Security (1)
src\runtime\src\libraries\Common\src\System\Net\DebugSafeHandle.cs (1)
30_trace = "WARNING! GC-ed >>" + this.GetType().ToString() + "<< (should be explicitly closed) \r\n";
System.Private.CoreLib (24)
src\runtime\src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
98string s = GetType().ToString() + ": " + Message;
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
93string className = GetType().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
65private string GetClassName() => GetType().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
95throw new TypeInitializationException(this.GetType().ToString(), e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
51throw new TypeInitializationException(GetType().ToString(), e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
52throw new TypeInitializationException(GetType().ToString(), e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (1)
56string s = GetType().ToString() + ": " + Message;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (1)
53string s = GetType().ToString() + ": " + Message;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
76string s = GetType().ToString() + ": " + Message;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Object.cs (1)
42return GetType().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
74public override string ToString() => _unmodifiedType.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (2)
70sb.Append(_genericTypeDefinition.ToString()); 76sb.Append(_genericTypeArguments[i].ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureFunctionPointerType.cs (2)
79sb.Append(_returnType.ToString()); 84sb.Append(_parameterTypes[i].ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureModifiedType.cs (1)
59public override string ToString() => _unmodifiedType.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (1)
478Debug.Assert(m_stateObject is null or ExecutionContext, $"Expected {nameof(m_stateObject)} to be null or an ExecutionContext but was {(m_stateObject is object o ? o.GetType().ToString() : "(null)")}.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
375throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType().ToString() ?? string.Empty));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
551if (m_pair.CompletionRequested) throw new InvalidOperationException(GetType().ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
846return ToString();
System\CrashInfo.cs (1)
184if (!WriteStringValue("type"u8, exception.GetType().ToString()))
System\Exception.NativeAot.cs (1)
133string typeName = !fatalOutOfMemory ? ex.GetType().ToString() : "System.OutOfMemoryException";
System\Reflection\Runtime\CustomAttributes\RuntimeCustomAttributeData.cs (1)
148return GetType().ToString();
System\ValueType.cs (1)
31return this.GetType().ToString();
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\PayForPlayExperience\MissingMetadataExceptionCreator.cs (1)
20StringBuilder friendlyName = new StringBuilder(memberInfo.DeclaringType.ToString());
System.Private.Xml (25)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
1782throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1786throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, null); 1790throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, null);
System\Xml\Core\XmlReader.cs (2)
337throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 341throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
System\Xml\Core\XmlReaderAsync.cs (2)
66throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 70throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
System\Xml\Core\XsdValidatingReader.cs (6)
760throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 764throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 768throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 1094throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 1098throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 1102throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
System\Xml\Core\XsdValidatingReaderAsync.cs (6)
110throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 114throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 118throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 210throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 214throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 218throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo);
System\Xml\Serialization\CodeGenerator.cs (2)
1663: base(SR.Format(SR.CodeGenConvertError, reason, sourceType.ToString(), targetType.ToString()))
System\Xml\Serialization\Types.cs (1)
977typeDesc = new TypeDesc(type, CodeIdentifier.MakeValid(TypeName(type)), type.ToString(), kind, null, flags, null);
System\Xml\XPath\XPathNavigator.cs (1)
968if (n1.GetType().ToString() != "Microsoft.VisualStudio.Modeling.StoreNavigator")
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
200throw new XslTransformException(SR.XmlIl_CantResolveEntity, uriRelative, dataSource.GetType().ToString());
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
222throw new XslLoadException(SR.Xslt_CannotLoadStylesheet, uri.ToString(), input == null ? "null" : input.GetType().ToString());
System.Reflection.Context (4)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
474return _typeInfo.ToString();
System\Reflection\Context\Virtual\VirtualMethodBase.cs (2)
138sb.Append(ReturnType.ToString()); 150sb.Append(t.ToString());
System\Reflection\Context\Virtual\VirtualPropertyInfo.cs (1)
81return PropertyType.ToString() + " " + Name;
System.Reflection.MetadataLoadContext (7)
System\Reflection\TypeLoading\Constructors\RoSyntheticConstructor.cs (1)
61sig[position] = psig[position].ParameterType.ToString();
System\Reflection\TypeLoading\CustomAttributes\RoCustomAttributeData.cs (1)
23public sealed override string ToString() => GetType().ToString(); // Does not match .NET Framework output - however, doing so can prematurely
System\Reflection\TypeLoading\General\Helpers.cs (1)
247sb.Append(genericMethodArguments![gpi].ToString());
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (1)
63sig[position] = psig[position].ParameterType.ToString();
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (2)
79StringBuilder sb = new(t.ToString()); 94sb.Append(_parameterTypes[i].ToString());
System\Reflection\TypeLoading\Types\RoStubType.cs (1)
43public sealed override string ToString() => GetType().ToString();
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\TypeLibImportClassAttribute.cs (1)
9public TypeLibImportClassAttribute(Type importClass) => Value = importClass.ToString();
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
610return GetType().ToString();
System.ServiceModel.Federation (3)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (3)
149return new InvalidOperationException(SR.Format(SR.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(), State.ToString())); 154return new ObjectDisposedException(GetCommunicationObjectType().ToString()); 159string message = SR.Format(SR.CommunicationObjectFaulted1, GetCommunicationObjectType().ToString());
System.ServiceModel.NetTcp (2)
System\ServiceModel\Channels\SocketConnection.cs (2)
502GetType().ToString(), SR.SocketConnectionDisposed), TransferOperation.Undefined)); 512GetType().ToString(), SR.SocketConnectionDisposed), TransferOperation.Undefined));
System.ServiceModel.Primitives (54)
Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
90return string.Format(CultureInfo.CurrentCulture, "{0}/{1}", source.GetType().ToString(), source.GetHashCode());
System\IdentityModel\Selectors\SecurityTokenAuthenticator.cs (3)
45tokenType = tokenType ?? token.GetType().ToString(); 56tokenType = tokenType ?? token.GetType().ToString(); 66tokenType = tokenType ?? token.GetType().ToString();
System\ServiceModel\Channels\BindingContext.cs (1)
112string typeString = bindingElement.GetType().ToString();
System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ChannelFactoryCannotBeUsedToCreateChannels, GetType().ToString())));
System\ServiceModel\Channels\ChannelParameterCollection.cs (4)
90channel.GetType().ToString(), state.ToString()); 95channel.GetType().ToString(), state.ToString()); 118channel.GetType().ToString(), state.ToString()); 130channel.GetType().ToString(), state.ToString());
System\ServiceModel\Channels\ChannelRequirements.cs (2)
277string typeString = channelType.ToString(); 321string typeString = channelType.ToString();
System\ServiceModel\Channels\CommunicationObject.cs (7)
334return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetCommunicationObjectType().ToString(), _state.ToString())); 339return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeModifiedInState, GetCommunicationObjectType().ToString(), _state.ToString())); 344return new InvalidOperationException(SRP.Format(SRP.CommunicationObjectBaseClassMethodNotCalled, GetCommunicationObjectType().ToString(), method)); 355return new ObjectDisposedException(GetCommunicationObjectType().ToString()); 361string message = SRP.Format(SRP.CommunicationObjectFaulted1, GetCommunicationObjectType().ToString()); 367return new CommunicationObjectAbortedException(SRP.Format(SRP.CommunicationObjectAborted1, GetCommunicationObjectType().ToString())); 480return new CommunicationException(SRP.Format(SRP.CommunicationObjectCloseInterrupted1, GetCommunicationObjectType().ToString()));
System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString()));
System\ServiceModel\Channels\LifetimeManager.cs (3)
62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString()));
System\ServiceModel\Channels\Message.cs (1)
542return SRP.Format(SRP.MessageBodyToStringError, e.GetType().ToString(), e.Message);
System\ServiceModel\Channels\MessageProperties.cs (1)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, SRP.Format(SRP.ObjectDisposed, GetType().ToString())));
System\ServiceModel\Channels\ReliableChannelBinder.cs (4)
358SRP.CommunicationObjectAborted1, GetType().ToString())); 362return new ObjectDisposedException(GetType().ToString()); 394SRP.CommunicationObjectFaulted1, GetType().ToString())); 517GetType().ToString(), State.ToString()));
System\ServiceModel\Channels\RequestReplyCorrelator.cs (2)
267return typeof(Key).ToString() + ": {" + MessageId + ", " + StateType.ToString() + "}";
System\ServiceModel\Channels\SecurityBindingElement.cs (1)
606sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString()));
System\ServiceModel\Channels\ServiceChannel.cs (2)
1119string text = SRP.Format(SRP.SFxInitializationUINotCalled, example.GetType().ToString()); 1138string text = SRP.Format(SRP.SFxInitializationUIDisallowed, example.GetType().ToString());
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
50return _proxiedType.ToString();
System\ServiceModel\ClientBase.cs (1)
232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxImmutableClientBaseCacheSetting, typeof(TChannel).ToString())));
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
271return source.GetType().ToString() + "/" + source.GetHashCode().ToString(CultureInfo.CurrentCulture);
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
258string message = SRP.Format(SRP.SFxNullReplyFromFormatter2, Formatter.GetType().ToString(), (Name ?? ""));
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
155string message = SRP.Format(SRP.SFxNullReplyFromExtension2, _messageInspectors[i].GetType().ToString(), (rpc.Operation.Name ?? ""));
System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
120string text = SRP.Format(SRP.SFxMultipleCallbackFromSynchronizationContext, _context.GetType().ToString());
System\ServiceModel\EndpointIdentity.cs (1)
226throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.UnrecognizedIdentityPropertyType, IdentityClaim.GetType().ToString())));
System\ServiceModel\ExceptionDetail.cs (1)
27_type = exception.GetType().ToString();
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
250Exception e = new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetType().ToString(), state.ToString()));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
226throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityStandardsManagerNotSet, GetType().ToString()))); 447throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ProtocolMisMatch, nameof(IInitiatorSecuritySessionProtocol), GetType().ToString())));
System\ServiceModel\Security\SecurityUtils.cs (1)
328throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.MultipleMatchingCryptosFound, typeof(T).ToString())));
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (2)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityTokenParametersCloneInvalidResult, GetType().ToString()))); 192sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString()));
System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (1)
230sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString()));
System\ServiceModel\ServiceChannelManager.cs (3)
97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString()));
System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
273string message = SRP.Format(SRP.SFxCollectionWrongType2, type.ToString(), typeof(T).ToString());
System.ServiceModel.UnixDomainSocket (2)
System\ServiceModel\Channels\SocketConnection.cs (2)
479GetType().ToString(), SR.SocketConnectionDisposed), TransferOperation.Undefined)); 489GetType().ToString(), SR.SocketConnectionDisposed), TransferOperation.Undefined));
System.Speech (1)
Internal\Synthesis\VoiceSynthesis.cs (1)
1368ssmlEngine = (TtsEngineSsml)assembly.CreateInstance(type.ToString(), false, BindingFlags.Default, null, args!, CultureInfo.CurrentUICulture, null)!;
System.Text.Json (6)
System\Text\Json\ThrowHelper.Serialization.cs (6)
210string location = classType.ToString(); 222string location = classTypeAttributeIsOn.ToString(); 235string location = classType.ToString(); 590string location = memberInfo is Type type ? type.ToString() : $"{memberInfo.DeclaringType}.{memberInfo.Name}"; 641if (!message.Contains(propertyType.ToString())) 669if (!message.Contains(propertyType.ToString()))
System.Transactions.Local (1)
System\Transactions\TransactionsEtwProvider.cs (1)
967OleTxTransactionManagerCreate(tmType.ToString(), nodeName);
System.Windows.Forms (3)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObject.cs (1)
68UIA_PROPERTY_ID.UIA_ClassNamePropertyId when this.TryGetOwnerAs(out object? owner) => (VARIANT)owner.GetType().ToString(),
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2183iwdata.SetData(typeof(ToolStripItem).ToString(), data);
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
198typeOfControl = c.GetType().ToString();
System.Windows.Forms.Design (3)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
747typeName = TruncateAndFormatCommentStringForOutput(type.ToString());
System\Windows\Forms\Design\MaskDescriptor.cs (2)
146string hash = string.Concat(Mask, ValidatingType?.ToString()); 152return $"{GetType()}<Name={Name ?? "null"}, Mask={Mask ?? "null"}, ValidatingType={(ValidatingType is not null ? ValidatingType.ToString() : "null")}";
UnitTests.Common (5)
TestHelpers.cs (5)
383errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString())); 387errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(BindingParameterCollection).ToString())); 402errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString())); 406errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(ClientOperation).ToString())); 428errorBuilder.AppendLine(String.Format("The parameter passed into the Validate method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));