53 references to GetTypeFromHandle
dotnet-svcutil-lib (8)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (2)
688
type = Type.
GetTypeFromHandle
(typeHandle);
769
type = Type.
GetTypeFromHandle
(typeHandle);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (2)
44
return InternalDeserializeWithSurrogate(xmlReader, Type.
GetTypeFromHandle
(declaredTypeHandle), null /*surrogateDataContract*/, name, ns);
48
return InternalDeserializeInSharedTypeMode(xmlReader, declaredTypeID, Type.
GetTypeFromHandle
(declaredTypeHandle), name, ns);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
137
SerializeWithXsiType(xmlWriter, obj, objTypeHandle, null /*type*/, declaredTypeID, declaredTypeHandle, Type.
GetTypeFromHandle
(declaredTypeHandle));
204
objectType = Type.
GetTypeFromHandle
(objectTypeHandle);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (2)
256
Type objType = Type.
GetTypeFromHandle
(objTypeHandle);
257
Type declaredType = GetSurrogatedType(Type.
GetTypeFromHandle
(declaredTypeHandle));
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
18
/// <see cref="System.Type.
GetTypeFromHandle
(System.RuntimeTypeHandle)"/>
illink (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
18
/// <see cref="System.Type.
GetTypeFromHandle
(System.RuntimeTypeHandle)"/>
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
18
/// <see cref="System.Type.
GetTypeFromHandle
(System.RuntimeTypeHandle)"/>
System.Private.CoreLib (28)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
501
return Type.
GetTypeFromHandle
(typeHandle).Assembly;
Internal\Runtime\Augments\RuntimeAugments.cs (4)
131
Type elementType = Type.
GetTypeFromHandle
(new RuntimeTypeHandle(typeHandleForArrayType.ToMethodTable()->RelatedParameterType))!;
247
return ReflectionPointer.Box(*(void**)address, Type.
GetTypeFromHandle
(fieldType));
269
return ReflectionPointer.Box((void*)Unsafe.As<byte, IntPtr>(ref address), Type.
GetTypeFromHandle
(fieldType));
336
return ReflectionPointer.Box((void*)ptrValue, Type.
GetTypeFromHandle
(fieldTypeHandle));
Internal\Runtime\CompilerHelpers\RuntimeInteropData.cs (9)
24
throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, Type.
GetTypeFromHandle
(structureTypeHandle)), nameof(structureTypeHandle));
47
throw new ArgumentException(SR.Format(SR.Argument_OffsetOfFieldNotFound, Type.
GetTypeFromHandle
(structureTypeHandle)), nameof(fieldName));
50
throw new NotSupportedException(SR.Format(SR.StructMarshalling_MissingInteropData, Type.
GetTypeFromHandle
(structureTypeHandle)!));
61
throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, Type.
GetTypeFromHandle
(structureTypeHandle)), nameof(structureTypeHandle));
77
Type structureType = Type.
GetTypeFromHandle
(structureTypeHandle)!;
109
throw new NotSupportedException(SR.Format(SR.DelegateMarshalling_MissingInteropData, Type.
GetTypeFromHandle
(delegateTypeHandle)));
118
throw new NotSupportedException(SR.Format(SR.DelegateMarshalling_MissingInteropData, Type.
GetTypeFromHandle
(delegateTypeHandle)));
213
throw new ArgumentException(SR.Format(SR.Arg_CannotMarshal, Type.
GetTypeFromHandle
(structTypeHandle)));
226
throw new NotSupportedException(SR.Format(SR.StructMarshalling_MissingInteropData, Type.
GetTypeFromHandle
(structTypeHandle)));
Internal\Runtime\CompilerHelpers\StartupCode\StartupCodeHelpers.Reflection.cs (1)
21
return Type.
GetTypeFromHandle
(s_entryAssemblyType)?.Assembly;
System\Array.NativeAot.cs (1)
411
throw new InvalidCastException(SR.Format(SR.Arg_ObjObjEx, value.GetType(), Type.
GetTypeFromHandle
(new RuntimeTypeHandle(pElementEEType))));
System\InvokeUtils.cs (3)
93
Type exactDstType = Type.
GetTypeFromHandle
(new RuntimeTypeHandle(dstEEType))!;
413
object? destinationTypeName = Type.
GetTypeFromHandle
(new RuntimeTypeHandle(dstEEType));
416
return new ArgumentException(SR.Format(SR.Arg_ObjObjEx, Type.
GetTypeFromHandle
(new RuntimeTypeHandle(srcEEType)), destinationTypeName));
System\Reflection\Runtime\General\TypeUnifier.cs (1)
77
return Type.
GetTypeFromHandle
(typeHandle)!.ToRuntimeTypeInfo();
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (1)
87
return DynamicDelegateAugments.CreateObjectArrayDelegate(Type.
GetTypeFromHandle
(delegateType),
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (3)
87
return Type.
GetTypeFromHandle
(baseTypeHandle);
631
_type = (RuntimeType)Type.
GetTypeFromHandle
(runtimeTypeHandle)!;
804
return Type.
GetTypeFromHandle
(baseTypeHandle);
System\Runtime\InteropServices\TypeMapLazyDictionary.NativeAot.cs (2)
159
value = Type.
GetTypeFromHandle
(typeHandle)!;
199
value = Type.
GetTypeFromHandle
(targetHandle)!;
System\RuntimeTypeHandle.cs (1)
86
Type? type = Type.
GetTypeFromHandle
(this);
System\TypedReference.cs (1)
37
public static Type? GetTargetType(TypedReference value) => Type.
GetTypeFromHandle
(value._typeHandle);
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\DataContract.cs (2)
455
type ??= Type.
GetTypeFromHandle
(typeHandle)!;
533
type ??= Type.
GetTypeFromHandle
(typeHandle)!;
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
52
DataContractSerializer dataContractSerializer = new DataContractSerializer(Type.
GetTypeFromHandle
(declaredTypeHandle)!,
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
90
return InternalDeserialize(xmlReader, name, ns, Type.
GetTypeFromHandle
(declaredTypeHandle)!, ref dataContract);
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
42
return InternalDeserializeWithSurrogate(xmlReader, Type.
GetTypeFromHandle
(declaredTypeHandle)!, null /*surrogateDataContract*/, name, ns);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
118
SerializeWithXsiType(xmlWriter, obj, objTypeHandle, null /*type*/, declaredTypeID, declaredTypeHandle, Type.
GetTypeFromHandle
(declaredTypeHandle)!);
178
objectType ??= Type.
GetTypeFromHandle
(objectTypeHandle)!;
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (2)
232
Type objType = Type.
GetTypeFromHandle
(objTypeHandle)!;
233
Type declaredType = GetSurrogatedType(Type.
GetTypeFromHandle
(declaredTypeHandle)!);
System.Private.Reflection.Execution (2)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs (2)
188
Type typeDefinition = Type.
GetTypeFromHandle
(genericTypeDefinitionHandle);
200
typeArguments[i] = Type.
GetTypeFromHandle
(genericTypeArgumentHandles[i]);
System.Runtime.InteropServices (3)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
62
Type runtimeType = Type.
GetTypeFromHandle
(type)!;
System\Runtime\InteropServices\Marshalling\IComExposedDetails.cs (1)
23
var type = Type.
GetTypeFromHandle
(handle);
System\Runtime\InteropServices\Marshalling\IIUnknownDerivedDetails.cs (1)
34
var type = Type.
GetTypeFromHandle
(handle);