Conversions Conversions Conversions Conversions Class

Definition

Provides methods that perform various type conversions.

public ref class Conversions sealed
public sealed class Conversions
type Conversions = class
Public NotInheritable Class Conversions
Inheritance
ConversionsConversionsConversionsConversions

Methods

ChangeType(Object, Type) ChangeType(Object, Type) ChangeType(Object, Type) ChangeType(Object, Type)

Converts an object to the specified type.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FallbackUserDefinedConversion(Object, Type) FallbackUserDefinedConversion(Object, Type) FallbackUserDefinedConversion(Object, Type) FallbackUserDefinedConversion(Object, Type)

Converts an object to the specified type.

FromCharAndCount(Char, Int32) FromCharAndCount(Char, Int32) FromCharAndCount(Char, Int32) FromCharAndCount(Char, Int32)

Converts a Char value to a string, given a byte count.

FromCharArray(Char[]) FromCharArray(Char[]) FromCharArray(Char[]) FromCharArray(Char[])

Converts a Char array to a string.

FromCharArraySubset(Char[], Int32, Int32) FromCharArraySubset(Char[], Int32, Int32) FromCharArraySubset(Char[], Int32, Int32) FromCharArraySubset(Char[], Int32, Int32)

Converts a subset of a Char array to a string.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToBoolean(Object) ToBoolean(Object) ToBoolean(Object) ToBoolean(Object)

Converts an object to a Boolean value.

ToBoolean(String) ToBoolean(String) ToBoolean(String) ToBoolean(String)

Converts a string to a Boolean value.

ToByte(Object) ToByte(Object) ToByte(Object) ToByte(Object)

Converts an object to a Byte value.

ToByte(String) ToByte(String) ToByte(String) ToByte(String)

Converts a string to a Byte value.

ToChar(Object) ToChar(Object) ToChar(Object) ToChar(Object)

Converts an object to a Char value.

ToChar(String) ToChar(String) ToChar(String) ToChar(String)

Converts a string to a Char value.

ToCharArrayRankOne(Object) ToCharArrayRankOne(Object) ToCharArrayRankOne(Object) ToCharArrayRankOne(Object)

Converts an object to a one-dimensional Char array.

ToCharArrayRankOne(String) ToCharArrayRankOne(String) ToCharArrayRankOne(String) ToCharArrayRankOne(String)

Converts a string to a one-dimensional Char array.

ToDate(Object) ToDate(Object) ToDate(Object) ToDate(Object)

Converts an object to a DateTime value.

ToDate(String) ToDate(String) ToDate(String) ToDate(String)

Converts a string to a DateTime value.

ToDecimal(Boolean) ToDecimal(Boolean) ToDecimal(Boolean) ToDecimal(Boolean)

Converts a Boolean value to a Decimal value.

ToDecimal(Object) ToDecimal(Object) ToDecimal(Object) ToDecimal(Object)

Converts an object to a Decimal value.

ToDecimal(String) ToDecimal(String) ToDecimal(String) ToDecimal(String)

Converts a string to a Decimal value.

ToDouble(Object) ToDouble(Object) ToDouble(Object) ToDouble(Object)

Converts an object to a Double value.

ToDouble(String) ToDouble(String) ToDouble(String) ToDouble(String)

Converts a string to a Double value.

ToGenericParameter<T>(Object) ToGenericParameter<T>(Object) ToGenericParameter<T>(Object) ToGenericParameter<T>(Object)

Converts an object to a generic type T.

ToInteger(Object) ToInteger(Object) ToInteger(Object) ToInteger(Object)

Converts an object to an integer value.

ToInteger(String) ToInteger(String) ToInteger(String) ToInteger(String)

Converts a string to an integer value.

ToLong(Object) ToLong(Object) ToLong(Object) ToLong(Object)

Converts an object to a Long value.

ToLong(String) ToLong(String) ToLong(String) ToLong(String)

Converts a string to a Long value.

ToSByte(Object) ToSByte(Object) ToSByte(Object) ToSByte(Object)

Converts an object to an SByte value.

ToSByte(String) ToSByte(String) ToSByte(String) ToSByte(String)

Converts a string to an SByte value.

ToShort(Object) ToShort(Object) ToShort(Object) ToShort(Object)

Converts an object to a Short value.

ToShort(String) ToShort(String) ToShort(String) ToShort(String)

Converts a string to a Short value.

ToSingle(Object) ToSingle(Object) ToSingle(Object) ToSingle(Object)

Converts an object to a Single value.

ToSingle(String) ToSingle(String) ToSingle(String) ToSingle(String)

Converts a String to a Single value.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
ToString(Boolean) ToString(Boolean) ToString(Boolean) ToString(Boolean)

Converts a Boolean value to a String.

ToString(Byte) ToString(Byte) ToString(Byte) ToString(Byte)

Converts a Byte value to a String.

ToString(Char) ToString(Char) ToString(Char) ToString(Char)

Converts a Char value to a String.

ToString(DateTime) ToString(DateTime) ToString(DateTime) ToString(DateTime)

Converts a DateTime value to a String value.

ToString(Decimal) ToString(Decimal) ToString(Decimal) ToString(Decimal)

Converts a Decimal value to a String value.

ToString(Decimal, NumberFormatInfo) ToString(Decimal, NumberFormatInfo) ToString(Decimal, NumberFormatInfo) ToString(Decimal, NumberFormatInfo)

Converts a Decimal value to a String value, using the specified number format.

ToString(Double) ToString(Double) ToString(Double) ToString(Double)

Converts a Double value to a String value.

ToString(Double, NumberFormatInfo) ToString(Double, NumberFormatInfo) ToString(Double, NumberFormatInfo) ToString(Double, NumberFormatInfo)

Converts a Double value to a String value, using the specified number format.

ToString(Int16) ToString(Int16) ToString(Int16) ToString(Int16)

Converts a Short value to a String value.

ToString(Int32) ToString(Int32) ToString(Int32) ToString(Int32)

Converts an integer value to a String value.

ToString(Int64) ToString(Int64) ToString(Int64) ToString(Int64)

Converts a Long value to a String value.

ToString(Object) ToString(Object) ToString(Object) ToString(Object)

Converts an object to a String value.

ToString(Single) ToString(Single) ToString(Single) ToString(Single)

Converts a Single value (a single-precision floating point number) to a String value.

ToString(Single, NumberFormatInfo) ToString(Single, NumberFormatInfo) ToString(Single, NumberFormatInfo) ToString(Single, NumberFormatInfo)

Converts a Single value to a String value, using the specified number format.

ToString(UInt32) ToString(UInt32) ToString(UInt32) ToString(UInt32)

Converts a uint value to a String value.

ToString(UInt64) ToString(UInt64) ToString(UInt64) ToString(UInt64)

Converts a Ulong value to a String value.

ToUInteger(Object) ToUInteger(Object) ToUInteger(Object) ToUInteger(Object)

Converts an object to a Uint value.

ToUInteger(String) ToUInteger(String) ToUInteger(String) ToUInteger(String)

Converts a string to a Uint value.

ToULong(Object) ToULong(Object) ToULong(Object) ToULong(Object)

Converts an object to a Ulong value.

ToULong(String) ToULong(String) ToULong(String) ToULong(String)

Converts a string to a Ulong value.

ToUShort(Object) ToUShort(Object) ToUShort(Object) ToUShort(Object)

Converts an object to a Ushort value.

ToUShort(String) ToUShort(String) ToUShort(String) ToUShort(String)

Converts a string to a Ushort value.

Applies to