Conversion Class

 

The Conversion module contains the procedures used to perform various conversion operations.

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

System::Object
  Microsoft.VisualBasic::Conversion

[StandardModuleAttribute]
public ref class Conversion sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCTypeDynamic(Object^, Type^)

Converts an object to the specified type.

System_CAPS_pubmethodSystem_CAPS_staticCTypeDynamic<TargetType>(Object^)

Converts an object to the specified generic type.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticErrorToString()

Returns the error message that corresponds to a given error number.

System_CAPS_pubmethodSystem_CAPS_staticErrorToString(Int32)

Returns the error message that corresponds to a given error number.

System_CAPS_pubmethodSystem_CAPS_staticFix(Decimal)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticFix(Double)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticFix(Int16)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticFix(Int32)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticFix(Int64)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticFix(Object^)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticFix(Single)

Return the integer portion of a number.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticHex(Byte)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticHex(Int16)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticHex(Int32)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticHex(Int64)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticHex(Object^)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticHex(SByte)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticHex(UInt16)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticHex(UInt32)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticHex(UInt64)

Returns a string representing the hexadecimal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticInt(Decimal)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticInt(Double)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticInt(Int16)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticInt(Int32)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticInt(Int64)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticInt(Object^)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticInt(Single)

Return the integer portion of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(Byte)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(Int16)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(Int32)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(Int64)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(Object^)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(SByte)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(UInt16)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(UInt32)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticOct(UInt64)

Returns a string representing the octal value of a number.

System_CAPS_pubmethodSystem_CAPS_staticStr(Object^)

Returns a String representation of a number.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticVal(Char)

Returns the numbers contained in a string as a numeric value of appropriate type.

System_CAPS_pubmethodSystem_CAPS_staticVal(Object^)

Returns the numbers contained in a string as a numeric value of appropriate type.

System_CAPS_pubmethodSystem_CAPS_staticVal(String^)

Returns the numbers contained in a string as a numeric value of appropriate type.

This module supports the Visual Basic language keywords and run-time library members that convert decimal numbers to other bases, numbers to strings, strings to numbers, and one data type to another.

This example uses the Hex function to return the hexadecimal value of a number.

Dim TestHex As String
' Returns 5.
TestHex = Hex(5)
' Returns A.
TestHex = Hex(10)
' Returns 1CB.
TestHex = Hex(459)

.NET Framework
Available since 1.1
Silverlight
Available since 2.0

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

Return to top
Show: