src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (13)
252TypeCode.SByte => Enum.IsDefinedPrimitive(this, (byte)(sbyte)value),
253TypeCode.Byte => Enum.IsDefinedPrimitive(this, (byte)value),
254TypeCode.Int16 => Enum.IsDefinedPrimitive(this, (ushort)(short)value),
255TypeCode.UInt16 => Enum.IsDefinedPrimitive(this, (ushort)value),
256TypeCode.Int32 => Enum.IsDefinedPrimitive(this, (uint)(int)value),
257TypeCode.UInt32 => Enum.IsDefinedPrimitive(this, (uint)value),
258TypeCode.Int64 => Enum.IsDefinedPrimitive(this, (ulong)(long)value),
259TypeCode.UInt64 => Enum.IsDefinedPrimitive(this, (ulong)value),
260TypeCode.Single => Enum.IsDefinedPrimitive(this, (float)value),
261TypeCode.Double => Enum.IsDefinedPrimitive(this, (double)value),
262TypeCode.Char => Enum.IsDefinedPrimitive(this, (char)value),
264underlyingType == typeof(nint) ? Enum.IsDefinedPrimitive(this, (nuint)(nint)value) :
265underlyingType == typeof(nuint) ? Enum.IsDefinedPrimitive(this, (nuint)value) :