4 references to IsDefinedPrimitive
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (4)
477
if (underlyingType == typeof(sbyte) || underlyingType == typeof(byte)) return
IsDefinedPrimitive
(rt, *(byte*)&value);
478
if (underlyingType == typeof(short) || underlyingType == typeof(ushort)) return
IsDefinedPrimitive
(rt, *(ushort*)&value);
479
if (underlyingType == typeof(int) || underlyingType == typeof(uint)) return
IsDefinedPrimitive
(rt, *(uint*)&value);
480
if (underlyingType == typeof(long) || underlyingType == typeof(ulong)) return
IsDefinedPrimitive
(rt, *(ulong*)&value);