Given a conversion C1 that converts from a type S to a type T1, and a conversion C2 that converts from a type S to a type T2, C1 is a better conversion than C2 if at least one of the following holds:
Given two different types T1 and T2, T1 is a better conversion target than T2 if at least one of the following holds:
T1 is sbyte and T2 is byte, ushort, uint, or ulong
T1 is short and T2 is ushort, uint, or ulong
T1 is int and T2 is uint, or ulong
T1 is long and T2 is ulong
Do'stlaringiz bilan baham: |