Definitive Guide to Type Conversion in C#
- convert
String
toInteger
- convert
Integer
toString
- convert
char
toString
- convert
String
tochar
- convert
String
toDouble
- convert
Double
toString
- convert
String
toFloat
- convert
Float
toString
- convert
String
tobool
- convert
bool
toString
- convert
Byte[]
toString
String to Integer
Example:
Integer to String
Example:
char to String
Example:
String to char
Example:
String to Double
Example:
Note: CultureInfo
Double to String
Example:
String to Float
Example:
Note: CultureInfo
Float to String
Example:
String to bool
Example:
bool to String
Example:
Array of Bytes to String
Example:
General notes:
Confused with the use of String and string ?