69 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.6.25314.101\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.Components.WebAssembly (1)
.packages\microsoft.dotnet.hotreload.agent\10.0.100-preview.6.25314.101\contentFiles\cs\netstandard2.1\HotReloadAgent.cs (1)
54var metadataUpdater = Type.GetType(MetadataUpdaterTypeName + ", System.Runtime.Loader", throwOnError: false);
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.6.25314.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
353Type? publicHostAbortedExceptionType = Type.GetType("Microsoft.Extensions.Hosting.HostAbortedException, Microsoft.Extensions.Hosting.Abstractions", throwOnError: false);
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
543var 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.6.25314.101\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.CodeAnalysis.Sdk (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)
266() => Type.GetType(attribute.Name, throwOnError: false) ?? NamespaceImports.Select(x => Type.GetType($"{x}.{attribute.Name}", throwOnError: false)).FirstOrDefault(), 542var 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)
1280var visType = Type.GetType("Roslyn.Test.Utilities.ILBuilderVisualizer, Microsoft.CodeAnalysis.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.Extensions.Validation.GeneratorTests (1)
ValidationsGeneratorTestBase.cs (1)
548var publicHostAbortedExceptionType = Type.GetType("Microsoft.Extensions.Hosting.HostAbortedException, Microsoft.Extensions.Hosting.Abstractions", 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 (2)
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.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.Net.Security (1)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
160Type? taskOfHttpResponseMessageType = Type.GetType(TaskOfHttpResponseMessageTypeName, throwOnError: false);
System.Private.CoreLib (6)
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.cs (1)
998_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)!;
System.Private.Windows.Core (2)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
625boundType = Type.GetType( 630boundType ??= Type.GetType(
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
998_typeTable[typeIndex] = Type.GetType(typeName, true);
System.Security.Cryptography (1)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (1)
160Type? taskOfHttpResponseMessageType = Type.GetType(TaskOfHttpResponseMessageTypeName, throwOnError: false);
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)
686return 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)
1450eventInterface ??= 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)
88public Type? GetType(string name, bool throwOnError) => Type.GetType(name, throwOnError);
System.Windows.Forms.Tests (4)
System\Windows\Forms\Design\DesignerAttributeTests.cs (4)
80var type = Type.GetType(attribute.DesignerTypeName, throwOnError: false); 98var type = Type.GetType(attribute.SerializerTypeName, false); 156var type = Type.GetType(attribute.ConverterTypeName, false); 173var type = Type.GetType(attribute.EditorTypeName, throwOnError: false);