38 references to IsTypeDesc
System.Private.CoreLib (38)
src\System\Array.CoreCLR.cs (7)
164
if (!srcTH.
IsTypeDesc
&& !destTH.
IsTypeDesc
)
237
Debug.Assert(!destTH.
IsTypeDesc
&& destTH.AsMethodTable()->IsValueType);
279
Debug.Assert(!srcTH.
IsTypeDesc
&& srcTH.AsMethodTable()->IsValueType);
463
if (arrayElementTypeHandle.
IsTypeDesc
)
504
if (arrayElementTypeHandle.
IsTypeDesc
)
673
if (thElem.
IsTypeDesc
)
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (8)
39
if (elementTH.
IsTypeDesc
|| !elementTH.AsMethodTable()->IsPrimitive) // Enum is included
102
Debug.Assert(!th.
IsTypeDesc
); // TypeDesc can't be used as generic parameter
1084
/// <remarks>This is only safe to call if <see cref="
IsTypeDesc
"/> returned <see langword="false"/>.</remarks>
1088
Debug.Assert(!
IsTypeDesc
);
1138
if (!srcTH.
IsTypeDesc
&& destTH.
IsTypeDesc
)
1147
if (!srcTH.
IsTypeDesc
1148
&& !destTH.
IsTypeDesc
src\System\RuntimeHandles.cs (8)
281
Debug.Assert(!type.GetNativeTypeHandle().
IsTypeDesc
);
292
Debug.Assert(!type.GetNativeTypeHandle().
IsTypeDesc
);
445
if (typeHandle.
IsTypeDesc
)
525
if (typeHandle.
IsTypeDesc
)
546
if (typeHandle.
IsTypeDesc
)
649
if (th.
IsTypeDesc
|| th.AsMethodTable()->IsArray)
680
if (typeHandle.
IsTypeDesc
)
1634
Debug.Assert(!th.
IsTypeDesc
);
src\System\RuntimeType.BoxCache.cs (1)
42
if (handle.
IsTypeDesc
)
src\System\RuntimeType.CoreCLR.cs (13)
1774
if (typeHandle.
IsTypeDesc
)
3380
if (th.
IsTypeDesc
|| th.AsMethodTable()->IsArray)
3423
if (th.
IsTypeDesc
)
3438
bool isValueType = !th.
IsTypeDesc
&& th.AsMethodTable()->IsValueType;
3451
if (th.
IsTypeDesc
)
3468
bool isEnum = !th.
IsTypeDesc
&& th.AsMethodTable()->ParentMethodTable == Runtime.CompilerServices.TypeHandle.TypeHandleOf<Enum>().AsMethodTable();
3480
bool isInterface = !th.
IsTypeDesc
&& th.AsMethodTable()->IsInterface;
3492
bool isByRefLike = !th.
IsTypeDesc
&& th.AsMethodTable()->IsByRefLike;
3502
bool isDelegate = !th.
IsTypeDesc
&& th.AsMethodTable()->ParentMethodTable == Runtime.CompilerServices.TypeHandle.TypeHandleOf<MulticastDelegate>().AsMethodTable();
3513
bool isConstructedGenericType = !th.
IsTypeDesc
&& th.AsMethodTable()->IsConstructedGenericType;
3525
bool isGenericType = !th.
IsTypeDesc
&& th.AsMethodTable()->HasInstantiation;
3537
bool isGenericTypeDefinition = !th.
IsTypeDesc
&& th.AsMethodTable()->IsGenericTypeDefinition;
3690
bool isNullable = !th.
IsTypeDesc
&& th.AsMethodTable()->IsNullable;
src\System\TypedReference.CoreCLR.cs (1)
55
MethodTable* pMethodTable = typeHandle.
IsTypeDesc