21 references to IsDefinedPrimitive
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (8)
477if (underlyingType == typeof(sbyte) || underlyingType == typeof(byte)) return IsDefinedPrimitive(rt, *(byte*)&value); 478if (underlyingType == typeof(short) || underlyingType == typeof(ushort)) return IsDefinedPrimitive(rt, *(ushort*)&value); 479if (underlyingType == typeof(int) || underlyingType == typeof(uint)) return IsDefinedPrimitive(rt, *(uint*)&value); 480if (underlyingType == typeof(long) || underlyingType == typeof(ulong)) return IsDefinedPrimitive(rt, *(ulong*)&value); 482if (underlyingType == typeof(nint) || underlyingType == typeof(nuint)) return IsDefinedPrimitive(rt, *(nuint*)&value); 483if (underlyingType == typeof(float)) return IsDefinedPrimitive(rt, *(float*)&value); 484if (underlyingType == typeof(double)) return IsDefinedPrimitive(rt, *(double*)&value); 485if (underlyingType == typeof(char)) return IsDefinedPrimitive(rt, *(char*)&value);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (13)
233TypeCode.SByte => Enum.IsDefinedPrimitive(this, (byte)(sbyte)value), 234TypeCode.Byte => Enum.IsDefinedPrimitive(this, (byte)value), 235TypeCode.Int16 => Enum.IsDefinedPrimitive(this, (ushort)(short)value), 236TypeCode.UInt16 => Enum.IsDefinedPrimitive(this, (ushort)value), 237TypeCode.Int32 => Enum.IsDefinedPrimitive(this, (uint)(int)value), 238TypeCode.UInt32 => Enum.IsDefinedPrimitive(this, (uint)value), 239TypeCode.Int64 => Enum.IsDefinedPrimitive(this, (ulong)(long)value), 240TypeCode.UInt64 => Enum.IsDefinedPrimitive(this, (ulong)value), 241TypeCode.Single => Enum.IsDefinedPrimitive(this, (float)value), 242TypeCode.Double => Enum.IsDefinedPrimitive(this, (double)value), 243TypeCode.Char => Enum.IsDefinedPrimitive(this, (char)value), 245underlyingType == typeof(nint) ? Enum.IsDefinedPrimitive(this, (nuint)(nint)value) : 246underlyingType == typeof(nuint) ? Enum.IsDefinedPrimitive(this, (nuint)value) :