Export (0) Print
Expand All

Conversions Class

Provides methods that perform various type conversions.

System.Object
  Microsoft.VisualBasic.CompilerServices.Conversions

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public sealed class Conversions

The Conversions type exposes the following members.

  NameDescription
Public methodStatic memberChangeTypeConverts an object to the specified type.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberFallbackUserDefinedConversion Obsolete. Converts an object to the specified type.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberFromCharAndCountConverts a Char value to a string, given a byte count.
Public methodStatic memberFromCharArrayConverts a Char array to a string.
Public methodStatic memberFromCharArraySubsetConverts a subset of a Char array to a string.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberToBoolean(Object)Converts an object to a Boolean value.
Public methodStatic memberToBoolean(String)Converts a string to a Boolean value.
Public methodStatic memberToByte(Object)Converts an object to a Byte value.
Public methodStatic memberToByte(String)Converts a string to a Byte value.
Public methodStatic memberToChar(Object)Converts an object to a Char value.
Public methodStatic memberToChar(String)Converts a string to a Char value.
Public methodStatic memberToCharArrayRankOne(Object)Converts an object to a one-dimensional Char array.
Public methodStatic memberToCharArrayRankOne(String)Converts a string to a one-dimensional Char array.
Public methodStatic memberToDate(Object)Converts an object to a DateTime value.
Public methodStatic memberToDate(String)Converts a string to a DateTime value.
Public methodStatic memberToDecimal(Boolean)Converts a Boolean value to a Decimal value.
Public methodStatic memberToDecimal(Object)Converts an object to a Decimal value.
Public methodStatic memberToDecimal(String)Converts a string to a Decimal value.
Public methodStatic memberToDouble(Object)Converts an object to a Double value.
Public methodStatic memberToDouble(String)Converts a string to a Double value.
Public methodStatic memberToGenericParameter<T>Converts an object to a generic type T.
Public methodStatic memberToInteger(Object)Converts an object to an integer value.
Public methodStatic memberToInteger(String)Converts a string to an integer value.
Public methodStatic memberToLong(Object)Converts an object to a Long value.
Public methodStatic memberToLong(String)Converts a string to a Long value.
Public methodStatic memberToSByte(Object)Converts an object to an SByte value.
Public methodStatic memberToSByte(String)Converts a string to an SByte value.
Public methodStatic memberToShort(Object)Converts an object to a Short value.
Public methodStatic memberToShort(String)Converts a string to a Short value.
Public methodStatic memberToSingle(Object)Converts an object to a Single value.
Public methodStatic memberToSingle(String)Converts a String to a Single value.
Public methodToString()Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberToString(Boolean)Converts a Boolean value to a String.
Public methodStatic memberToString(Byte)Converts a Byte value to a String.
Public methodStatic memberToString(Char)Converts a Char value to a String.
Public methodStatic memberToString(DateTime)Converts a DateTime value to a String value.
Public methodStatic memberToString(Decimal)Converts a Decimal value to a String value.
Public methodStatic memberToString(Double)Converts a Double value to a String value.
Public methodStatic memberToString(Int16)Converts a Short value to a String value.
Public methodStatic memberToString(Int32)Converts an integer value to a String value.
Public methodStatic memberToString(Int64)Converts a Long value to a String value.
Public methodStatic memberToString(Object)Converts an object to a String value.
Public methodStatic memberToString(Single)Converts a Single value (a single-precision floating point number) to a String value.
Public methodStatic memberToString(UInt32)Converts a uint value to a String value.
Public methodStatic memberToString(UInt64)Converts a Ulong value to a String value.
Public methodStatic memberToString(Decimal, NumberFormatInfo)Converts a Decimal value to a String value, using the specified number format.
Public methodStatic memberToString(Double, NumberFormatInfo)Converts a Double value to a String value, using the specified number format.
Public methodStatic memberToString(Single, NumberFormatInfo)Converts a Single value to a String value, using the specified number format.
Public methodStatic memberToUInteger(Object)Converts an object to a Uint value.
Public methodStatic memberToUInteger(String)Converts a string to a Uint value.
Public methodStatic memberToULong(Object)Converts an object to a Ulong value.
Public methodStatic memberToULong(String)Converts a string to a Ulong value.
Public methodStatic memberToUShort(Object)Converts an object to a Ushort value.
Public methodStatic memberToUShort(String)Converts a string to a Ushort value.
Top

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft