86 references to GetType
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (2)
21Type profiledCommandType = Type.GetType("StackExchange.Redis.Profiling.ProfiledCommand, StackExchange.Redis", throwOnError: true)!; 22Type scriptMessageType = Type.GetType("StackExchange.Redis.RedisDatabase+ScriptEvalMessage, StackExchange.Redis", throwOnError: true)!;
dotnet-svcutil-lib (3)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
967s_typeOfDBNull = Type.GetType("System.DBNull, System.Data.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", false);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
251types.Add(Type.GetType(typeNames[i], false));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1946_xmlImporter.Extensions.Add(extTypeName, Type.GetType(extTypeName, true /*throwOnError*/));
GetDocument.Insider (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25104.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
353Type? publicHostAbortedExceptionType = Type.GetType("Microsoft.Extensions.Hosting.HostAbortedException, Microsoft.Extensions.Hosting.Abstractions", throwOnError: false);
illink (3)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
67 /// <item><see cref= "System.Type.GetType(string, bool)" /></item>
Microsoft.AspNetCore.DataProtection (3)
Internal\DefaultTypeNameResolver.cs (1)
25type = Type.GetType(typeName, throwOnError: false);
TypeExtensions.cs (1)
36return Type.GetType(typeName, throwOnError: true)!;
TypeForwardingActivator.cs (1)
39var type = Type.GetType(forwardedTypeName, false);
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\ProvideApplicationPartFactoryAttribute.cs (1)
42Type.GetType(_applicationPartFactoryTypeName!, throwOnError: true)!;
Microsoft.AspNetCore.Mvc.Testing (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25104.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
353Type? publicHostAbortedExceptionType = Type.GetType("Microsoft.Extensions.Hosting.HostAbortedException, Microsoft.Extensions.Hosting.Abstractions", throwOnError: false);
Microsoft.AspNetCore.TestHost (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25104.8\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
353Type? publicHostAbortedExceptionType = Type.GetType("Microsoft.Extensions.Hosting.HostAbortedException, Microsoft.Extensions.Hosting.Abstractions", throwOnError: false);
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
50return !(Type.GetType("Mono.RuntimeStructs", throwOnError: false) is null);
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
23return Type.GetType(assemblyQualifiedName, throwOnError: false);
Microsoft.Build.Tasks.Core (3)
WriteCodeFragment.cs (3)
260() => Type.GetType(attribute.Name, throwOnError: false) ?? NamespaceImports.Select(x => Type.GetType($"{x}.{attribute.Name}", throwOnError: false)).FirstOrDefault(), 534var parameterType = Type.GetType(typeName, throwOnError: false);
Microsoft.CodeAnalysis (4)
CodeGen\BasicBlock.cs (1)
645var visType = System.Type.GetType("Roslyn.Test.Utilities.ILBuilderVisualizer, Roslyn.Test.Utilities", false);
CodeGen\ILBuilder.cs (1)
1268var visType = Type.GetType("Roslyn.Test.Utilities.ILBuilderVisualizer, Roslyn.Test.Utilities", false);
InternalUtilities\PlatformInformation.cs (1)
50return !(Type.GetType("Mono.RuntimeStructs", throwOnError: false) is null);
InternalUtilities\ReflectionUtilities.cs (1)
23return Type.GetType(assemblyQualifiedName, throwOnError: false);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
50return !(Type.GetType("Mono.RuntimeStructs", throwOnError: false) is null);
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
23return Type.GetType(assemblyQualifiedName, throwOnError: false);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
23return Type.GetType(assemblyQualifiedName, throwOnError: false);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
23return Type.GetType(assemblyQualifiedName, throwOnError: false);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
50return !(Type.GetType("Mono.RuntimeStructs", throwOnError: false) is null);
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
50return !(Type.GetType("Mono.RuntimeStructs", throwOnError: false) is null);
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
23return Type.GetType(assemblyQualifiedName, throwOnError: false);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
50return !(Type.GetType("Mono.RuntimeStructs", throwOnError: false) is null);
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
23return Type.GetType(assemblyQualifiedName, throwOnError: false);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\FileIO\SpecialDirectories.vb (1)
165Dim type As Type = Type.GetType($"{typeName}, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", throwOnError:=False)
Microsoft\VisualBasic\Interaction.vb (1)
138Dim type As Type = Type.GetType("Microsoft.VisualBasic._Interaction, Microsoft.VisualBasic.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", throwOnError:=False)
Replay (1)
src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
50return !(Type.GetType("Mono.RuntimeStructs", throwOnError: false) is null);
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\PropertyTabAttribute.cs (1)
120_tabClasses[i] = Type.GetType(className, false)!;
System\ComponentModel\ToolboxItemAttribute.cs (1)
89_toolboxItemType = Type.GetType(_toolboxItemTypeName, true);
System\ComponentModel\TypeDescriptor.cs (1)
3056Type realComNativeDescriptor = Type.GetType("System.Windows.Forms.ComponentModel.Com2Interop.ComNativeDescriptor, System.Windows.Forms", throwOnError: true)!;
System.Configuration.ConfigurationManager (3)
System\Configuration\ConfigurationErrorsException.cs (1)
130Type currentExceptionType = Type.GetType(currentType, true);
System\Configuration\Internal\InternalConfigHost.cs (1)
177return Type.GetType(typeName, throwOnError);
System\Configuration\TypeUtil.cs (1)
92type = Type.GetType(typeString, throwOnError);
System.Data.Common (1)
System\Data\DataTable.cs (1)
468dc.DataType = Type.GetType(typeName, throwOnError: true);
System.Linq.Expressions (1)
System\Dynamic\Utils\DelegateHelpers.cs (1)
33return Type.GetType("Internal.Runtime.Augments.DynamicDelegateAugments, System.Private.CoreLib", throwOnError: true)!
System.Net.Security (8)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (8)
92Type? socketsHttpHandlerType = Type.GetType("System.Net.Http.SocketsHttpHandler, System.Net.Http", throwOnError: false); 93Type? httpMessageHandlerType = Type.GetType("System.Net.Http.HttpMessageHandler, System.Net.Http", throwOnError: false); 94Type? httpClientType = Type.GetType("System.Net.Http.HttpClient, System.Net.Http", throwOnError: false); 95Type? httpRequestMessageType = Type.GetType("System.Net.Http.HttpRequestMessage, System.Net.Http", throwOnError: false); 96Type? httpResponseMessageType = Type.GetType("System.Net.Http.HttpResponseMessage, System.Net.Http", throwOnError: false); 97Type? httpResponseHeadersType = Type.GetType("System.Net.Http.Headers.HttpResponseHeaders, System.Net.Http", throwOnError: false); 98Type? httpContentType = Type.GetType("System.Net.Http.HttpContent, System.Net.Http", throwOnError: false); 99Type? taskOfHttpResponseMessageType = Type.GetType("System.Threading.Tasks.Task`1[[System.Net.Http.HttpResponseMessage, System.Net.Http]], System.Runtime", throwOnError: false);
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (2)
409Type type = Type.GetType("System.Security.Principal.GenericPrincipal, System.Security.Claims", throwOnError: true)!; 423Type type = Type.GetType("System.Security.Principal.WindowsPrincipal, System.Security.Principal.Windows", throwOnError: true)!;
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
88Type? typeDescriptorType = Type.GetType("System.ComponentModel.TypeDescriptor, System.ComponentModel.TypeConverter", throwOnError: false);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3922Type? metricsEventSourceType = Type.GetType(
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
169Type readerType = Type.GetType(
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (3)
110Type consoleType = Type.GetType(ConsoleTypeFullName, throwOnError: true)!; 122Emit(OpCodes.Call, Type.GetType(ConsoleTypeFullName, throwOnError: true)!.GetMethod("get_Out")!); 145Emit(OpCodes.Call, Type.GetType(ConsoleTypeFullName, throwOnError: true)!.GetMethod("get_Out")!);
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
291Type readerType = Type.GetType(readerTypeName, throwOnError: true)!;
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
104Type binaryFormatterType = Type.GetType("System.Runtime.Serialization.Formatters.Binary.BinaryFormatter, System.Runtime.Serialization.Formatters", throwOnError: true)!;
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1001_typeTable[typeIndex] = Type.GetType(typeName, true);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
111return Type.GetType("System.Resources.ResourceWriter, System.Resources.Writer", throwOnError: true)!;
src\System\Diagnostics\StackFrameHelper.cs (1)
102Type? symbolsType = Type.GetType(
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1001_typeTable[typeIndex] = Type.GetType(typeName, true);
System.Security.Cryptography (9)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (8)
92Type? socketsHttpHandlerType = Type.GetType("System.Net.Http.SocketsHttpHandler, System.Net.Http", throwOnError: false); 93Type? httpMessageHandlerType = Type.GetType("System.Net.Http.HttpMessageHandler, System.Net.Http", throwOnError: false); 94Type? httpClientType = Type.GetType("System.Net.Http.HttpClient, System.Net.Http", throwOnError: false); 95Type? httpRequestMessageType = Type.GetType("System.Net.Http.HttpRequestMessage, System.Net.Http", throwOnError: false); 96Type? httpResponseMessageType = Type.GetType("System.Net.Http.HttpResponseMessage, System.Net.Http", throwOnError: false); 97Type? httpResponseHeadersType = Type.GetType("System.Net.Http.Headers.HttpResponseHeaders, System.Net.Http", throwOnError: false); 98Type? httpContentType = Type.GetType("System.Net.Http.HttpContent, System.Net.Http", throwOnError: false); 99Type? taskOfHttpResponseMessageType = Type.GetType("System.Threading.Tasks.Task`1[[System.Net.Http.HttpResponseMessage, System.Net.Http]], System.Runtime", throwOnError: false);
System\Security\Cryptography\CryptoConfigForwarder.cs (1)
32Type t = Type.GetType(CryptoConfigTypeName, throwOnError: true)!;
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactoryHelpers.cs (1)
125private static Type? GetTypeIfExists(string name) => Type.GetType(name, false);
System.Windows.Forms (3)
System\Resources\ResXDataNode.cs (1)
687return resolvedType ?? Type.GetType(typeName, throwOnError: false);
System\Resources\ResxFileRef.Converter.cs (1)
105Type? toCreate = Type.GetType(parts[1], true);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1451eventInterface ??= Type.GetType(eventName, throwOnError: false);
System.Windows.Forms.Design (1)
System\Drawing\Design\ToolboxItem.cs (1)
537type ??= Type.GetType(typeName, false);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
90public Type? GetType(string name, bool throwOnError) => Type.GetType(name, throwOnError);
System.Windows.Forms.Tests (4)
System\Windows\Forms\Design\DesignerAttributeTests.cs (4)
85var type = Type.GetType(attribute.DesignerTypeName, throwOnError: false); 103var type = Type.GetType(attribute.SerializerTypeName, false); 161var type = Type.GetType(attribute.ConverterTypeName, false); 178var type = Type.GetType(attribute.EditorTypeName, false);