CSharp examples for Language Basics:Data Type
From Type | To Type(s) |
---|---|
sbyte | byte, ushort, uint, ulong, or char |
byte | sbyte or char |
short | sbyte, byte, ushort, uint, ulong, or char |
ushort | sbyte, byte, short, or char |
int | sbyte, byte, short, ushort, uint, ulong, or char |
uint | sbyte, byte, short, ushort, int, or char |
long | sbyte, byte, short, ushort, int, uint, ulong, or char |
ulong | sbyte, byte, short, ushort, int, uint, long, or char |
char | sbyte, byte, or short |
float | sbyte, byte, short, ushort, int, uint, long, ulong, char, or decimal |
double | sbyte, byte, short, ushort, int, uint, long, ulong, char, float, or decimal |
decimal | sbyte, byte, short, ushort, int, uint, long, ulong, char, float, or double |