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

 FromBase64Stringconverts a byte array to a base64 encoded string
 FromBase64CharArrayconverts a byte array to a base64 encoded character array
 ToBase64CharArray 
 ToBase64String 
boolToBoolean 
byteToByte 
 ToChar 
 ToDateTime 
 ToDecimal 
shortToInt16 
intToInt32 
longToInt64 
sbyteToSByte 
floatToSingle 
 ToString 
ushortToUInt16 
uintToUInt32 
ulongToUInt64 

VB.Net



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext