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. Executes a late-bound call to a user-defined conversion expression. This helper method is not meant to be called directly from your code.
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 the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft