16 instantiations of RuntimeTypeHandle
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
30
get => new
RuntimeTypeHandle
(this);
src\System\Runtime\InteropServices\DynamicInterfaceCastableHelpers.cs (2)
18
bool isImplemented = castable.IsInterfaceImplemented(new
RuntimeTypeHandle
(interfaceType), throwIfNotImplemented);
28
RuntimeTypeHandle handle = castable.GetInterfaceImplementation(new
RuntimeTypeHandle
(interfaceType));
src\System\RuntimeHandles.cs (3)
22
new
RuntimeTypeHandle
(GetRuntimeTypeChecked());
34
new
RuntimeTypeHandle
(GetRuntimeTypeFromHandleMaybeNull(value));
1849
return new
RuntimeTypeHandle
(type!);
src\System\RuntimeType.CoreCLR.cs (10)
1438
name = new
RuntimeTypeHandle
(m_runtimeType).ConstructName(formatFlags);
2429
RuntimeTypeHandle th = new
RuntimeTypeHandle
(this);
3566
return new
RuntimeTypeHandle
(this).Instantiate(rt);
3609
ret = new
RuntimeTypeHandle
(this).Instantiate(instantiationRuntimeType);
3627
return new
RuntimeTypeHandle
(this).GetGenericVariableIndex();
3639
Type[] constraints = new
RuntimeTypeHandle
(this).GetConstraints();
3666
public override Type MakePointerType() => new
RuntimeTypeHandle
(this).MakePointer();
3668
public override Type MakeByRefType() => new
RuntimeTypeHandle
(this).MakeByRef();
3670
public override Type MakeArrayType() => new
RuntimeTypeHandle
(this).MakeSZArray();
3677
return new
RuntimeTypeHandle
(this).MakeArray(rank);
343 references to RuntimeTypeHandle
dotnet-svcutil-lib (36)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
1127
Call(typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(
RuntimeTypeHandle
) }, null));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (17)
114
internal static DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type)
119
internal static DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type, SerializationMode mode)
126
internal static DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle, SerializationMode mode)
137
internal static DataContract GetDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type type)
142
internal static DataContract GetGetOnlyCollectionDataContract(int id,
RuntimeTypeHandle
typeHandle, Type type, SerializationMode mode)
158
internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type type)
188
internal static int GetId(
RuntimeTypeHandle
typeHandle)
567
internal static DataContract GetDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type type)
588
internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type type)
638
internal static int GetId(
RuntimeTypeHandle
typeHandle)
677
private static DataContract CreateDataContract(int id,
RuntimeTypeHandle
typeHandle, Type type)
760
private static DataContract CreateGetOnlyCollectionDataContract(int id,
RuntimeTypeHandle
typeHandle, Type type)
799
private static
RuntimeTypeHandle
GetDataContractAdapterTypeHandle(
RuntimeTypeHandle
typeHandle)
2564
private
RuntimeTypeHandle
_value;
2570
public TypeHandleRef(
RuntimeTypeHandle
value)
2575
public
RuntimeTypeHandle
Value
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
348
s_internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.ScanAllMembers, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(
RuntimeTypeHandle
), typeof(string), typeof(string) });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
130
internal virtual DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type)
142
internal virtual DataContract GetDataContractSkipValidation(int typeId,
RuntimeTypeHandle
typeHandle, Type type)
155
internal virtual DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
106
internal virtual object InternalDeserialize(XmlReaderDelegator xmlReader, int id,
RuntimeTypeHandle
declaredTypeHandle, string name, string ns)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
37
internal override object InternalDeserialize(XmlReaderDelegator xmlReader, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle, string name, string ns)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (9)
101
internal void InternalSerializeReference(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
112
internal virtual void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
127
RuntimeTypeHandle
objTypeHandle = obj.GetType().TypeHandle;
142
internal void SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
declaredTypeHandle)
158
internal virtual void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
originalDeclaredTypeHandle, Type graphType)
177
protected virtual void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
objectTypeHandle, Type objectType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle, Type declaredType)
256
protected void SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType,
RuntimeTypeHandle
declaredTypeHandle, Type declaredType)
579
protected virtual void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
declaredTypeHandle)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (3)
177
internal override void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
251
private void InternalSerializeWithSurrogate(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
253
RuntimeTypeHandle
objTypeHandle = isDeclaredType ? declaredTypeHandle : obj.GetType().TypeHandle;
illink (3)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (3)
18
/// <see cref="System.Type.GetTypeFromHandle(System.
RuntimeTypeHandle
)"/>
44
/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle, System.
RuntimeTypeHandle
)"/></item>
340
/// <see cref="System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.
RuntimeTypeHandle
)"/>
ILLink.RoslynAnalyzer (3)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (3)
18
/// <see cref="System.Type.GetTypeFromHandle(System.
RuntimeTypeHandle
)"/>
44
/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle, System.
RuntimeTypeHandle
)"/></item>
340
/// <see cref="System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.
RuntimeTypeHandle
)"/>
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
237
/// Indicates that the type is <see cref="
RuntimeTypeHandle
"/>.
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\Core\Portable\SpecialType.cs (1)
237
/// Indicates that the type is <see cref="
RuntimeTypeHandle
"/>.
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
785
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
RuntimeTypeHandle
))]
netstandard (1)
netstandard.cs (1)
1819
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
RuntimeTypeHandle
))]
System.Linq.Expressions (1)
System\Linq\Expressions\Common\CachedReflectionInfo.cs (1)
25
public static MethodInfo MethodBase_GetMethodFromHandle_RuntimeMethodHandle_RuntimeTypeHandle => field ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle), typeof(
RuntimeTypeHandle
) })!;
System.Private.CoreLib (207)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2251
private static object InternalBoxEnum(
RuntimeTypeHandle
type, long value)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
341
public override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
105
public override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException();
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (1)
346
s_Type_GetTypeFromHandle ??= typeof(Type).GetMethod(nameof(Type.GetTypeFromHandle), [typeof(
RuntimeTypeHandle
)])!;
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvokerCommon.cs (3)
42
if (
RuntimeTypeHandle
.IsByRef(type))
53
if (
RuntimeTypeHandle
.IsPointer(type))
57
else if (
RuntimeTypeHandle
.IsFunctionPointer(type))
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
91
public override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
205
public sealed override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
53
public override
RuntimeTypeHandle
TypeHandle => typeImpl.TypeHandle;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\QCallHandles.cs (1)
125
internal QCallTypeHandle(ref
RuntimeTypeHandle
rth)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\IDynamicInterfaceCastable.cs (4)
32
bool IsInterfaceImplemented(
RuntimeTypeHandle
interfaceType, bool throwIfNotImplemented);
48
RuntimeTypeHandle
GetInterfaceImplementation(
RuntimeTypeHandle
interfaceType);
52
/// Attribute required by any type that is returned by <see cref="IDynamicInterfaceCastable.GetInterfaceImplementation(
RuntimeTypeHandle
)"/>.
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (17)
16
public override Assembly Assembly =>
RuntimeTypeHandle
.GetAssembly(this);
18
public override bool IsGenericParameter =>
RuntimeTypeHandle
.IsGenericVariable(this);
19
public override bool IsTypeDefinition =>
RuntimeTypeHandle
.IsTypeDefinition(this);
24
public override int MetadataToken =>
RuntimeTypeHandle
.GetToken(this);
27
public override
RuntimeTypeHandle
TypeHandle
48
return
RuntimeTypeHandle
.GetArrayRank(this);
51
protected override TypeAttributes GetAttributeFlagsImpl() =>
RuntimeTypeHandle
.GetAttributes(this);
115
public override Type? GetElementType() =>
RuntimeTypeHandle
.GetElementType(this);
189
internal RuntimeModule GetRuntimeModule() =>
RuntimeTypeHandle
.GetModule(this);
204
protected override bool HasElementTypeImpl() =>
RuntimeTypeHandle
.HasElementType(this);
206
protected override bool IsArrayImpl() =>
RuntimeTypeHandle
.IsArray(this);
270
protected override bool IsByRefImpl() =>
RuntimeTypeHandle
.IsByRef(this);
272
protected override bool IsPrimitiveImpl() =>
RuntimeTypeHandle
.IsPrimitive(this);
274
protected override bool IsPointerImpl() =>
RuntimeTypeHandle
.IsPointer(this);
290
return
RuntimeTypeHandle
.CanCastTo(fromType, this);
717
if (
RuntimeTypeHandle
.IsGenericVariable(this))
795
elementType =
RuntimeTypeHandle
.GetElementType(type)!;
src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
467
public virtual
RuntimeTypeHandle
TypeHandle
473
public static
RuntimeTypeHandle
GetTypeHandle(object o)
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (1)
82
return
RuntimeTypeHandle
.IsVisible(rt);
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (1)
85
public static
RuntimeTypeHandle
TargetTypeToken(TypedReference value)
src\System\ArgIterator.cs (2)
191
public System.TypedReference GetNextArg(System.
RuntimeTypeHandle
rth)
196
public unsafe System.
RuntimeTypeHandle
GetNextArgType()
src\System\Collections\Generic\ArraySortHelper.CoreCLR.cs (2)
28
defaultArraySortHelper = (IArraySortHelper<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(GenericArraySortHelper<string>), (RuntimeType)typeof(T));
61
defaultArraySortHelper = (IArraySortHelper<TKey, TValue>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(GenericArraySortHelper<string, string>), (RuntimeType)typeof(TKey), (RuntimeType)typeof(TValue));
src\System\Collections\Generic\ComparerHelpers.cs (1)
5
using static System.
RuntimeTypeHandle
;
src\System\Delegate.CoreCLR.cs (1)
438
return Unsafe.As<MulticastDelegate>(
RuntimeTypeHandle
.InternalAlloc(type));
src\System\GC.CoreCLR.cs (2)
831
AllocateNewArray(
RuntimeTypeHandle
.ToIntPtr(typeof(T[]).TypeHandle), length, flags, ObjectHandleOnStack.Create(ref result));
852
AllocateNewArray(
RuntimeTypeHandle
.ToIntPtr(typeof(T[]).TypeHandle), length, flags, ObjectHandleOnStack.Create(ref result));
src\System\MulticastDelegate.CoreCLR.cs (1)
171
MulticastDelegate result = Unsafe.As<MulticastDelegate>(
RuntimeTypeHandle
.InternalAllocNoChecks(RuntimeHelpers.GetMethodTable(this)));
src\System\Object.CoreCLR.cs (1)
17
RuntimeType type =
RuntimeTypeHandle
.GetRuntimeType(pMT);
src\System\Reflection\Associates.cs (4)
66
RuntimeMethodHandleInternal associateMethodHandle = ModuleHandle.ResolveMethodHandleInternal(
RuntimeTypeHandle
.GetModule(declaredType), tkMethod, genericArgumentHandles, default);
90
(
RuntimeTypeHandle
.GetAttributes(declaredType) & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Class;
98
associateMethodHandle =
RuntimeTypeHandle
.GetMethodAt(reflectedType, slot);
132
while (
RuntimeTypeHandle
.IsGenericVariable(reflectedType))
src\System\Reflection\Emit\DynamicILGenerator.cs (12)
779
if (handle is
RuntimeTypeHandle
)
781
typeHandle = ((
RuntimeTypeHandle
)handle).Value;
942
public int GetTokenFor(RuntimeMethodHandle method,
RuntimeTypeHandle
contextType)
950
public int GetTokenFor(RuntimeFieldHandle field,
RuntimeTypeHandle
contextType)
954
public int GetTokenFor(
RuntimeTypeHandle
type)
1032
public int GetTokenFor(RuntimeMethodHandle method,
RuntimeTypeHandle
typeContext)
1047
public int GetTokenFor(RuntimeFieldHandle field,
RuntimeTypeHandle
typeContext)
1052
public int GetTokenFor(
RuntimeTypeHandle
type)
1073
internal
RuntimeTypeHandle
m_context;
1075
internal GenericMethodInfo(RuntimeMethodHandle methodHandle,
RuntimeTypeHandle
context)
1085
internal
RuntimeTypeHandle
m_context;
1087
internal GenericFieldInfo(RuntimeFieldHandle fieldHandle,
RuntimeTypeHandle
context)
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
79
public override
RuntimeTypeHandle
TypeHandle => m_typeBuilder.TypeHandle;
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
92
public override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException();
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
150
private int GetMemberRefOfFieldInfo(int tkType,
RuntimeTypeHandle
declaringType, RuntimeFieldInfo runtimeField)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
651
public override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\System\Reflection\FieldInfo.CoreCLR.cs (1)
24
public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle,
RuntimeTypeHandle
declaringType)
src\System\Reflection\MdConstant.cs (1)
8
public static unsafe object? GetValue(MetadataImport scope, int token,
RuntimeTypeHandle
fieldTypeHandle, bool raw)
src\System\Reflection\MdFieldInfo.cs (1)
22
int tkField, FieldAttributes fieldAttributes,
RuntimeTypeHandle
declaringTypeHandle, RuntimeTypeCache reflectedTypeCache, BindingFlags bindingFlags)
src\System\Reflection\MethodBase.CoreCLR.cs (1)
31
public static MethodBase? GetMethodFromHandle(RuntimeMethodHandle handle,
RuntimeTypeHandle
declaringType)
src\System\Reflection\RtFieldInfo.cs (1)
66
return
RuntimeTypeHandle
.GetModule(RuntimeFieldHandle.GetApproxDeclaringType(this));
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
174
internal RuntimeModule GetRuntimeModule() { return
RuntimeTypeHandle
.GetModule(m_declaringType); }
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
1697
RuntimeTypeHandle
parentTypeHandle = tkParent.IsTypeDef ?
1701
RuntimeTypeHandle
attributeTypeHandle = attributeType.TypeHandle;
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (4)
118
if (
RuntimeTypeHandle
.GetNumVirtuals(parent) <= slot)
121
return (RuntimeMethodInfo?)RuntimeType.GetMethodBase(parent,
RuntimeTypeHandle
.GetMethodAt(parent, slot));
336
int cVtblSlots =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
341
baseMethodHandle =
RuntimeTypeHandle
.GetMethodAt(declaringType, slot);
src\System\Reflection\RuntimeModule.cs (9)
27
private static
RuntimeTypeHandle
[]? ConvertToTypeHandleArray(Type[]? genericArguments)
33
RuntimeTypeHandle
[] typeHandleArgs = new
RuntimeTypeHandle
[size];
95
RuntimeTypeHandle
[]? typeArgs = null;
96
RuntimeTypeHandle
[]? methodArgs = null;
168
RuntimeTypeHandle
[]? typeArgs = null;
169
RuntimeTypeHandle
[]? methodArgs = null;
231
RuntimeTypeHandle
[]? typeArgs = null;
232
RuntimeTypeHandle
[]? methodArgs = null;
src\System\Reflection\TypeNameResolver.CoreCLR.cs (3)
128
RuntimeTypeHandle
.RegisterCollectibleTypeDependency(type, requestingAssembly);
169
RuntimeTypeHandle
.RegisterCollectibleTypeDependency(type, requestingAssembly);
272
return
RuntimeTypeHandle
.GetRuntimeTypeFromHandle(typeHandle);
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
203
return
RuntimeTypeHandle
.InternalAllocNoChecks((MethodTable*)pMT);
src\System\Runtime\CompilerServices\CastHelpers.cs (1)
554
object boxed =
RuntimeTypeHandle
.InternalAllocNoChecks(typeMT);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (8)
90
RuntimeTypeHandle
targetTypeHandle,
169
public static void RunClassConstructor(
RuntimeTypeHandle
type)
204
public static unsafe void PrepareMethod(RuntimeMethodHandle method,
RuntimeTypeHandle
[]? instantiation)
210
instantiation = (
RuntimeTypeHandle
[]?)instantiation?.Clone();
212
ReadOnlySpan<IntPtr> instantiationHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(instantiation, stackScratch: stackalloc IntPtr[8]);
580
public static object? Box(ref byte target,
RuntimeTypeHandle
type)
601
public static int SizeOf(
RuntimeTypeHandle
type)
1169
return new TypeHandle((void*)
RuntimeTypeHandle
.ToIntPtr(typeof(T).TypeHandle));
src\System\Runtime\InteropServices\DynamicInterfaceCastableHelpers.cs (1)
28
RuntimeTypeHandle
handle = castable.GetInterfaceImplementation(new RuntimeTypeHandle(interfaceType));
src\System\RuntimeHandles.cs (59)
18
public unsafe partial struct RuntimeTypeHandle : IEquatable<
RuntimeTypeHandle
>, ISerializable
21
internal
RuntimeTypeHandle
GetNativeHandle() =>
29
/// Returns a new <see cref="
RuntimeTypeHandle
"/> object created from a handle to a RuntimeType.
31
/// <param name="value">An IntPtr handle to a RuntimeType to create a <see cref="
RuntimeTypeHandle
"/> object from.</param>
32
/// <returns>A new <see cref="
RuntimeTypeHandle
"/> object that corresponds to the value parameter.</returns>
33
public static
RuntimeTypeHandle
FromIntPtr(IntPtr value) =>
76
/// Returns the internal pointer representation of a <see cref="
RuntimeTypeHandle
"/> object.
78
/// <param name="value">A <see cref="
RuntimeTypeHandle
"/> object to retrieve an internal pointer representation from.</param>
79
/// <returns>An <see cref="IntPtr"/> object that represents a <see cref="
RuntimeTypeHandle
"/> object.</returns>
81
public static IntPtr ToIntPtr(
RuntimeTypeHandle
value) => value.Value;
83
public static bool operator ==(
RuntimeTypeHandle
left, object? right) => left.Equals(right);
85
public static bool operator ==(object? left,
RuntimeTypeHandle
right) => right.Equals(left);
87
public static bool operator !=(
RuntimeTypeHandle
left, object? right) => !left.Equals(right);
89
public static bool operator !=(object? left,
RuntimeTypeHandle
right) => !right.Equals(left);
98
=> (obj is
RuntimeTypeHandle
handle) && ReferenceEquals(handle.m_type, m_type);
100
public bool Equals(
RuntimeTypeHandle
handle)
183
internal static ReadOnlySpan<IntPtr> CopyRuntimeTypeHandles(
RuntimeTypeHandle
[]? inHandles, Span<IntPtr> stackScratch)
584
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
596
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
605
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
624
internal void VerifyInterfaceIsImplemented(
RuntimeTypeHandle
interfaceHandle)
626
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
627
RuntimeTypeHandle
nativeInterfaceHandle = interfaceHandle.GetNativeHandle();
634
internal RuntimeMethodHandleInternal GetInterfaceMethodImplementation(
RuntimeTypeHandle
interfaceHandle, RuntimeMethodHandleInternal interfaceMethodHandle)
636
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
637
RuntimeTypeHandle
nativeInterfaceHandle = interfaceHandle.GetNativeHandle();
656
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
742
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
750
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
763
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
776
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
789
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
800
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
811
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
822
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
1098
return
RuntimeTypeHandle
.GetRuntimeType(pMT);
1204
object obj =
RuntimeTypeHandle
.InternalAlloc(pMT);
1529
return
RuntimeTypeHandle
.GetRuntimeType(pMT);
1817
public
RuntimeTypeHandle
GetRuntimeTypeHandleFromMetadataToken(int typeToken) { return ResolveTypeHandle(typeToken); }
1819
public
RuntimeTypeHandle
ResolveTypeHandle(int typeToken) => ResolveTypeHandle(typeToken, null, null);
1821
public
RuntimeTypeHandle
ResolveTypeHandle(int typeToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1832
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext.Clone();
1833
typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1837
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext.Clone();
1838
methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1876
public RuntimeMethodHandle ResolveMethodHandle(int methodToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1880
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext?.Clone();
1881
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext?.Clone();
1883
ReadOnlySpan<IntPtr> typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1884
ReadOnlySpan<IntPtr> methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1927
public RuntimeFieldHandle ResolveFieldHandle(int fieldToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1938
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext.Clone();
1939
typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1943
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext.Clone();
1944
methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]);
src\System\RuntimeType.ActivatorCache.cs (1)
52
RuntimeTypeHandle
.GetActivationInfo(rt,
src\System\RuntimeType.BoxCache.cs (1)
13
/// A cache which allows optimizing <see cref="RuntimeHelpers.Box(ref byte,
RuntimeTypeHandle
)"/>.
src\System\RuntimeType.CoreCLR.cs (44)
310
!
RuntimeTypeHandle
.CompareCanonicalHandles(approxDeclaringType, ReflectedType) :
586
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
628
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
631
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
642
int vtableSlots =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
644
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
747
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
796
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
818
interfaces =
RuntimeTypeHandle
.GetInterfaces(ReflectedType);
836
while (!
RuntimeTypeHandle
.GetFields(declaringType, result, out count))
854
bool needsStaticFieldForGeneric = declaringType.IsGenericType && !
RuntimeTypeHandle
.ContainsGenericVariables(declaringType);
900
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
962
if (filter.Match(
RuntimeTypeHandle
.GetUtf8Name(iList)))
971
if (iFace.IsGenericType && filter.Match(
RuntimeTypeHandle
.GetUtf8Name(iFace)))
988
if (!
RuntimeTypeHandle
.IsGenericVariable(declaringType))
990
Type[] ifaces =
RuntimeTypeHandle
.GetInterfaces(declaringType);
997
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(interfaceType)))
1042
if (!filter.RequiresStringComparison() || filter.Match(
RuntimeTypeHandle
.GetUtf8Name(rt)))
1060
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1065
int tkEnclosingType =
RuntimeTypeHandle
.GetToken(declaringType);
1073
ModuleHandle moduleHandle = new ModuleHandle(
RuntimeTypeHandle
.GetModule(declaringType));
1095
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(nestedType)))
1118
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1141
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1211
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1219
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
1248
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1259
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
1430
m_isGlobal =
RuntimeTypeHandle
.GetModule(runtimeType).RuntimeType == runtimeType;
1479
return new(
RuntimeTypeHandle
.GetArgumentTypesFromFunctionPointer(type));
1541
RuntimeType? enclosingType =
RuntimeTypeHandle
.GetDeclaringType(GetRuntimeType());
1603
RuntimeTypeHandle
.GetGenericTypeDefinition(new QCallTypeHandle(ref type), ObjectHandleOnStack.Create(ref genericDefinition));
1742
RuntimeType result =
RuntimeTypeHandle
.GetRuntimeType(pParentMT);
1936
!
RuntimeTypeHandle
.CompareCanonicalHandles(declaredType, reflectedType))
1993
if (!
RuntimeTypeHandle
.SatisfiesConstraints(genericParameter.TypeHandle.GetRuntimeTypeChecked(),
2429
RuntimeTypeHandle
th = new RuntimeTypeHandle(this);
2696
RuntimeTypeHandle
ifaceRtTypeHandle = ifaceRtType.TypeHandle;
2707
int ifaceVirtualMethodCount =
RuntimeTypeHandle
.GetNumVirtualsAndStaticVirtuals(ifaceRtType);
2718
RuntimeMethodHandleInternal ifaceRtMethodHandle =
RuntimeTypeHandle
.GetMethodAt(ifaceRtType, i);
3235
return
RuntimeTypeHandle
.IsCollectible(new QCallTypeHandle(ref thisType)) != Interop.BOOL.FALSE;
3246
IRuntimeMethodInfo? declaringMethod =
RuntimeTypeHandle
.GetDeclaringMethodForGenericParameter(this);
3531
public sealed override bool IsSZArray =>
RuntimeTypeHandle
.IsSZArray(this);
3748
public override bool IsFunctionPointer =>
RuntimeTypeHandle
.IsFunctionPointer(this);
3749
public override bool IsUnmanagedFunctionPointer =>
RuntimeTypeHandle
.IsUnmanagedFunctionPointer(this);
src\System\Type.CoreCLR.cs (1)
82
public static Type? GetTypeFromHandle(
RuntimeTypeHandle
handle)
System.Private.DataContractSerialization (57)
System\Runtime\Serialization\DataContract.cs (14)
68
internal static DataContract GetDataContract(
RuntimeTypeHandle
typeHandle)
77
internal static DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
85
internal static DataContract GetDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type? type)
92
internal static DataContract GetGetOnlyCollectionDataContract(int id,
RuntimeTypeHandle
typeHandle, Type? type)
105
internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type? type)
120
internal static int GetId(
RuntimeTypeHandle
typeHandle)
353
internal static DataContract GetDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type? type)
369
internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type? type)
408
internal static int GetId(
RuntimeTypeHandle
typeHandle)
445
private static DataContract CreateDataContract(int id,
RuntimeTypeHandle
typeHandle, Type? type)
525
private static DataContract CreateGetOnlyCollectionDataContract(int id,
RuntimeTypeHandle
typeHandle, Type? type)
580
private static
RuntimeTypeHandle
GetDataContractAdapterTypeHandle(
RuntimeTypeHandle
typeHandle)
950
RuntimeTypeHandle
runtimeTypeHandle = GetDataContractAdapterTypeHandle(type.TypeHandle);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
422
internal static void WriteJsonValue(JsonDataContract contract, XmlWriterDelegator writer, object graph, XmlObjectSerializerWriteContextComplexJson? context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
106
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
151
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonDataContract.cs (3)
96
public void WriteJsonValue(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context,
RuntimeTypeHandle
declaredTypeHandle)
105
public virtual void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context,
RuntimeTypeHandle
declaredTypeHandle)
189
internal static int GetId(
RuntimeTypeHandle
typeHandle)
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (1)
43
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (3)
704
LocalBuilder typeHandleValue = _ilg.DeclareLocal(typeof(
RuntimeTypeHandle
));
710
_ilg.Call(typeof(
RuntimeTypeHandle
).GetMethod("Equals", new Type[] { typeof(
RuntimeTypeHandle
) })!);
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
61
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
50
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
264
internal override DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type? type)
273
internal override DataContract GetDataContractSkipValidation(int typeId,
RuntimeTypeHandle
typeHandle, Type? type)
282
internal override DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (7)
150
protected override void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
declaredTypeHandle)
173
protected override void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
objectTypeHandle, Type? objectType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle, Type declaredType)
242
internal override void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
originalDeclaredTypeHandle, Type graphType)
369
internal override DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type? type)
378
internal override DataContract GetDataContractSkipValidation(int typeId,
RuntimeTypeHandle
typeHandle, Type? type)
387
internal override DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
359
s_internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.ScanAllMembers, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(
RuntimeTypeHandle
), typeof(string), typeof(string) });
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
717
LocalBuilder typeHandleValue = _ilg.DeclareLocal(typeof(
RuntimeTypeHandle
));
722
_ilg.Call(typeof(
RuntimeTypeHandle
).GetMethod("Equals", new Type[] { typeof(
RuntimeTypeHandle
) })!);
System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
107
internal virtual DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type? type)
121
internal virtual DataContract GetDataContractSkipValidation(int typeId,
RuntimeTypeHandle
typeHandle, Type? type)
135
internal virtual DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
87
internal virtual object? InternalDeserialize(XmlReaderDelegator xmlReader, int id,
RuntimeTypeHandle
declaredTypeHandle, string name, string ns)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
31
internal override object? InternalDeserialize(XmlReaderDelegator xmlReader, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle, string name, string ns)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (9)
85
internal void InternalSerializeReference(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
94
internal virtual void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
108
RuntimeTypeHandle
objTypeHandle = obj.GetType().TypeHandle;
125
internal void SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
declaredTypeHandle)
143
internal virtual void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
originalDeclaredTypeHandle, Type graphType)
166
protected virtual void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
objectTypeHandle, Type? objectType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle, Type declaredType)
231
protected void SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType,
RuntimeTypeHandle
declaredTypeHandle, Type declaredType)
576
protected virtual void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (3)
141
internal override void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
221
private void InternalSerializeWithSurrogate(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType,
RuntimeTypeHandle
declaredTypeHandle)
223
RuntimeTypeHandle
objTypeHandle = isDeclaredType ? declaredTypeHandle : obj.GetType().TypeHandle;
System.Private.Xml (1)
System\Xml\Serialization\CodeGenerator.cs (1)
774
Call(typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public, new Type[] { typeof(
RuntimeTypeHandle
) })!);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
150
public override
RuntimeTypeHandle
TypeHandle
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
52
private static readonly MethodInfo s_getTypeFromHandleMethod = typeof(Type).GetMethod("GetTypeFromHandle", new Type[] { typeof(
RuntimeTypeHandle
) })!;
System.Reflection.Emit (3)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
341
public override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType);
System\Reflection\Emit\EnumBuilderImpl.cs (1)
52
public override
RuntimeTypeHandle
TypeHandle => _typeBuilder.TypeHandle;
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (1)
89
public override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
368
public sealed override
RuntimeTypeHandle
TypeHandle => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
739
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
RuntimeTypeHandle
))]
System.Runtime.InteropServices (22)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (2)
58
public IComExposedDetails? GetComExposedTypeDetails(
RuntimeTypeHandle
type) => DefaultIUnknownInterfaceDetailsStrategy.Instance.GetComExposedTypeDetails(type);
60
public IIUnknownDerivedDetails? GetIUnknownDerivedDetails(
RuntimeTypeHandle
type)
System\Runtime\InteropServices\Marshalling\ComObject.cs (4)
95
RuntimeTypeHandle
IDynamicInterfaceCastable.GetInterfaceImplementation(
RuntimeTypeHandle
interfaceType)
105
bool IDynamicInterfaceCastable.IsInterfaceImplemented(
RuntimeTypeHandle
interfaceType, bool throwIfNotImplemented)
118
private bool LookUpVTableInfo(
RuntimeTypeHandle
handle, out IIUnknownCacheStrategy.TableInfo result, out int qiHResult)
System\Runtime\InteropServices\Marshalling\DefaultCaching.cs (4)
15
private readonly ConcurrentDictionary<
RuntimeTypeHandle
, IIUnknownCacheStrategy.TableInfo> _cache = new(concurrencyLevel: 1, capacity: 16);
17
IIUnknownCacheStrategy.TableInfo IIUnknownCacheStrategy.ConstructTableInfo(
RuntimeTypeHandle
handle, IIUnknownDerivedDetails details, void* ptr)
28
bool IIUnknownCacheStrategy.TryGetTableInfo(
RuntimeTypeHandle
handle, out IIUnknownCacheStrategy.TableInfo info)
33
bool IIUnknownCacheStrategy.TrySetTableInfo(
RuntimeTypeHandle
handle, IIUnknownCacheStrategy.TableInfo info)
System\Runtime\InteropServices\Marshalling\DefaultIUnknownInterfaceDetailsStrategy.cs (2)
10
public IComExposedDetails? GetComExposedTypeDetails(
RuntimeTypeHandle
type)
15
public IIUnknownDerivedDetails? GetIUnknownDerivedDetails(
RuntimeTypeHandle
type)
System\Runtime\InteropServices\Marshalling\IComExposedDetails.cs (1)
21
internal static IComExposedDetails? GetFromAttribute(
RuntimeTypeHandle
handle)
System\Runtime\InteropServices\Marshalling\IIUnknownCacheStrategy.cs (4)
31
public
RuntimeTypeHandle
ManagedType { get; init; }
41
TableInfo ConstructTableInfo(
RuntimeTypeHandle
handle, IIUnknownDerivedDetails interfaceDetails, void* ptr);
49
bool TryGetTableInfo(
RuntimeTypeHandle
handle, out TableInfo info);
57
bool TrySetTableInfo(
RuntimeTypeHandle
handle, TableInfo info);
System\Runtime\InteropServices\Marshalling\IIUnknownDerivedDetails.cs (1)
32
internal static IIUnknownDerivedDetails? GetFromAttribute(
RuntimeTypeHandle
handle)
System\Runtime\InteropServices\Marshalling\IIUnknownInterfaceDetailsStrategy.cs (4)
16
/// Given a <see cref="
RuntimeTypeHandle
"/> get the IUnknown details.
20
IIUnknownDerivedDetails? GetIUnknownDerivedDetails(
RuntimeTypeHandle
type);
23
/// Given a <see cref="
RuntimeTypeHandle
"/> get the details about the type that are exposed to COM.
27
IComExposedDetails? GetComExposedTypeDetails(
RuntimeTypeHandle
type);
System.Windows.Forms (1)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
315
RuntimeTypeHandle
type = GetType().TypeHandle;
System.Xaml (1)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
612
null, new Type[] { typeof(
RuntimeTypeHandle
) }, null);