src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (62)
1240Primitives widerCodes = PrimitiveConversions[(int)(Type.GetTypeCode(source))];
1241Primitives targetCode = (Primitives)(1 << (int)(Type.GetTypeCode(target)));
1246private static ReadOnlySpan<Primitives> PrimitiveConversions =>
1251/* Boolean */ Primitives.Boolean,
1252/* Char */ Primitives.Char | Primitives.UInt16 | Primitives.UInt32 | Primitives.Int32 | Primitives.UInt64 | Primitives.Int64 | Primitives.Single | Primitives.Double,
1253/* SByte */ Primitives.SByte | Primitives.Int16 | Primitives.Int32 | Primitives.Int64 | Primitives.Single | Primitives.Double,
1254/* Byte */ Primitives.Byte | Primitives.Char | Primitives.UInt16 | Primitives.Int16 | Primitives.UInt32 | Primitives.Int32 | Primitives.UInt64 | Primitives.Int64 | Primitives.Single | Primitives.Double,
1255/* Int16 */ Primitives.Int16 | Primitives.Int32 | Primitives.Int64 | Primitives.Single | Primitives.Double,
1256/* UInt16 */ Primitives.UInt16 | Primitives.UInt32 | Primitives.Int32 | Primitives.UInt64 | Primitives.Int64 | Primitives.Single | Primitives.Double,
1257/* Int32 */ Primitives.Int32 | Primitives.Int64 | Primitives.Single | Primitives.Double,
1258/* UInt32 */ Primitives.UInt32 | Primitives.UInt64 | Primitives.Int64 | Primitives.Single | Primitives.Double,
1259/* Int64 */ Primitives.Int64 | Primitives.Single | Primitives.Double,
1260/* UInt64 */ Primitives.UInt64 | Primitives.Single | Primitives.Double,
1261/* Single */ Primitives.Single | Primitives.Double,
1262/* Double */ Primitives.Double,
1263/* Decimal */ Primitives.Decimal,
1264/* DateTime */ Primitives.DateTime,
1266/* String */ Primitives.String,