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);
42
RuntimeTypeHandle handle = castable.GetInterfaceImplementation(new
RuntimeTypeHandle
(interfaceType));
src\System\RuntimeHandles.cs (3)
22
new
RuntimeTypeHandle
(GetRuntimeTypeChecked());
34
new
RuntimeTypeHandle
(GetRuntimeTypeFromHandleMaybeNull(value));
1872
return new
RuntimeTypeHandle
(type!);
src\System\RuntimeType.CoreCLR.cs (11)
1488
name = new
RuntimeTypeHandle
(m_runtimeType).ConstructName(formatFlags);
2480
RuntimeTypeHandle th = new
RuntimeTypeHandle
(this);
3644
return new
RuntimeTypeHandle
(this).Instantiate(rt);
3687
ret = new
RuntimeTypeHandle
(this).Instantiate(instantiationRuntimeType);
3705
return new
RuntimeTypeHandle
(this).GetGenericVariableIndex();
3717
return new
RuntimeTypeHandle
(this).GetConstraints() ?? [];
3743
public override Type MakePointerType() => new
RuntimeTypeHandle
(this).MakePointer();
3745
public override Type MakeByRefType() => new
RuntimeTypeHandle
(this).MakeByRef();
3747
public override Type MakeArrayType() => new
RuntimeTypeHandle
(this).MakeSZArray();
3754
return new
RuntimeTypeHandle
(this).MakeArray(rank);
3774
return new
RuntimeTypeHandle
(this).MakeFunctionPointer(parameterTypes, isUnmanaged);
350 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>
356
/// <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>
356
/// <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
"/>.
Microsoft.CodeAnalysis.Test.Utilities (1)
TestHelpers.cs (1)
38
public static void EnsureAssemblyLoaded(string assemblyName,
RuntimeTypeHandle
typeHandle)
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 (213)
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)
343
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)
92
public override
RuntimeTypeHandle
TypeHandle => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
209
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)
124
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)
410
type =
RuntimeTypeHandle
.GetRuntimeTypeFromHandleMaybeNull(handle);
485
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)
192
public System.TypedReference GetNextArg(System.
RuntimeTypeHandle
rth)
197
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)
796
if (handle is
RuntimeTypeHandle
)
798
typeHandle = ((
RuntimeTypeHandle
)handle).Value;
959
public int GetTokenFor(RuntimeMethodHandle method,
RuntimeTypeHandle
contextType)
967
public int GetTokenFor(RuntimeFieldHandle field,
RuntimeTypeHandle
contextType)
971
public int GetTokenFor(
RuntimeTypeHandle
type)
1049
public int GetTokenFor(RuntimeMethodHandle method,
RuntimeTypeHandle
typeContext)
1064
public int GetTokenFor(RuntimeFieldHandle field,
RuntimeTypeHandle
typeContext)
1069
public int GetTokenFor(
RuntimeTypeHandle
type)
1090
internal
RuntimeTypeHandle
m_context;
1092
internal GenericMethodInfo(RuntimeMethodHandle methodHandle,
RuntimeTypeHandle
context)
1102
internal
RuntimeTypeHandle
m_context;
1104
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)
645
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);
175
RuntimeTypeHandle
.RegisterCollectibleTypeDependency(type, requestingAssembly);
278
return
RuntimeTypeHandle
.GetRuntimeTypeFromHandle(typeHandle);
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (3)
303
Continuation newContinuation = (Continuation)
RuntimeTypeHandle
.InternalAllocNoChecks(contMT);
313
Continuation newContinuation = (Continuation)
RuntimeTypeHandle
.InternalAllocNoChecks(contMT);
323
Continuation newContinuation = (Continuation)
RuntimeTypeHandle
.InternalAllocNoChecks(contMT);
src\System\Runtime\CompilerServices\CastHelpers.cs (1)
551
object boxed =
RuntimeTypeHandle
.InternalAllocNoChecks(typeMT);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (8)
91
RuntimeTypeHandle
targetTypeHandle,
170
public static void RunClassConstructor(
RuntimeTypeHandle
type)
205
public static unsafe void PrepareMethod(RuntimeMethodHandle method,
RuntimeTypeHandle
[]? instantiation)
211
instantiation = (
RuntimeTypeHandle
[]?)instantiation?.Clone();
213
ReadOnlySpan<IntPtr> instantiationHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(instantiation, stackScratch: stackalloc IntPtr[8]);
612
public static object? Box(ref byte target,
RuntimeTypeHandle
type)
633
public static int SizeOf(
RuntimeTypeHandle
type)
1247
return new TypeHandle((void*)
RuntimeTypeHandle
.ToIntPtr(typeof(T).TypeHandle));
src\System\Runtime\InteropServices\DynamicInterfaceCastableHelpers.cs (1)
42
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();
845
RuntimeTypeHandle
nativeHandle = GetNativeHandle();
1118
return
RuntimeTypeHandle
.GetRuntimeType(pMT);
1224
object obj =
RuntimeTypeHandle
.InternalAlloc(pMT);
1552
return
RuntimeTypeHandle
.GetRuntimeType(pMT);
1840
public
RuntimeTypeHandle
GetRuntimeTypeHandleFromMetadataToken(int typeToken) { return ResolveTypeHandle(typeToken); }
1842
public
RuntimeTypeHandle
ResolveTypeHandle(int typeToken) => ResolveTypeHandle(typeToken, null, null);
1844
public
RuntimeTypeHandle
ResolveTypeHandle(int typeToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1855
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext.Clone();
1856
typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1860
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext.Clone();
1861
methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1899
public RuntimeMethodHandle ResolveMethodHandle(int methodToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1903
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext?.Clone();
1904
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext?.Clone();
1906
ReadOnlySpan<IntPtr> typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1907
ReadOnlySpan<IntPtr> methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1950
public RuntimeFieldHandle ResolveFieldHandle(int fieldToken,
RuntimeTypeHandle
[]? typeInstantiationContext,
RuntimeTypeHandle
[]? methodInstantiationContext)
1961
typeInstantiationContext = (
RuntimeTypeHandle
[]?)typeInstantiationContext.Clone();
1962
typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]);
1966
methodInstantiationContext = (
RuntimeTypeHandle
[]?)methodInstantiationContext.Clone();
1967
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 (44)
312
!
RuntimeTypeHandle
.CompareCanonicalHandles(approxDeclaringType, ReflectedType) :
588
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
637
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
640
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
651
int vtableSlots =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
653
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
764
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
820
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
842
interfaces =
RuntimeTypeHandle
.GetInterfaces(ReflectedType);
860
while (!
RuntimeTypeHandle
.GetFields(declaringType, result, out count))
878
bool needsStaticFieldForGeneric = declaringType.IsGenericType && !
RuntimeTypeHandle
.ContainsGenericVariables(declaringType);
930
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
999
if (filter.Match(
RuntimeTypeHandle
.GetUtf8Name(iList)))
1008
if (iFace.IsGenericType && filter.Match(
RuntimeTypeHandle
.GetUtf8Name(iFace)))
1025
if (!
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1027
Type[] ifaces =
RuntimeTypeHandle
.GetInterfaces(declaringType);
1034
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(interfaceType)))
1079
if (!filter.RequiresStringComparison() || filter.Match(
RuntimeTypeHandle
.GetUtf8Name(rt)))
1097
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1102
int tkEnclosingType =
RuntimeTypeHandle
.GetToken(declaringType);
1110
ModuleHandle moduleHandle = new ModuleHandle(
RuntimeTypeHandle
.GetModule(declaringType));
1132
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(nestedType)))
1155
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1178
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1253
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1261
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
1290
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1301
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
1480
m_isGlobal =
RuntimeTypeHandle
.GetModule(runtimeType).RuntimeType == runtimeType;
1530
return new(
RuntimeTypeHandle
.GetArgumentTypesFromFunctionPointer(type));
1592
RuntimeType? enclosingType =
RuntimeTypeHandle
.GetDeclaringType(GetRuntimeType());
1654
RuntimeTypeHandle
.GetGenericTypeDefinition(new QCallTypeHandle(ref type), ObjectHandleOnStack.Create(ref genericDefinition));
1793
RuntimeType result =
RuntimeTypeHandle
.GetRuntimeType(pParentMT);
1987
!
RuntimeTypeHandle
.CompareCanonicalHandles(declaredType, reflectedType))
2044
if (!
RuntimeTypeHandle
.SatisfiesConstraints(genericParameter.TypeHandle.GetRuntimeTypeChecked(),
2480
RuntimeTypeHandle
th = new RuntimeTypeHandle(this);
2747
RuntimeTypeHandle
ifaceRtTypeHandle = ifaceRtType.TypeHandle;
2758
int ifaceVirtualMethodCount =
RuntimeTypeHandle
.GetNumVirtualsAndStaticVirtuals(ifaceRtType);
2769
RuntimeMethodHandleInternal ifaceRtMethodHandle =
RuntimeTypeHandle
.GetMethodAt(ifaceRtType, i);
3300
IRuntimeMethodInfo? declaringMethod =
RuntimeTypeHandle
.GetDeclaringMethodForGenericParameter(this);
3585
public sealed override bool IsSZArray =>
RuntimeTypeHandle
.IsSZArray(this);
3609
RuntimeType result =
RuntimeTypeHandle
.GetRuntimeTypeFromHandle((IntPtr)pMT->InstantiationArg0());
3845
public override bool IsFunctionPointer =>
RuntimeTypeHandle
.IsFunctionPointer(this);
3846
public override bool IsUnmanagedFunctionPointer =>
RuntimeTypeHandle
.IsUnmanagedFunctionPointer(this);
src\System\StubHelpers.cs (2)
844
RuntimeType marshalerType =
RuntimeTypeHandle
.GetRuntimeType((MethodTable*)pMT);
1476
RuntimeTypeHandle
th = typeof(T).TypeHandle;
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)
343
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)
388
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)
748
[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);