InvariantConvert class

Methods for converting to and from strings using the invariant culture.

public static class InvariantConvert

Public Members

name description
static ParseBoolean(…) Converts the string to a value using the invariant culture.
static ParseDouble(…) Converts the string to a value using the invariant culture.
static ParseInt32(…) Converts the string to a value using the invariant culture.
static ParseInt64(…) Converts the string to a value using the invariant culture.
static ParseTimeSpan(…) Converts the string to a value using the invariant culture.
static ToInvariantString(…) Converts the value to “true” or “false”. (6 methods)
static TryParseBoolean(…) Converts the string to a value using the invariant culture.
static TryParseDouble(…) Converts the string to a value using the invariant culture.
static TryParseInt32(…) Converts the string to a value using the invariant culture.
static TryParseInt64(…) Converts the string to a value using the invariant culture.
static TryParseTimeSpan(…) Converts the string to a value using the invariant culture.

See Also