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 memberSupported in .NET for Windows Store appsChangeTypeConverts an object to the specified type.
Public methodSupported in .NET for Windows Store appsEquals(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 methodSupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberSupported in .NET for Windows Store appsToBoolean(Object)Converts an object to a Boolean value.
Public methodStatic memberSupported in .NET for Windows Store appsToBoolean(String)Converts a string to a Boolean value.
Public methodStatic memberSupported in .NET for Windows Store appsToByte(Object)Converts an object to a Byte value.
Public methodStatic memberSupported in .NET for Windows Store appsToByte(String)Converts a string to a Byte value.
Public methodStatic memberSupported in .NET for Windows Store appsToChar(Object)Converts an object to a Char value.
Public methodStatic memberSupported in .NET for Windows Store appsToChar(String)Converts a string to a Char value.
Public methodStatic memberSupported in .NET for Windows Store appsToCharArrayRankOne(Object)Converts an object to a one-dimensional Char array.
Public methodStatic memberSupported in .NET for Windows Store appsToCharArrayRankOne(String)Converts a string to a one-dimensional Char array.
Public methodStatic memberSupported in .NET for Windows Store appsToDate(Object)Converts an object to a DateTime value.
Public methodStatic memberSupported in .NET for Windows Store appsToDate(String)Converts a string to a DateTime value.
Public methodStatic memberSupported in .NET for Windows Store appsToDecimal(Boolean)Converts a Boolean value to a Decimal value.
Public methodStatic memberSupported in .NET for Windows Store appsToDecimal(Object)Converts an object to a Decimal value.
Public methodStatic memberSupported in .NET for Windows Store appsToDecimal(String)Converts a string to a Decimal value.
Public methodStatic memberSupported in .NET for Windows Store appsToDouble(Object)Converts an object to a Double value.
Public methodStatic memberSupported in .NET for Windows Store appsToDouble(String)Converts a string to a Double value.
Public methodStatic memberSupported in .NET for Windows Store appsToGenericParameter<T>Converts an object to a generic type T.
Public methodStatic memberSupported in .NET for Windows Store appsToInteger(Object)Converts an object to an integer value.
Public methodStatic memberSupported in .NET for Windows Store appsToInteger(String)Converts a string to an integer value.
Public methodStatic memberSupported in .NET for Windows Store appsToLong(Object)Converts an object to a Long value.
Public methodStatic memberSupported in .NET for Windows Store appsToLong(String)Converts a string to a Long value.
Public methodStatic memberSupported in .NET for Windows Store appsToSByte(Object)Converts an object to an SByte value.
Public methodStatic memberSupported in .NET for Windows Store appsToSByte(String)Converts a string to an SByte value.
Public methodStatic memberSupported in .NET for Windows Store appsToShort(Object)Converts an object to a Short value.
Public methodStatic memberSupported in .NET for Windows Store appsToShort(String)Converts a string to a Short value.
Public methodStatic memberSupported in .NET for Windows Store appsToSingle(Object)Converts an object to a Single value.
Public methodStatic memberSupported in .NET for Windows Store appsToSingle(String)Converts a String to a Single value.
Public methodSupported in .NET for Windows Store appsToString()Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberSupported in .NET for Windows Store appsToString(Boolean)Converts a Boolean value to a String.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Byte)Converts a Byte value to a String.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Char)Converts a Char value to a String.
Public methodStatic memberSupported in .NET for Windows Store appsToString(DateTime)Converts a DateTime value to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Decimal)Converts a Decimal value to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Double)Converts a Double value to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Int16)Converts a Short value to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Int32)Converts an integer value to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Int64)Converts a Long value to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Object)Converts an object to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(Single)Converts a Single value (a single-precision floating point number) to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(UInt32)Converts a uint value to a String value.
Public methodStatic memberSupported in .NET for Windows Store appsToString(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 memberSupported in .NET for Windows Store appsToUInteger(Object)Converts an object to a Uint value.
Public methodStatic memberSupported in .NET for Windows Store appsToUInteger(String)Converts a string to a Uint value.
Public methodStatic memberSupported in .NET for Windows Store appsToULong(Object)Converts an object to a Ulong value.
Public methodStatic memberSupported in .NET for Windows Store appsToULong(String)Converts a string to a Ulong value.
Public methodStatic memberSupported in .NET for Windows Store appsToUShort(Object)Converts an object to a Ushort value.
Public methodStatic memberSupported in .NET for Windows Store appsToUShort(String)Converts a string to a Ushort value.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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