17 instantiations of RuntimeTypeHandle
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
30
get => new
RuntimeTypeHandle
(this);
src\System\Runtime\InteropServices\DynamicInterfaceCastableHelpers.cs (2)
19
bool isImplemented = castable.IsInterfaceImplemented(new
RuntimeTypeHandle
(interfaceType), throwIfNotImplemented);
43
RuntimeTypeHandle handle = castable.GetInterfaceImplementation(new
RuntimeTypeHandle
(interfaceType));
src\System\RuntimeHandles.cs (3)
22
new
RuntimeTypeHandle
(GetRuntimeTypeChecked());
34
new
RuntimeTypeHandle
(GetRuntimeTypeFromHandleMaybeNull(value));
1900
return new
RuntimeTypeHandle
(type!);
src\System\RuntimeType.CoreCLR.cs (11)
1489
name = new
RuntimeTypeHandle
(m_runtimeType).ConstructName(formatFlags);
2481
RuntimeTypeHandle th = new
RuntimeTypeHandle
(this);
3621
return new
RuntimeTypeHandle
(this).Instantiate(rt);
3664
ret = new
RuntimeTypeHandle
(this).Instantiate(instantiationRuntimeType);
3682
return new
RuntimeTypeHandle
(this).GetGenericVariableIndex();
3694
return new
RuntimeTypeHandle
(this).GetConstraints() ?? [];
3720
public override Type MakePointerType() => new
RuntimeTypeHandle
(this).MakePointer();
3722
public override Type MakeByRefType() => new
RuntimeTypeHandle
(this).MakeByRef();
3724
public override Type MakeArrayType() => new
RuntimeTypeHandle
(this).MakeSZArray();
3731
return new
RuntimeTypeHandle
(this).MakeArray(rank);
3751
return new
RuntimeTypeHandle
(this).MakeFunctionPointer(parameterTypes, isUnmanaged);
347 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>
344
/// <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>
344
/// <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 (211)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2252
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)
206
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\Runtime\InteropServices\TypeMapLazyDictionary.cs (2)
417
type =
RuntimeTypeHandle
.GetRuntimeTypeFromHandleMaybeNull(handle);
492
type =
RuntimeTypeHandle
.GetRuntimeTypeFromHandleMaybeNull(handle);
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)
96
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)
193
public System.TypedReference GetNextArg(System.
RuntimeTypeHandle
rth)
198
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)
834
AllocateNewArray(
RuntimeTypeHandle
.ToIntPtr(typeof(T[]).TypeHandle), length, flags, ObjectHandleOnStack.Create(ref result));
855
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)
797
if (handle is
RuntimeTypeHandle
)
799
typeHandle = ((
RuntimeTypeHandle
)handle).Value;
963
public int GetTokenFor(RuntimeMethodHandle method,
RuntimeTypeHandle
contextType)
971
public int GetTokenFor(RuntimeFieldHandle field,
RuntimeTypeHandle
contextType)
975
public int GetTokenFor(
RuntimeTypeHandle
type)
1053
public int GetTokenFor(RuntimeMethodHandle method,
RuntimeTypeHandle
typeContext)
1068
public int GetTokenFor(RuntimeFieldHandle field,
RuntimeTypeHandle
typeContext)
1073
public int GetTokenFor(
RuntimeTypeHandle
type)
1094
internal
RuntimeTypeHandle
m_context;
1096
internal GenericMethodInfo(RuntimeMethodHandle methodHandle,
RuntimeTypeHandle
context)
1106
internal
RuntimeTypeHandle
m_context;
1108
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)
646
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)
121
if (
RuntimeTypeHandle
.GetNumVirtuals(parent) <= slot)
124
return (RuntimeMethodInfo?)RuntimeType.GetMethodBase(parent,
RuntimeTypeHandle
.GetMethodAt(parent, slot));
348
int cVtblSlots =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
353
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);
176
RuntimeTypeHandle
.RegisterCollectibleTypeDependency(type, requestingAssembly);
279
return
RuntimeTypeHandle
.GetRuntimeTypeFromHandle(typeHandle);
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (3)
256
Continuation newContinuation = (Continuation)
RuntimeTypeHandle
.InternalAllocNoChecks(contMT);
267
Continuation newContinuation = (Continuation)
RuntimeTypeHandle
.InternalAllocNoChecks(contMT);
278
Continuation newContinuation = (Continuation)
RuntimeTypeHandle
.InternalAllocNoChecks(contMT);
src\System\Runtime\CompilerServices\CastHelpers.cs (1)
576
object boxed =
RuntimeTypeHandle
.InternalAllocNoChecks(typeMT);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (8)
91
RuntimeTypeHandle
targetTypeHandle,
170
public static void RunClassConstructor(
RuntimeTypeHandle
type)
206
public static unsafe void PrepareMethod(RuntimeMethodHandle method,
RuntimeTypeHandle
[]? instantiation)
212
instantiation = (
RuntimeTypeHandle
[]?)instantiation?.Clone();
214
ReadOnlySpan<IntPtr> instantiationHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(instantiation, stackScratch: stackalloc IntPtr[8]);
620
public static object? Box(ref byte target,
RuntimeTypeHandle
type)
641
public static int SizeOf(
RuntimeTypeHandle
type)
1263
return new TypeHandle((void*)
RuntimeTypeHandle
.ToIntPtr(typeof(T).TypeHandle));
src\System\Runtime\InteropServices\DynamicInterfaceCastableHelpers.cs (1)
43
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) =>
77
/// Returns the internal pointer representation of a <see cref="
RuntimeTypeHandle
"/> object.
79
/// <param name="value">A <see cref="
RuntimeTypeHandle
"/> object to retrieve an internal pointer representation from.</param>
80
/// <returns>An <see cref="IntPtr"/> object that represents a <see cref="
RuntimeTypeHandle
"/> object.</returns>
82
public static IntPtr ToIntPtr(
RuntimeTypeHandle
value) => value.Value;
84
public static bool operator ==(
RuntimeTypeHandle
left, object? right) => left.Equals(right);
86
public static bool operator ==(object? left,
RuntimeTypeHandle
right) => right.Equals(left);
88
public static bool operator !=(
RuntimeTypeHandle
left, object? right) => !left.Equals(right);
90
public static bool operator !=(object? left,
RuntimeTypeHandle
right) => !right.Equals(left);
99
=> (obj is
RuntimeTypeHandle
handle) && ReferenceEquals(handle.m_type, m_type);
101
public bool Equals(
RuntimeTypeHandle
handle)
184
internal static ReadOnlySpan<IntPtr> CopyRuntimeTypeHandles(
RuntimeTypeHandle
[]? inHandles, Span<IntPtr> stackScratch)
596
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
608
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
617
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
636
internal void VerifyInterfaceIsImplemented(
RuntimeTypeHandle
interfaceHandle)
638
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
639
RuntimeTypeHandle
nativeInterfaceHandle = interfaceHandle.GetNativeHandle();
646
internal RuntimeMethodHandleInternal GetInterfaceMethodImplementation(
RuntimeTypeHandle
interfaceHandle, RuntimeMethodHandleInternal interfaceMethodHandle)
648
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
649
RuntimeTypeHandle
nativeInterfaceHandle = interfaceHandle.GetNativeHandle();
668
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
755
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
763
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
777
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
790
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
803
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
814
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
825
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
860
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
1134
return
RuntimeTypeHandle
.GetRuntimeType(pMT);
1243
object obj =
RuntimeTypeHandle
.InternalAlloc(pMT);
1573
return
RuntimeTypeHandle
.GetRuntimeType(pMT);
1868
public
RuntimeTypeHandle
GetRuntimeTypeHandleFromMetadataToken(int typeToken) { return ResolveTypeHandle(typeToken); }
1870
public
RuntimeTypeHandle
ResolveTypeHandle(int typeToken) => ResolveTypeHandle(typeToken, null, null);
1872
public
RuntimeTypeHandle
ResolveTypeHandle(int typeToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1883
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext.Clone();
1884
typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1888
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext.Clone();
1889
methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1928
public RuntimeMethodHandle ResolveMethodHandle(int methodToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1932
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext?.Clone();
1933
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext?.Clone();
1935
ReadOnlySpan<IntPtr> typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1936
ReadOnlySpan<IntPtr> methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1980
public RuntimeFieldHandle ResolveFieldHandle(int fieldToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1991
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext.Clone();
1992
typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1996
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext.Clone();
1997
methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]);
src\System\RuntimeType.ActivatorCache.cs (1)
52
RuntimeTypeHandle
.GetActivationInfo(rt,
src\System\RuntimeType.BoxCache.cs (1)
14
/// A cache which allows optimizing <see cref="RuntimeHelpers.Box(ref byte,
RuntimeTypeHandle
)"/>.
src\System\RuntimeType.CoreCLR.cs (43)
313
!
RuntimeTypeHandle
.CompareCanonicalHandles(approxDeclaringType, ReflectedType) :
589
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
638
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
641
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
652
int vtableSlots =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
654
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
765
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
821
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
843
interfaces =
RuntimeTypeHandle
.GetInterfaces(ReflectedType);
861
while (!
RuntimeTypeHandle
.GetFields(declaringType, result, out count))
879
bool needsStaticFieldForGeneric = declaringType.IsGenericType && !
RuntimeTypeHandle
.ContainsGenericVariables(declaringType);
931
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1000
if (filter.Match(
RuntimeTypeHandle
.GetUtf8Name(iList)))
1009
if (iFace.IsGenericType && filter.Match(
RuntimeTypeHandle
.GetUtf8Name(iFace)))
1026
if (!
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1028
Type[] ifaces =
RuntimeTypeHandle
.GetInterfaces(declaringType);
1035
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(interfaceType)))
1080
if (!filter.RequiresStringComparison() || filter.Match(
RuntimeTypeHandle
.GetUtf8Name(rt)))
1098
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1103
int tkEnclosingType =
RuntimeTypeHandle
.GetToken(declaringType);
1111
ModuleHandle moduleHandle = new ModuleHandle(
RuntimeTypeHandle
.GetModule(declaringType));
1133
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(nestedType)))
1156
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1179
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1254
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1262
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
1291
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1302
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
1481
m_isGlobal =
RuntimeTypeHandle
.GetModule(runtimeType).RuntimeType == runtimeType;
1531
return new(
RuntimeTypeHandle
.GetArgumentTypesFromFunctionPointer(type));
1593
RuntimeType? enclosingType =
RuntimeTypeHandle
.GetDeclaringType(GetRuntimeType());
1655
RuntimeTypeHandle
.GetGenericTypeDefinition(new QCallTypeHandle(ref type), ObjectHandleOnStack.Create(ref genericDefinition));
1794
RuntimeType result =
RuntimeTypeHandle
.GetRuntimeType(pParentMT);
1988
!
RuntimeTypeHandle
.CompareCanonicalHandles(declaredType, reflectedType))
2045
if (!
RuntimeTypeHandle
.SatisfiesConstraints(genericParameter.TypeHandle.GetRuntimeTypeChecked(),
2481
RuntimeTypeHandle
th = new RuntimeTypeHandle(this);
2748
RuntimeTypeHandle
ifaceRtTypeHandle = ifaceRtType.TypeHandle;
2759
int ifaceVirtualMethodCount =
RuntimeTypeHandle
.GetNumVirtualsAndStaticVirtuals(ifaceRtType);
2770
RuntimeMethodHandleInternal ifaceRtMethodHandle =
RuntimeTypeHandle
.GetMethodAt(ifaceRtType, i);
3301
IRuntimeMethodInfo? declaringMethod =
RuntimeTypeHandle
.GetDeclaringMethodForGenericParameter(this);
3587
public sealed override bool IsSZArray =>
RuntimeTypeHandle
.IsSZArray(this);
3822
public override bool IsFunctionPointer =>
RuntimeTypeHandle
.IsFunctionPointer(this);
3823
public override bool IsUnmanagedFunctionPointer =>
RuntimeTypeHandle
.IsUnmanagedFunctionPointer(this);
src\System\StubHelpers.cs (1)
983
RuntimeType marshalerType =
RuntimeTypeHandle
.GetRuntimeType((MethodTable*)pMT);
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)
958
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\net11.0\System.Runtime.Forwards.cs (1)
744
[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);