Conversions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides methods that perform various type conversions.
public ref class Conversions sealed
public sealed class Conversions
type Conversions = class
Public NotInheritable Class Conversions
- Inheritance
-
Conversions
Methods
ChangeType(Object, Type) |
Converts an object to the specified type. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
FallbackUserDefinedConversion(Object, Type) |
Obsolete.
Obsolete.
Converts an object to the specified type. |
FromCharAndCount(Char, Int32) |
Converts a Char value to a string, given a byte count. |
FromCharArray(Char[]) |
Converts a Char array to a string. |
FromCharArraySubset(Char[], Int32, Int32) |
Converts a subset of a Char array to a string. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToBoolean(Object) |
Converts an object to a Boolean value. |
ToBoolean(String) |
Converts a string to a Boolean value. |
ToByte(Object) |
Converts an object to a Byte value. |
ToByte(String) |
Converts a string to a Byte value. |
ToChar(Object) |
Converts an object to a Char value. |
ToChar(String) |
Converts a string to a Char value. |
ToCharArrayRankOne(Object) |
Converts an object to a one-dimensional Char array. |
ToCharArrayRankOne(String) |
Converts a string to a one-dimensional Char array. |
ToDate(Object) |
Converts an object to a DateTime value. |
ToDate(String) |
Converts a string to a DateTime value. |
ToDecimal(Boolean) | |
ToDecimal(Object) |
Converts an object to a Decimal value. |
ToDecimal(String) |
Converts a string to a Decimal value. |
ToDouble(Object) |
Converts an object to a Double value. |
ToDouble(String) |
Converts a string to a Double value. |
ToGenericParameter<T>(Object) |
Converts an object to a generic type |
ToInteger(Object) |
Converts an object to an integer value. |
ToInteger(String) |
Converts a string to an integer value. |
ToLong(Object) |
Converts an object to a |
ToLong(String) |
Converts a string to a |
ToSByte(Object) |
Converts an object to an SByte value. |
ToSByte(String) |
Converts a string to an SByte value. |
ToShort(Object) |
Converts an object to a |
ToShort(String) |
Converts a string to a |
ToSingle(Object) |
Converts an object to a Single value. |
ToSingle(String) | |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
ToString(Boolean) | |
ToString(Byte) | |
ToString(Char) | |
ToString(DateTime) | |
ToString(Decimal) | |
ToString(Decimal, NumberFormatInfo) |
Converts a Decimal value to a String value, using the specified number format. |
ToString(Double) | |
ToString(Double, NumberFormatInfo) |
Converts a Double value to a String value, using the specified number format. |
ToString(Int16) |
Converts a |
ToString(Int32) |
Converts an integer value to a String value. |
ToString(Int64) |
Converts a |
ToString(Object) |
Converts an object to a String value. |
ToString(Single) |
Converts a Single value (a single-precision floating point number) to a String value. |
ToString(Single, NumberFormatInfo) |
Converts a Single value to a String value, using the specified number format. |
ToString(UInt32) |
Converts a |
ToString(UInt64) |
Converts a |
ToUInteger(Object) |
Converts an object to a |
ToUInteger(String) |
Converts a string to a |
ToULong(Object) |
Converts an object to a |
ToULong(String) |
Converts a string to a |
ToUShort(Object) |
Converts an object to a |
ToUShort(String) |
Converts a string to a |