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) :