22 instantiations of RuntimeTypeHandle
mscorlib (22)
system\argiterator.cs (1)
129
return new
RuntimeTypeHandle
(Type.GetTypeFromHandleUnsafe((IntPtr)_GetNextArgType()));
system\reflection\customattribute.cs (1)
1971
new
RuntimeTypeHandle
();
system\rttype.cs (14)
1609
name = new
RuntimeTypeHandle
(m_runtimeType).ConstructName(formatFlags);
2747
IntPtr newgcHandle = new
RuntimeTypeHandle
(this).GetGCHandle(GCHandleType.WeakTrackResurrection);
3572
return new
RuntimeTypeHandle
(this);
3579
return new
RuntimeTypeHandle
(this);
4017
get { return new
RuntimeTypeHandle
(this).IsSecurityCritical(); }
4021
get { return new
RuntimeTypeHandle
(this).IsSecuritySafeCritical(); }
4025
get { return new
RuntimeTypeHandle
(this).IsSecurityTransparent(); }
4243
ret = new
RuntimeTypeHandle
(this).Instantiate(instantiationRuntimeType);
4272
return new
RuntimeTypeHandle
(this).GetGenericVariableIndex();
4306
Type[] constraints = new
RuntimeTypeHandle
(this).GetConstraints();
4317
public override Type MakePointerType() { return new
RuntimeTypeHandle
(this).MakePointer(); }
4318
public override Type MakeByRefType() { return new
RuntimeTypeHandle
(this).MakeByRef(); }
4319
public override Type MakeArrayType() { return new
RuntimeTypeHandle
(this).MakeSZArray(); }
4326
return new
RuntimeTypeHandle
(this).MakeArray(rank);
system\runtimehandles.cs (5)
39
return new
RuntimeTypeHandle
(type);
101
return new
RuntimeTypeHandle
(null);
481
return _IsVisible(new
RuntimeTypeHandle
(type));
1915
return new
RuntimeTypeHandle
(ResolveTypeHandleInternal(GetRuntimeModule(), typeToken, null, null));
1919
return new
RuntimeTypeHandle
(ModuleHandle.ResolveTypeHandleInternal(GetRuntimeModule(), typeToken, typeInstantiationContext, methodInstantiationContext));
system\type.cs (1)
350
return new
RuntimeTypeHandle
((RuntimeType)o.GetType());
332 references to RuntimeTypeHandle
mscorlib (244)
system\argiterator.cs (2)
74
public TypedReference GetNextArg(
RuntimeTypeHandle
rth)
127
public unsafe
RuntimeTypeHandle
GetNextArgType()
system\collections\generic\arraysorthelper.cs (2)
117
defaultArraySortHelper = (IArraySortHelper<T>)
RuntimeTypeHandle
.Allocate(typeof(GenericArraySortHelper<string>).TypeHandle.Instantiate(new Type[] { typeof(T) }));
895
defaultArraySortHelper = (IArraySortHelper<TKey, TValue>)
RuntimeTypeHandle
.Allocate(typeof(GenericArraySortHelper<string, string>).TypeHandle.Instantiate(new Type[] { typeof(TKey), typeof(TValue) }));
system\collections\generic\comparer.cs (2)
60
return (Comparer<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(GenericComparer<int>), t);
67
return (Comparer<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(NullableComparer<int>), u);
system\collections\generic\equalitycomparer.cs (6)
50
return (EqualityComparer<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(GenericEqualityComparer<int>), t);
56
return (EqualityComparer<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(NullableEqualityComparer<int>), u);
69
return (EqualityComparer<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(ShortEnumEqualityComparer<short>), t);
71
return (EqualityComparer<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(SByteEnumEqualityComparer<sbyte>), t);
76
return (EqualityComparer<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(EnumEqualityComparer<int>), t);
79
return (EqualityComparer<T>)
RuntimeTypeHandle
.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(LongEnumEqualityComparer<long>), t);
system\delegate.cs (2)
239
if (
RuntimeTypeHandle
.IsGenericTypeDefinition(declaringType) ||
RuntimeTypeHandle
.HasInstantiation(declaringType))
system\enum.cs (1)
256
private static extern void GetEnumValuesAndNames(
RuntimeTypeHandle
enumType, ObjectHandleOnStack values, ObjectHandleOnStack names, bool getNames);
system\multicastdelegate.cs (2)
589
if (
RuntimeTypeHandle
.IsGenericTypeDefinition(declaringType) ||
RuntimeTypeHandle
.HasInstantiation(declaringType))
system\reflection\Associates.cs (4)
67
RuntimeMethodHandleInternal associateMethodHandle = ModuleHandle.ResolveMethodHandleInternalCore(
RuntimeTypeHandle
.GetModule(declaredType), tkMethod, genericArgumentHandles, genericArgumentCount, null, 0);
96
(
RuntimeTypeHandle
.GetAttributes(declaredType) & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Class;
104
associateMethodHandle =
RuntimeTypeHandle
.GetMethodAt(reflectedType, slot);
142
while(
RuntimeTypeHandle
.IsGenericVariable(reflectedType))
system\reflection\cominterfaces.cs (1)
54
RuntimeTypeHandle
TypeHandle { get; }
system\reflection\ConstructorInfo.cs (2)
473
internal RuntimeModule GetRuntimeModule() { return
RuntimeTypeHandle
.GetModule(m_declaringType); }
709
RuntimeTypeHandle
declaringTypeHandle = m_declaringType.TypeHandle;
system\reflection\customattribute.cs (4)
800
RuntimeType type =
RuntimeTypeHandle
.GetTypeByNameUsingCARules(typeName, scope);
1408
return type != null && type.Assembly.IsFullyTrusted &&
RuntimeTypeHandle
.IsEquivalentType(type);
1730
attribute =
RuntimeTypeHandle
.CreateCaInstance(attributeType, ctor);
1969
RuntimeTypeHandle
parentTypeHandle = tkParent.IsTypeDef ?
system\reflection\emit\dynamicilgenerator.cs (13)
939
if (handle is
RuntimeTypeHandle
)
941
typeHandle = ((
RuntimeTypeHandle
)handle).Value;
1150
public int GetTokenFor(RuntimeMethodHandle method,
RuntimeTypeHandle
contextType)
1158
public int GetTokenFor(RuntimeFieldHandle field,
RuntimeTypeHandle
contextType)
1162
public int GetTokenFor(
RuntimeTypeHandle
type)
1236
if ((type != null) &&
RuntimeTypeHandle
.HasInstantiation(type))
1250
public int GetTokenFor(RuntimeMethodHandle method,
RuntimeTypeHandle
typeContext)
1265
public int GetTokenFor(RuntimeFieldHandle field,
RuntimeTypeHandle
typeContext)
1270
public int GetTokenFor(
RuntimeTypeHandle
type)
1291
internal
RuntimeTypeHandle
m_context;
1293
internal GenericMethodInfo(RuntimeMethodHandle methodHandle,
RuntimeTypeHandle
context)
1303
internal
RuntimeTypeHandle
m_context;
1305
internal GenericFieldInfo(RuntimeFieldHandle fieldHandle,
RuntimeTypeHandle
context)
system\reflection\emit\enumbuilder.cs (1)
114
public override
RuntimeTypeHandle
TypeHandle {
system\reflection\emit\generictypeparameterbuilder.cs (1)
111
public override
RuntimeTypeHandle
TypeHandle { get { throw new NotSupportedException(); } }
system\reflection\emit\methodrental.cs (1)
110
RuntimeTypeHandle
cls, // [in] class containing the method
system\reflection\emit\modulebuilder.cs (2)
236
private extern static int GetMemberRefOfFieldInfo(RuntimeModule module, int tkType,
RuntimeTypeHandle
declaringType, int tkField);
239
private int GetMemberRefOfFieldInfo(int tkType,
RuntimeTypeHandle
declaringType, RuntimeFieldInfo runtimeField)
system\reflection\emit\signaturehelper.cs (1)
475
type =
RuntimeTypeHandle
.GetCorElementType((RuntimeType)clsArgument);
system\reflection\emit\symboltype.cs (1)
369
public override
RuntimeTypeHandle
TypeHandle
system\reflection\emit\typebuilder.cs (2)
476
CorElementType corType =
RuntimeTypeHandle
.GetCorElementType((RuntimeType)type);
1090
public override
RuntimeTypeHandle
TypeHandle
system\reflection\emit\typebuilderinstantiation.cs (1)
110
public override
RuntimeTypeHandle
TypeHandle { get { throw new NotSupportedException(); } }
system\reflection\eventinfo.cs (2)
286
RuntimeTypeHandle
.GetModule(m_declaringType).Equals(
287
RuntimeTypeHandle
.GetModule(m.m_declaringType));
system\reflection\fieldinfo.cs (3)
55
public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle,
RuntimeTypeHandle
declaringType)
728
return
RuntimeTypeHandle
.GetModule(RuntimeFieldHandle.GetApproxDeclaringType(this));
846
int tkField, FieldAttributes fieldAttributes,
RuntimeTypeHandle
declaringTypeHandle, RuntimeTypeCache reflectedTypeCache, BindingFlags bindingFlags)
system\reflection\mdconstant.cs (1)
16
public static unsafe Object GetValue(MetadataImport scope, int token,
RuntimeTypeHandle
fieldTypeHandle, bool raw)
system\reflection\methodbase.cs (1)
79
public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle,
RuntimeTypeHandle
declaringType)
system\reflection\methodinfo.cs (4)
399
if (
RuntimeTypeHandle
.GetNumVirtuals(parent) <= slot)
402
return (RuntimeMethodInfo)RuntimeType.GetMethodBase(parent,
RuntimeTypeHandle
.GetMethodAt(parent, slot));
838
int cVtblSlots =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
843
baseMethodHandle =
RuntimeTypeHandle
.GetMethodAt(declaringType, slot);
system\reflection\module.cs (9)
643
private static
RuntimeTypeHandle
[] ConvertToTypeHandleArray(Type[] genericArguments)
649
RuntimeTypeHandle
[] typeHandleArgs = new
RuntimeTypeHandle
[size];
701
RuntimeTypeHandle
[] typeArgs = ConvertToTypeHandleArray(genericTypeArguments);
702
RuntimeTypeHandle
[] methodArgs = ConvertToTypeHandleArray(genericMethodArguments);
784
RuntimeTypeHandle
[] typeArgs = ConvertToTypeHandleArray(genericTypeArguments);
785
RuntimeTypeHandle
[] methodArgs = ConvertToTypeHandleArray(genericMethodArguments);
845
RuntimeTypeHandle
[] typeArgs = ConvertToTypeHandleArray(genericTypeArguments);
846
RuntimeTypeHandle
[] methodArgs = ConvertToTypeHandleArray(genericMethodArguments);
system\reflection\parameterinfo.cs (1)
302
MetadataImport scope =
RuntimeTypeHandle
.GetMetadataImport(RuntimeMethodHandle.GetDeclaringType(methodHandle));
system\reflection\propertyinfo.cs (2)
246
RuntimeTypeHandle
.GetModule(m_declaringType).Equals(
247
RuntimeTypeHandle
.GetModule(m.m_declaringType));
system\reflection\typedelegator.cs (1)
62
public override
RuntimeTypeHandle
TypeHandle {
system\rttype.cs (90)
363
!
RuntimeTypeHandle
.CompareCanonicalHandles(approxDeclaringType, ReflectedType) :
630
if (
RuntimeTypeHandle
.IsInterface(declaringType))
634
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
684
while(
RuntimeTypeHandle
.IsGenericVariable(declaringType))
687
bool* overrides = stackalloc bool[
RuntimeTypeHandle
.GetNumVirtuals(declaringType)];
692
int vtableSlots =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
694
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
788
declaringType =
RuntimeTypeHandle
.GetBaseType(declaringType);
808
foreach (RuntimeMethodHandleInternal methodHandle in
RuntimeTypeHandle
.GetIntroducedMethods(declaringType))
861
while(
RuntimeTypeHandle
.IsGenericVariable(declaringType))
870
declaringType =
RuntimeTypeHandle
.GetBaseType(declaringType);
888
Type[] interfaces =
RuntimeTypeHandle
.GetInterfaces(ReflectedType);
911
if (!
RuntimeTypeHandle
.GetFields(declaringType, pResult, &count))
915
RuntimeTypeHandle
.GetFields(declaringType, pBigResult, &count);
932
bool needsStaticFieldForGeneric =
RuntimeTypeHandle
.HasInstantiation(declaringType) && !
RuntimeTypeHandle
.ContainsGenericVariables(declaringType);
985
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
991
MetadataImport scope =
RuntimeTypeHandle
.GetMetadataImport(declaringType);
1067
if (filter.Match(
RuntimeTypeHandle
.GetUtf8Name(iList)))
1076
if (iFace.IsGenericType && filter.Match(
RuntimeTypeHandle
.GetUtf8Name(iFace)))
1091
if (!
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1093
Type[] ifaces =
RuntimeTypeHandle
.GetInterfaces(declaringType);
1103
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(interfaceType)))
1163
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(interfaces[i])))
1179
while (
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1184
int tkEnclosingType =
RuntimeTypeHandle
.GetToken(declaringType);
1192
RuntimeModule moduleHandle =
RuntimeTypeHandle
.GetModule(declaringType);
1215
if (!filter.Match(
RuntimeTypeHandle
.GetUtf8Name(nestedType)))
1237
if (!
RuntimeTypeHandle
.IsInterface(declaringType))
1239
while(
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1246
declaringType =
RuntimeTypeHandle
.GetBaseType(declaringType);
1262
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1268
MetadataImport scope =
RuntimeTypeHandle
.GetMetadataImport(declaringType);
1332
if (!
RuntimeTypeHandle
.IsInterface(declaringType))
1334
while(
RuntimeTypeHandle
.IsGenericVariable(declaringType))
1342
bool[] usedSlots = new bool[
RuntimeTypeHandle
.GetNumVirtuals(declaringType)];
1348
declaringType =
RuntimeTypeHandle
.GetBaseType(declaringType);
1368
int tkDeclaringType =
RuntimeTypeHandle
.GetToken(declaringType);
1374
MetadataImport scope =
RuntimeTypeHandle
.GetMetadataImport(declaringType);
1379
RuntimeModule declaringModuleHandle =
RuntimeTypeHandle
.GetModule(declaringType);
1381
int numVirtuals =
RuntimeTypeHandle
.GetNumVirtuals(declaringType);
1600
m_isGlobal =
RuntimeTypeHandle
.GetModule(runtimeType).RuntimeType == runtimeType;
1719
m_namespace =
RuntimeTypeHandle
.GetMetadataImport((RuntimeType)type).GetNamespace(type.MetadataToken).ToString();
1737
RuntimeType enclosingType =
RuntimeTypeHandle
.GetDeclaringType(GetRuntimeType());
1978
return
RuntimeTypeHandle
.GetTypeByName(
2167
!
RuntimeTypeHandle
.CompareCanonicalHandles(declaredType, reflectedType))
2258
if (!
RuntimeTypeHandle
.SatisfiesConstraints(genericParameter.GetTypeHandleInternal().GetTypeChecked(),
3163
RuntimeTypeHandle
ifaceRtTypeHandle = ifaceRtType.GetTypeHandleInternal();
3174
int ifaceInstanceMethodCount =
RuntimeTypeHandle
.GetNumVirtuals(ifaceRtType);
3184
RuntimeMethodHandleInternal ifaceRtMethodHandle =
RuntimeTypeHandle
.GetMethodAt(ifaceRtType, i);
3196
RuntimeMethodHandleInternal classRtMethodHandle =
RuntimeTypeHandle
.GetMethodAt(this, slot);
3552
return
RuntimeTypeHandle
.GetModule(this);
3565
return
RuntimeTypeHandle
.GetAssembly(this);
3568
public override
RuntimeTypeHandle
TypeHandle
3577
internal sealed override
RuntimeTypeHandle
GetTypeHandleInternal()
3585
return
RuntimeTypeHandle
.IsCollectible(GetTypeHandleInternal());
3596
CorElementType corElementType =
RuntimeTypeHandle
.GetCorElementType(this);
3658
IRuntimeMethodInfo declaringMethod =
RuntimeTypeHandle
.GetDeclaringMethod(this);
3672
return
RuntimeTypeHandle
.IsInstanceOfType(this, o);
3724
return
RuntimeTypeHandle
.CanCastTo(fromType, this);
3766
return
RuntimeTypeHandle
.IsEquivalentTo(this, otherRtType);
3783
if (
RuntimeTypeHandle
.IsGenericVariable(this))
3820
return
RuntimeTypeHandle
.GetBaseType(this);
3873
return
RuntimeTypeHandle
.GetAttributes(this);
3895
return
RuntimeTypeHandle
.IsContextful(this);
3907
return
RuntimeTypeHandle
.IsByRef(this);
3912
return
RuntimeTypeHandle
.IsPrimitive(this);
3917
return
RuntimeTypeHandle
.IsPointer(this);
3923
return
RuntimeTypeHandle
.IsComObject(this, false);
3929
return
RuntimeTypeHandle
.IsZapped(this);
3935
return
RuntimeTypeHandle
.IsDoNotForceOrderOfConstructorsSet();
3964
return
RuntimeTypeHandle
.HasProxyAttribute(this);
3995
return
RuntimeTypeHandle
.HasElementType(this);
4009
RuntimeTypeHandle
.GetMetadataImport(this).GetGenericParamProps(MetadataToken, out attributes);
4034
return
RuntimeTypeHandle
.IsSzArray(this);
4040
return
RuntimeTypeHandle
.IsArray(this);
4049
return
RuntimeTypeHandle
.GetArrayRank(this);
4054
return
RuntimeTypeHandle
.GetElementType(this);
4256
get { return
RuntimeTypeHandle
.IsGenericTypeDefinition(this); }
4261
get { return
RuntimeTypeHandle
.IsGenericVariable(this); }
4282
return
RuntimeTypeHandle
.GetGenericTypeDefinition(this);
4287
get { return
RuntimeTypeHandle
.HasInstantiation(this); }
4391
if (!Object.ReferenceEquals(type, this) &&
RuntimeTypeHandle
.IsValueType(this))
4406
RuntimeType elementType =
RuntimeTypeHandle
.GetElementType(this);
4460
RuntimeType elementType =
RuntimeTypeHandle
.GetElementType(this);
5153
return
RuntimeTypeHandle
.GetToken(this);
5476
Object instance =
RuntimeTypeHandle
.CreateInstance(this, publicOnly, bSecurityCheckOff, ref bCanBeCached, ref runtime_ctor, ref bNeedSecurityCheck);
5522
Object instance =
RuntimeTypeHandle
.Allocate(this);
5557
return
RuntimeTypeHandle
.IsComObject(this, true);
5831
public override
RuntimeTypeHandle
TypeHandle
system\runtime\compilerservices\runtimehelpers.cs (3)
65
public static void RunClassConstructor(
RuntimeTypeHandle
type)
109
public static void PrepareMethod(RuntimeMethodHandle method,
RuntimeTypeHandle
[] instantiation)
114
IntPtr[] instantiationHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(instantiation, out length);
system\runtime\designerservices\windowsruntimedesignercontext.cs (1)
162
return
RuntimeTypeHandle
.GetTypeByName(
system\runtime\interopservices\attributes.cs (2)
571
RuntimeTypeHandle
.GetTypeByNameUsingCARules(safeArrayUserDefinedTypeName, scope);
576
marshalTypeRef = marshalTypeName == null ? null :
RuntimeTypeHandle
.GetTypeByNameUsingCARules(marshalTypeName, scope);
system\runtime\remoting\remotingconfiguration.cs (4)
386
return
RuntimeTypeHandle
.GetTypeByName(TypeName + ", " + AssemblyName, ref stackMark);
442
return
RuntimeTypeHandle
.GetTypeByName(TypeName + ", " + AssemblyName, ref stackMark);
509
return
RuntimeTypeHandle
.GetTypeByName(TypeName + ", " + AssemblyName, ref stackMark);
582
return
RuntimeTypeHandle
.GetTypeByName(TypeName + ", " + AssemblyName, ref stackMark);
system\runtime\remoting\remotingservices.cs (1)
2695
return
RuntimeTypeHandle
.GetTypeByName(typeName, false, false, false, ref stackMark, true /* hack */);
system\runtimehandles.cs (60)
33
internal
RuntimeTypeHandle
GetNativeHandle()
89
public static bool operator ==(
RuntimeTypeHandle
left, object right) { return left.Equals(right); }
91
public static bool operator ==(object left,
RuntimeTypeHandle
right) { return right.Equals(left); }
93
public static bool operator !=(
RuntimeTypeHandle
left, object right) { return !left.Equals(right); }
95
public static bool operator !=(object left,
RuntimeTypeHandle
right) { return !right.Equals(left); }
97
internal static
RuntimeTypeHandle
EmptyHandle
117
if(!(obj is
RuntimeTypeHandle
))
120
RuntimeTypeHandle
handle =(
RuntimeTypeHandle
)obj;
125
public bool Equals(
RuntimeTypeHandle
handle)
144
internal static extern IntPtr GetValueInternal(
RuntimeTypeHandle
handle);
204
internal static IntPtr[] CopyRuntimeTypeHandles(
RuntimeTypeHandle
[] inHandles, out int length)
284
return new ModuleHandle(
RuntimeTypeHandle
.GetModule(m_type));
331
_handle =
RuntimeTypeHandle
.GetFirstIntroducedMethod(type);
344
RuntimeTypeHandle
.GetNextIntroducedMethod(ref _handle);
392
private extern static void GetConstraints(
RuntimeTypeHandle
handle, ObjectHandleOnStack types);
407
private extern static IntPtr GetGCHandle(
RuntimeTypeHandle
handle, GCHandleType type);
424
private extern static void VerifyInterfaceIsImplemented(
RuntimeTypeHandle
handle,
RuntimeTypeHandle
interfaceHandle);
427
internal void VerifyInterfaceIsImplemented(
RuntimeTypeHandle
interfaceHandle)
436
private extern static int GetInterfaceMethodImplementationSlot(
RuntimeTypeHandle
handle,
RuntimeTypeHandle
interfaceHandle, RuntimeMethodHandleInternal interfaceMethodHandle);
441
internal int GetInterfaceMethodImplementationSlot(
RuntimeTypeHandle
interfaceHandle, RuntimeMethodHandleInternal interfaceMethodHandle)
476
private extern static bool _IsVisible(
RuntimeTypeHandle
typeHandle);
489
private static extern bool IsSecurityCritical(
RuntimeTypeHandle
typeHandle);
503
private static extern bool IsSecuritySafeCritical(
RuntimeTypeHandle
typeHandle);
516
private static extern bool IsSecurityTransparent(
RuntimeTypeHandle
typeHandle);
538
private extern static void ConstructName(
RuntimeTypeHandle
handle, TypeNameFormatFlags formatFlags, StringHandleOnStack retString);
578
private extern static void GetDefaultConstructor(
RuntimeTypeHandle
handle, ObjectHandleOnStack method);
661
internal extern static void GetInstantiation(
RuntimeTypeHandle
type, ObjectHandleOnStack types, bool fAsRuntimeTypeArray);
683
private extern static void Instantiate(
RuntimeTypeHandle
handle, IntPtr* pInst, int numGenericArgs, ObjectHandleOnStack type);
705
private extern static void MakeArray(
RuntimeTypeHandle
handle, int rank, ObjectHandleOnStack type);
719
private extern static void MakeSZArray(
RuntimeTypeHandle
handle, ObjectHandleOnStack type);
733
private extern static void MakeByRef(
RuntimeTypeHandle
handle, ObjectHandleOnStack type);
757
private extern static void MakePointer(
RuntimeTypeHandle
handle, ObjectHandleOnStack type);
771
internal extern static bool IsCollectible(
RuntimeTypeHandle
handle);
789
private extern static void GetGenericTypeDefinition(
RuntimeTypeHandle
type, ObjectHandleOnStack retType);
1157
RuntimeTypeHandle
attrTypeHandle,
1159
RuntimeTypeHandle
sourceTypeHandle,
1912
public
RuntimeTypeHandle
GetRuntimeTypeHandleFromMetadataToken(int typeToken) { return ResolveTypeHandle(typeToken); }
1913
public
RuntimeTypeHandle
ResolveTypeHandle(int typeToken)
1917
public
RuntimeTypeHandle
ResolveTypeHandle(int typeToken,
RuntimeTypeHandle
[] typeInstantiationContext,
RuntimeTypeHandle
[] methodInstantiationContext)
1923
internal static RuntimeType ResolveTypeHandleInternal(RuntimeModule module, int typeToken,
RuntimeTypeHandle
[] typeInstantiationContext,
RuntimeTypeHandle
[] methodInstantiationContext)
1931
IntPtr[] typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, out typeInstCount);
1932
IntPtr[] methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, out methodInstCount);
1960
public RuntimeMethodHandle ResolveMethodHandle(int methodToken,
RuntimeTypeHandle
[] typeInstantiationContext,
RuntimeTypeHandle
[] methodInstantiationContext)
1966
internal static IRuntimeMethodInfo ResolveMethodHandleInternal(RuntimeModule module, int methodToken,
RuntimeTypeHandle
[] typeInstantiationContext,
RuntimeTypeHandle
[] methodInstantiationContext)
1970
IntPtr[] typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, out typeInstCount);
1971
IntPtr[] methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, out methodInstCount);
2008
public RuntimeFieldHandle ResolveFieldHandle(int fieldToken,
RuntimeTypeHandle
[] typeInstantiationContext,
RuntimeTypeHandle
[] methodInstantiationContext)
2012
internal static IRuntimeFieldInfo ResolveFieldHandleInternal(RuntimeModule module, int fieldToken,
RuntimeTypeHandle
[] typeInstantiationContext,
RuntimeTypeHandle
[] methodInstantiationContext)
2021
IntPtr [] typeInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(typeInstantiationContext, out typeInstCount);
2022
IntPtr [] methodInstantiationContextHandles =
RuntimeTypeHandle
.CopyRuntimeTypeHandles(methodInstantiationContext, out methodInstCount);
system\type.cs (6)
330
public virtual
RuntimeTypeHandle
TypeHandle
339
internal virtual
RuntimeTypeHandle
GetTypeHandleInternal() {
343
public static
RuntimeTypeHandle
GetTypeHandle(Object o)
363
public static extern Type GetTypeFromHandle(
RuntimeTypeHandle
handle);
976
return
RuntimeTypeHandle
.IsVisible(rt);
1073
return
RuntimeTypeHandle
.IsInterface(rt);
system\typedreference.cs (1)
118
public static
RuntimeTypeHandle
TargetTypeToken (TypedReference value)
system\typenameparser.cs (1)
204
return
RuntimeTypeHandle
.GetTypeHelper(baseType, types, intPtr, modifiers == null ? 0 : modifiers.Length);
System (4)
compmod\system\componentmodel\LicenseManager.cs (4)
400
private static object AllocateAndValidateLicense(
RuntimeTypeHandle
rth, IntPtr bstrKey, int fDesignTime) {
421
private static int RequestLicKey(
RuntimeTypeHandle
rth, ref IntPtr pbstrKey) {
463
private void GetLicInfo(
RuntimeTypeHandle
rth, ref int pRuntimeKeyAvail, ref int pLicVerified) {
512
private void GetCurrentContextInfo(ref int fDesignTime, ref IntPtr bstrKey,
RuntimeTypeHandle
rth) {
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1072
public override
RuntimeTypeHandle
TypeHandle { get { return _baseReflectionType.TypeHandle; } }
System.Core (1)
Microsoft\Scripting\Compiler\ILGen.cs (1)
515
il.Emit(OpCodes.Call, typeof(MethodBase).GetMethod("GetMethodFromHandle", new Type[] { typeof(RuntimeMethodHandle), typeof(
RuntimeTypeHandle
) }));
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1072
public override
RuntimeTypeHandle
TypeHandle { get { return _baseReflectionType.TypeHandle; } }
System.Data.Entity (11)
System\Data\Metadata\Edm\ComplexType.cs (1)
98
private readonly System.
RuntimeTypeHandle
_type;
System\Data\Metadata\Edm\EdmProperty.cs (2)
45
internal readonly System.
RuntimeTypeHandle
EntityDeclaringType;
61
internal EdmProperty(string name, TypeUsage typeUsage, System.Reflection.PropertyInfo propertyInfo,
RuntimeTypeHandle
entityDeclaringType)
System\Data\Metadata\Edm\EntityType.cs (1)
230
private readonly System.
RuntimeTypeHandle
_type;
System\Data\Metadata\Edm\EnumType.cs (1)
183
private readonly System.
RuntimeTypeHandle
_type;
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (5)
186
private static Func<object, object> CreatePropertyGetter(
RuntimeTypeHandle
entityDeclaringType, RuntimeMethodHandle rmh)
193
Debug.Assert(!default(
RuntimeTypeHandle
).Equals(entityDeclaringType), "Type handle of entity should always be known.");
307
private static Action<object, object> CreatePropertySetter(
RuntimeTypeHandle
entityDeclaringType, RuntimeMethodHandle rmh, bool allowNull)
394
internal static void ValidateSetterProperty(
RuntimeTypeHandle
entityDeclaringType, RuntimeMethodHandle setterMethodHandle, out MethodInfo setterMethodInfo, out Type realType)
401
Debug.Assert(!default(
RuntimeTypeHandle
).Equals(entityDeclaringType), "Type handle of entity should always be known.");
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1617
MethodInfo getTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle", new Type[] { typeof(
RuntimeTypeHandle
) });
System.Runtime.Serialization (66)
System\Runtime\Serialization\DataContract.cs (16)
57
internal static DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type, SerializationMode mode)
63
internal static DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle, SerializationMode mode)
74
internal static DataContract GetDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type type)
79
internal static DataContract GetGetOnlyCollectionDataContract(int id,
RuntimeTypeHandle
typeHandle, Type type, SerializationMode mode)
93
internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type type)
117
internal static int GetId(
RuntimeTypeHandle
typeHandle)
440
internal static DataContract GetDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type type)
454
internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id,
RuntimeTypeHandle
typeHandle, Type type)
501
internal static int GetId(
RuntimeTypeHandle
typeHandle)
560
static DataContract CreateDataContract(int id,
RuntimeTypeHandle
typeHandle, Type type)
625
static DataContract CreateGetOnlyCollectionDataContract(int id,
RuntimeTypeHandle
typeHandle, Type type)
670
static
RuntimeTypeHandle
GetDataContractAdapterTypeHandle(
RuntimeTypeHandle
typeHandle)
2694
RuntimeTypeHandle
value;
2700
public TypeHandleRef(
RuntimeTypeHandle
value)
2705
public
RuntimeTypeHandle
Value
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
382
internal static void WriteJsonValue(JsonDataContract contract, XmlWriterDelegator writer, object graph, XmlObjectSerializerWriteContextComplexJson context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
113
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
135
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonDataContract.cs (3)
92
public void WriteJsonValue(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
RuntimeTypeHandle
declaredTypeHandle)
99
public virtual void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
RuntimeTypeHandle
declaredTypeHandle)
197
internal static int GetId(
RuntimeTypeHandle
typeHandle)
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (1)
53
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (3)
735
LocalBuilder typeHandleValue = ilg.DeclareLocal(typeof(
RuntimeTypeHandle
), "typeHandleValue");
740
ilg.Call(typeof(
RuntimeTypeHandle
).GetMethod("Equals", new Type[] { typeof(
RuntimeTypeHandle
) }));
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
59
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
44
public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson context,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
297
internal override DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type)
304
internal override DataContract GetDataContractSkipValidation(int typeId,
RuntimeTypeHandle
typeHandle, Type type)
311
internal override DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (7)
193
protected override void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
declaredTypeHandle)
256
protected override void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
objectTypeHandle, Type objectType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle, Type declaredType)
325
internal override void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
originalDeclaredTypeHandle, Type graphType)
365
internal override DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type)
372
internal override DataContract GetDataContractSkipValidation(int typeId,
RuntimeTypeHandle
typeHandle, Type type)
379
internal override DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
System\Runtime\Serialization\NetDataContractSerializer.cs (2)
449
internal DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type, ref Hashtable surrogateDataContracts)
479
internal static DataContract GetDataContractFromSurrogateSelector(ISurrogateSelector surrogateSelector, StreamingContext context,
RuntimeTypeHandle
typeHandle, Type type, ref Hashtable surrogateDataContracts)
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
396
internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.ScanAllMembers, null, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(
RuntimeTypeHandle
), typeof(string), typeof(string) }, null);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
712
LocalBuilder typeHandleValue = ilg.DeclareLocal(typeof(
RuntimeTypeHandle
), "typeHandleValue");
717
ilg.Call(typeof(
RuntimeTypeHandle
).GetMethod("Equals", new Type[] { typeof(
RuntimeTypeHandle
) }));
System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
165
internal virtual DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type)
177
internal virtual DataContract GetDataContractSkipValidation(int typeId,
RuntimeTypeHandle
typeHandle, Type type)
190
internal virtual DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
126
public virtual object InternalDeserialize(XmlReaderDelegator xmlReader, int id,
RuntimeTypeHandle
declaredTypeHandle, string name, string ns)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (3)
67
internal override DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
88
internal override DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type)
109
public override object InternalDeserialize(XmlReaderDelegator xmlReader, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle, string name, string ns)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (9)
110
public void InternalSerializeReference(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
117
public virtual void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
131
RuntimeTypeHandle
objTypeHandle = Type.GetTypeHandle(obj);
146
internal void SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
declaredTypeHandle)
162
internal virtual void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
originalDeclaredTypeHandle, Type graphType)
181
protected virtual void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
objectTypeHandle, Type objectType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle, Type declaredType)
250
protected void SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType,
RuntimeTypeHandle
declaredTypeHandle, Type declaredType)
721
protected virtual void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj,
RuntimeTypeHandle
declaredTypeHandle)
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (6)
63
internal override DataContract GetDataContract(
RuntimeTypeHandle
typeHandle, Type type)
84
internal override DataContract GetDataContract(int id,
RuntimeTypeHandle
typeHandle)
105
internal override DataContract GetDataContractSkipValidation(int typeId,
RuntimeTypeHandle
typeHandle, Type type)
237
public override void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
330
void InternalSerializeWithSurrogate(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID,
RuntimeTypeHandle
declaredTypeHandle)
332
RuntimeTypeHandle
objTypeHandle = isDeclaredType ? declaredTypeHandle : Type.GetTypeHandle(obj);
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
321
public override
RuntimeTypeHandle
TypeHandle
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
203
public override
RuntimeTypeHandle
TypeHandle
System.WorkflowServices (1)
System\Workflow\Activities\ContractType.cs (1)
155
public override
RuntimeTypeHandle
TypeHandle
System.Xml (1)
System\Xml\Serialization\CodeGenerator.cs (1)
1047
Call(typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(
RuntimeTypeHandle
) }, null));