Several special conversions exist from String
to the primitive types. As noted above, these conversions must always be done explicitly except when used in a concatenation operation. The following conversions exist between String
and primitive types:
Boolean
. The literal True
converts to and from the string "True"; the literal False
converts to and from the string "False".Byte
, Short
, Integer
, Long
, Decimal
, Single
and Double
. The numeric types are converted to and from strings at runtime using the current runtime culture information.Date
. Date values are converted to and from strings at runtime using the current runtime culture information.