42 references to IsMethodTable
Microsoft.Diagnostics.DataContractReader.Contracts (42)
Contracts\RuntimeTypeSystem_1.cs (42)
504
if (typeHandle.
IsMethodTable
())
529
public TargetPointer GetCanonicalMethodTable(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? TargetPointer.Null : GetClassData(typeHandle).MethodTable;
530
public TargetPointer GetParentMethodTable(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? TargetPointer.Null : _methodTables[typeHandle.Address].ParentMethodTable;
532
public uint GetBaseSize(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize;
534
public uint GetComponentSize(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? (uint)0 : _methodTables[typeHandle.Address].Flags.ComponentSize;
563
public bool IsString(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? false : _methodTables[typeHandle.Address].Flags.IsString;
570
public bool ContainsGCPointers(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? false : _methodTables[typeHandle.Address].Flags.ContainsGCPointers;
571
public bool RequiresAlign8(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? false : _methodTables[typeHandle.Address].Flags.RequiresAlign8;
572
public bool IsContinuation(TypeHandle typeHandle) => typeHandle.
IsMethodTable
()
578
if (!typeHandle.
IsMethodTable
())
650
public bool IsDynamicStatics(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? false : _methodTables[typeHandle.Address].Flags.IsDynamicStatics;
651
public ushort GetNumInterfaces(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? (ushort)0 : _methodTables[typeHandle.Address].NumInterfaces;
655
if (!typeHandle.
IsMethodTable
())
662
if (!typeHandle.
IsMethodTable
())
668
public ushort GetNumMethods(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? (ushort)0 : GetClassData(typeHandle).NumMethods;
669
public uint GetTypeDefTypeAttributes(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? (uint)0 : GetClassData(typeHandle).CorTypeAttr;
670
public ushort GetNumInstanceFields(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? (ushort)0 : GetClassData(typeHandle).NumInstanceFields;
671
public ushort GetNumStaticFields(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? (ushort)0 : GetClassData(typeHandle).NumStaticFields;
672
public ushort GetNumThreadStaticFields(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? (ushort)0 : GetClassData(typeHandle).NumThreadStaticFields;
673
public TargetPointer GetFieldDescList(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? TargetPointer.Null : GetClassData(typeHandle).FieldDescList;
674
public bool IsTrackedReferenceWithFinalizer(TypeHandle typeHandle) => typeHandle.
IsMethodTable
() && _methodTables[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
677
if (!typeHandle.
IsMethodTable
())
699
if (!typeHandle.
IsMethodTable
())
708
if (!typeHandle.
IsMethodTable
())
735
if (!typeHandle.
IsMethodTable
())
747
if (!typeHandle.
IsMethodTable
())
756
if (!typeHandle.
IsMethodTable
())
791
public bool IsGenericTypeDefinition(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? false : _methodTables[typeHandle.Address].Flags.IsGenericTypeDefinition;
820
public bool IsCollectible(TypeHandle typeHandle) => !typeHandle.
IsMethodTable
() ? false : _methodTables[typeHandle.Address].Flags.IsCollectible;
823
if (typeHandle.
IsMethodTable
())
845
if (typeHandle.
IsMethodTable
())
877
if (sigType == CorElementType.ValueType && typeHandle.
IsMethodTable
())
889
if (typeHandle.
IsMethodTable
())
908
if (!typeHandle.
IsMethodTable
())
922
if (typeHandle.
IsMethodTable
())
947
if (typeHandle.
IsMethodTable
())
1584
if (!typeHandle.
IsMethodTable
())
1704
Debug.Assert(typeHandle.
IsMethodTable
());
1730
if (!typeHandle.
IsMethodTable
())
1744
if (!typeHandle.
IsMethodTable
())
1770
if (!typeHandle.
IsMethodTable
())
2034
if (!typeHandle.
IsMethodTable
())