Base:
method
ToString
System.Object.ToString()
10 overrides of ToString
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
361public override string ToString()
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
60public override string ToString()
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
74public override string ToString() => _unmodifiedType.ToString();
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
78public abstract override string ToString();
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
29public override string ToString()
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
603public override string ToString()
src\System\RuntimeType.CoreCLR.cs (1)
3814public override string ToString() => GetCachedName(TypeNameKind.ToString)!;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
472public override string ToString()
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
361public override string ToString()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
286public abstract override string ToString();
343 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.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
177throw new InvalidCastException($"Cannot cast '{paramName}' from '{value?.GetType().ToString() ?? "null"}' to '{typeof(T)}'");
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
177throw new InvalidCastException($"Cannot cast '{paramName}' from '{value?.GetType().ToString() ?? "null"}' to '{typeof(T)}'");
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
185throw 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)
53{"exceptionType", e.GetType().ToString() }, 90s = 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();
illink (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1408Logger.InvalidSecurityTokenType(validatedToken?.GetType().ToString());
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentsServiceCollectionExtensionsTest.cs (1)
135Assert.Fail($"Found duplicate implementation types for {serviceType}. Implementation types: {string.Join(", ", implementationTypes.Select(x => x.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 (5)
ErrorUtilities.cs (1)
105if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
138throw new InvalidOperationException(fragment.GetType().ToString());
ResourceUtilities.cs (1)
435if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
Utilities\Utilities.cs (2)
680Debug.Fail($"In {nameof(EnumerateProperties)}(): Unexpected property {item} of type {item?.GetType().ToString()}"); 838Debug.Fail($"In {nameof(EnumerateItems)}(): Unexpected {nameof(item)} {item} of type {item?.GetType().ToString()}");
Microsoft.Build.Engine.OM.UnitTests (2)
ErrorUtilities.cs (1)
105if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
ResourceUtilities.cs (1)
435if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
Microsoft.Build.Engine.UnitTests (3)
BackEnd\TaskBuilderTestTask.cs (1)
1282get { return typeof(TaskBuilderTestTask).ToString(); }
BackEnd\TaskExecutionHost_Tests.cs (1)
1076<TaskThatThrows ExceptionType="{exceptionType.ToString()}" ExceptionMessage="{testExceptionMessage}">
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
86Assert.Equal("Microsoft.Build.Execution.ProjectPropertyInstance+ProjectPropertyInstanceImmutable", property.GetType().ToString());
Microsoft.Build.Framework (2)
BuildException\BuildExceptionSerializationHelper.cs (1)
73return exceptionType.FullName ?? exceptionType.ToString();
Traits.cs (1)
576if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
Microsoft.Build.Framework.UnitTests (1)
ResourceUtilities.cs (1)
435if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
Microsoft.Build.Tasks.Core (2)
ErrorUtilities.cs (1)
105if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
ResourceUtilities.cs (1)
435if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
Microsoft.Build.Utilities.Core (2)
ErrorUtilities.cs (1)
105if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
ResourceUtilities.cs (1)
435if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
1277var messageArguments = new[] { analyzerName, e.GetType().ToString(), e.Message, contextInformation }; 1309return string.Format(CodeAnalysisResources.CompilerAnalyzerThrows, analyzerName, ex.GetType().ToString(), ex.Message, ex.CreateDiagnosticDescription()); 1324var messageArguments = new[] { e.GetType().ToString(), e.Message, e.CreateDiagnosticDescription() };
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1093throw ExceptionUtilities.UnexpectedValue(compilationEvent.GetType().ToString());
DiagnosticAnalyzer\DiagnosticAnalyzer.cs (1)
35return this.GetType().ToString();
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
1820DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(template.Replace("System.Int32", t.ToString()),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\TypeTests.cs (3)
627Assert.False(f1 is ErrorTypeSymbol, f1.GetType().ToString() + " : " + f1.ToTestDisplayString()); 644Assert.False(objType is ErrorTypeSymbol, objType.GetType().ToString() + " : " + objType.ToTestDisplayString()); 652Assert.False(dynType is ErrorTypeSymbol, dynType.GetType().ToString() + " : " + dynType.ToTestDisplayString()); // this is ok
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Syntax\SyntaxFactoryTests.cs (3)
156Assert.Contains(typeof(SyntaxFactory).ToString(), e.Message); // Make sure the class/namespace aren't updated without also updating the exception message 167Assert.Contains(typeof(SyntaxFactory).ToString(), e.Message); // Make sure the class/namespace aren't updated without also updating the exception message 178Assert.Contains(typeof(SyntaxFactory).ToString(), e.Message); // Make sure the class/namespace aren't updated without also updating the exception message
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
449return this.Type.ToString();
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestOperationVisitor.cs (1)
31throw new NotImplementedException(operation.GetType().ToString());
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (1)
168string.Format(CodeAnalysisResources.CompilerAnalyzerThrows, AnalyzerName, exception.GetType().ToString(), exception.Message, exception.ToString() + Environment.NewLine + "-----"))}")
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
ExpressionTrees\Sources\ExprLambdaUtils.vb (6)
95_s.AppendLine(indent + _indentStep + "type: " + node.Type.ToString()) 185_s.AppendLine(indent + "method: " + node.Method.ToString() + " in " + node.Method.DeclaringType.ToString()) 263_s.AppendLine(indent + "return type: " + node.ReturnType.ToString()) 328_s.AppendLine(indent + "method: " + node.Method.ToString() + " in " + node.Method.DeclaringType.ToString()) 345_s.AppendLine(indent + "method: " + node.Method.ToString() + " in " + node.Method.DeclaringType.ToString() + " (") 398_s.AppendLine(indent + "Type Operand: " + node.TypeOperand.ToString())
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
TestSyntaxNodes.vb (1)
3372Assert.Equal("Microsoft.CodeAnalysis.VisualBasic.Syntax.IfDirectiveTriviaSyntax", x(0).GetType.ToString)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticAnalyzerExtensions.cs (1)
18var typeString = analyzer.GetType().ToString();
Storage\StorageDatabaseLogger.cs (1)
43m[Kind] = ex.GetType().ToString();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
ObjectExtensions.cs (2)
25throw new ArgumentException("Property " + propertyName + " was not found on type " + type.ToString()); 49throw new FieldAccessException("Field " + fieldName + " was not found on type " + type.ToString());
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
71this.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.Extensions.DependencyInjection (5)
DependencyInjectionEventSource.cs (4)
101ServiceResolved(serviceType.ToString(), provider.GetHashCode()); 117serviceType.ToString(), 129DynamicMethodBuilt(serviceType.ToString(), methodSize, provider.GetHashCode()); 311source.ExpressionTreeGenerated(serviceType.ToString(), visitor.NodeCount, provider.GetHashCode());
ServiceLookup\ServiceIdentifier.cs (1)
69return ServiceType.ToString();
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLogger.cs (1)
134tags.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.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)
825labelColumnName, typeof(uint).ToString(), 826labelColumn.Type.RawType.ToString());
Microsoft.VisualStudio.LanguageServices (2)
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
376throw ExceptionUtilities.UnexpectedValue(parameter.GetType().ToString());
ErrorReporting\VisualStudioErrorReportingService.ExceptionFormatting.cs (1)
49var className = exception.GetType().ToString();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
CodeModel\FileCodeFunctionTests.cs (1)
227Assert.True(testObject.Parent is CodeClass, testObject.Parent.GetType().ToString());
MSBuild (2)
ErrorUtilities.cs (1)
105if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
ResourceUtilities.cs (1)
435if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
MSBuildTaskHost (4)
BuildExceptionSerializationHelper.cs (1)
73return exceptionType.FullName ?? exceptionType.ToString();
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (1)
105if (String.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal))
ResourceUtilities.cs (1)
435if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
Traits.cs (1)
576if (string.Equals(param.GetType().ToString(), param.ToString(), StringComparison.Ordinal) &&
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (1)
847elementType.ToString(),
PresentationFramework (28)
MS\Internal\Data\DefaultValueConverter.cs (2)
338destinationType.ToString(), 348destinationType.ToString()),
System\Windows\Controls\HeaderedContentControl.cs (1)
386string typeText = this.GetType().ToString();
System\Windows\Controls\HeaderedItemsControl.cs (1)
333string typeText = this.GetType().ToString();
System\Windows\Controls\Primitives\RangeBase.cs (1)
358string typeText = this.GetType().ToString();
System\Windows\Controls\Primitives\ToggleButton.cs (1)
282string typeText = this.GetType().ToString();
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12238ReadOnlySpan<char> name = t.ToString();
System\Windows\Documents\FixedPageStructure.cs (1)
474String typeString = fixedElement.Type.ToString();
System\Windows\Documents\TableCell.cs (1)
89throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TableRow.cs (1)
90throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TableRowGroup.cs (1)
290throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TextStore.cs (1)
4832string name = t.ToString();
System\Windows\Markup\BamlRecordReader.cs (1)
3382element.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)
340simpleObjectId = objectType.ToString();
System\Windows\Media\Animation\Storyboard.cs (9)
278SR.Format(SR.Storyboard_NameNotFound, targetName, nameScopeUsed.GetType().ToString())); 320SR.Format(SR.Storyboard_NameNotFound, targetName, nameScope.GetType().ToString())); 329SR.Format(SR.Storyboard_NameNotFound, targetName, fe.GetType().ToString())); 338SR.Format(SR.Storyboard_NameNotFound, targetName, fce.GetType().ToString())); 446throw new InvalidOperationException(SR.Format(SR.Storyboard_NoTarget, currentTimeline.GetType().ToString() )); 454throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() )); 576$"Internal error - clockMappings table contains an unexpected object {((mappedObject == null) ? "" : mappedObject.GetType().ToString())}"); 725throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() )); 946throw new InvalidOperationException(SR.Format(SR.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString()));
System\Windows\Navigation\NavigationService.cs (1)
1420_bp != null ? _bp.GetType().ToString() : "null"));
System\Windows\Style.cs (1)
657"Unsupported SetterBase subclass in style triggers ({0})", setterBase.GetType().ToString());
ReachFramework (7)
AlphaFlattener\PrimitiveList.cs (1)
91string typ = p.GetType().ToString();
Serialization\Manager\XpsOMSerializationManager.cs (2)
73serializedObject.GetType().ToString().Contains("FixedDocumentPaginator")) 79serializedObject.GetType().ToString().Contains("FixedDocumentSequencePaginator"))
Serialization\Manager\XpsSerializationManager.cs (2)
103serializedObject.GetType().ToString().Contains( "FixedDocumentPaginator") ) 109serializedObject.GetType().ToString().Contains( "FixedDocumentSequencePaginator") )
Serialization\VisualSerializer.cs (1)
822WriteBrushHeader(brush.GetType().ToString(), brush);
Serialization\VisualTreeFlattener.cs (1)
431_dcf.Comment(visual.GetType().ToString());
Security.TransportSecurity.IntegrationTests (2)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (2)
71if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException")) 147if ((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)
23typeof(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)
600exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionTypeTag, exception.GetType().ToString()));
System.IO.Compression (4)
System\IO\Compression\ZipArchiveEntry.cs (1)
1334throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName);
System\IO\Compression\ZipCustomStreams.cs (3)
72throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 275throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 480throw 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\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)
163sb.Append(_content == null ? "<null>" : _content.GetType().ToString());
System\Net\Http\HttpResponseMessage.cs (1)
192sb.Append(_content == null ? "<null>" : _content.GetType().ToString());
System.Net.Mail (1)
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.Security (1)
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 (33)
src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
95string s = GetType().ToString() + ": " + Message;
src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
93string className = GetType().ToString();
src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
65private string GetClassName() => GetType().ToString();
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
95throw new TypeInitializationException(this.GetType().ToString(), e);
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
51throw new TypeInitializationException(GetType().ToString(), e);
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
52throw new TypeInitializationException(GetType().ToString(), e);
src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (1)
52string s = GetType().ToString() + ": " + Message;
src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
75string s = GetType().ToString() + ": " + Message;
src\libraries\System.Private.CoreLib\src\System\Object.cs (1)
42return GetType().ToString();
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
74public override string ToString() => _unmodifiedType.ToString();
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (2)
65sb.Append(_genericTypeDefinition.ToString()); 71sb.Append(_genericTypeArguments[i].ToString());
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (1)
342Debug.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\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\Unsafe.cs (14)
104typeof(T).ToString(); // Type token used by the actual method body 131typeof(T).ToString(); // Type token used by the actual method body 159typeof(T).ToString(); // Type token used by the actual method body 186typeof(T).ToString(); 214typeof(T).ToString(); 530typeof(T).ToString(); // Type token used by the actual method body 555typeof(T).ToString(); // Type token used by the actual method body 581typeof(T).ToString(); // Type token used by the actual method body 607typeof(T).ToString(); // Type token used by the actual method body 788typeof(T).ToString(); 815typeof(T).ToString(); 841typeof(T).ToString(); 867typeof(T).ToString(); 911typeof(T).ToString();
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\libraries\System.Private.CoreLib\src\System\Threading\DeferredDisposableLifetime.cs (1)
54throw new ObjectDisposedException(typeof(T).ToString());
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
551if (m_pair.CompletionRequested) throw new InvalidOperationException(GetType().ToString());
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
678return ToString();
src\System\Reflection\Emit\CustomAttributeBuilder.cs (1)
503typename = value.GetType().ToString();
src\System\ValueType.cs (1)
170return this.GetType().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)
65throw new XmlException(SR.Xml_ReadContentAsFormatException, returnType.ToString(), e, this as IXmlLineInfo); 69throw 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)
1633: base(SR.Format(SR.CodeGenConvertError, reason, sourceType.ToString(), targetType.ToString()))
System\Xml\Serialization\Types.cs (1)
914typeDesc = 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)
25public sealed override string ToString() => GetType().ToString(); // Does not match .NET Framework output - however, doing so can prematurely
System\Reflection\TypeLoading\General\Helpers.cs (1)
259sb.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)
530return 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.UnixDomainSocket (2)
System\ServiceModel\Channels\SocketConnection.cs (2)
479GetType().ToString(), SR.SocketConnectionDisposed), TransferOperation.Undefined)); 489GetType().ToString(), SR.SocketConnectionDisposed), TransferOperation.Undefined));
System.Text.Json (5)
System\Text\Json\ThrowHelper.Serialization.cs (5)
210string location = classType.ToString(); 222string location = classTypeAttributeIsOn.ToString(); 526string location = memberInfo is Type type ? type.ToString() : $"{memberInfo.DeclaringType}.{memberInfo.Name}"; 577if (!message.Contains(propertyType.ToString())) 605if (!message.Contains(propertyType.ToString()))
System.Transactions.Local (1)
System\Transactions\TransactionsEtwProvider.cs (1)
973OleTxTransactionManagerCreate(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)
2178iwdata.SetData(typeof(ToolStripItem).ToString(), data);
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
167typeOfControl = 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")}";
System.Windows.Forms.Design.Tests (1)
Serialization\PrimitiveCodeDomSerializerTests.cs (1)
48Assert.Equal(typeof(byte).ToString(), cast.TargetType.BaseType);
System.Xaml.Tests (3)
System\Xaml\Replacements\EventConverterTests.cs (1)
121throw new NotImplementedException(serviceType.ToString());
System\Xaml\Replacements\TypeTypeConverterTests.cs (2)
193Assert.Equal(typeof(int).ToString(), converter.ConvertTo(context, null, typeof(int), typeof(string))); 217Assert.Equal(typeof(int).ToString(), converter.ConvertTo(context, null, typeof(int), typeof(string)));
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()));
xunit.assert (1)
Sdk\Exceptions\XunitException.cs (1)
62 var className = GetType().ToString();