System.Convert
This is a type of explicit conversion
If this conversion is not possible then an exception is thrown.
This class contains methods to convert from one base type to another.
This class provides conversion functions as static methods.
Although it is worth noting that the method names are different to the actual data type names.
int myInteger = 10;
short myShort = System.Convert.ToShort(myInteger);
string myText = "14";
int myInteger = System.Convert.ToInt32(myText);
FromBase64String | converts a byte array to a base64 encoded string | |
FromBase64CharArray | converts a byte array to a base64 encoded character array | |
ToBase64CharArray | ||
ToBase64String | ||
bool | ToBoolean | |
byte | ToByte | |
ToChar | ||
ToDateTime | ||
ToDecimal | ||
short | ToInt16 | |
int | ToInt32 | |
long | ToInt64 | |
sbyte | ToSByte | |
float | ToSingle | |
ToString | ||
ushort | ToUInt16 | |
uint | ToUInt32 | |
ulong | ToUInt64 |
VB.Net
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext