Share via


Conversions Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides methods that perform various type conversions.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.VisualBasic.CompilerServices..::..Conversions

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

Syntax

'Declaration
<EmbeddedAttribute> _
Public Class Conversions
[EmbeddedAttribute]
public class Conversions
[EmbeddedAttribute]
public ref class Conversions
[<EmbeddedAttribute>]
type Conversions =  class end
public class Conversions

The Conversions type exposes the following members.

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member GetCultureInfo Gets the current culture.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member IsHexOrOctValue(String, Int64%) Determines whether the value is a hexadecimal or octal value.
Public methodStatic member IsHexOrOctValue(String, UInt64%) Determines whether the value is a hexadecimal or octal value.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member ToBoolean(Object) Converts an object to a Boolean value.
Public methodStatic member ToBoolean(String) Converts a string to a Boolean value.
Public methodStatic member ToByte(Object) Converts an object to a Byte value.
Public methodStatic member ToByte(String) Converts a string to a Byte value.
Public methodStatic member ToChar(Object) Converts an object to a Char value.
Public methodStatic member ToChar(String) Converts a string to a Char value.
Public methodStatic member ToCharArrayRankOne(Object) Converts an object to a one-dimensional Char array.
Public methodStatic member ToCharArrayRankOne(String) Converts a string to a one-dimensional Char array.
Public methodStatic member ToDate(Object) Converts an object to a DateTime value.
Public methodStatic member ToDate(String) Converts a string to a DateTime value.
Public methodStatic member ToDouble(Object) Converts an object to a Double value.
Public methodStatic member ToDouble(String) Converts a string to a Double value.
Public methodStatic member ToHalfwidthNumbers
Public methodStatic member ToInteger(Object) Converts an object to an integer value.
Public methodStatic member ToInteger(String) Converts a string to an integer value.
Public methodStatic member ToLong(Object) Converts an object to a Long value.
Public methodStatic member ToLong(String) Converts a string to a Long value.
Public methodStatic member ToSByte(Object) Converts an object to an SByte value.
Public methodStatic member ToSByte(String) Converts a string to an SByte value.
Public methodStatic member ToShort(Object) Converts an object to a Short value.
Public methodStatic member ToShort(String) Converts a string to a Short value.
Public methodStatic member ToSingle(Object) Converts an object to a Single value.
Public methodStatic member ToSingle(String) Converts a String to a Single value.
Public method ToString() () () () Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic member ToString(Boolean) Converts a Boolean value to a String.
Public methodStatic member ToString(Byte) Converts a Byte value to a String.
Public methodStatic member ToString(Char) Converts a Char value to a String.
Public methodStatic member ToString(DateTime) Converts a DateTime value to a String value.
Public methodStatic member ToString(Double) Converts a Double value to a String value.
Public methodStatic member ToString(Int16) Converts a Short value to a String value.
Public methodStatic member ToString(Int32) Converts an integer value to a String value.
Public methodStatic member ToString(Int64) Converts a Long value to a String value.
Public methodStatic member ToString(Object) Converts an object to a String value.
Public methodStatic member ToString(Single) Converts a Single value (a single-precision floating point number) to a String value.
Public methodStatic member ToString(UInt32) Converts a uint value to a String value.
Public methodStatic member ToString(UInt64) Converts a Ulong value to a String value.
Public methodStatic member ToUInteger(Object) Converts an object to a Uint value.
Public methodStatic member ToUInteger(String) Converts a string to a Uint value.
Public methodStatic member ToULong(Object) Converts an object to a Ulong value.
Public methodStatic member ToULong(String) Converts a string to a Ulong value.
Public methodStatic member ToUShort(Object) Converts an object to a Ushort value.
Public methodStatic member ToUShort(String) Converts a string to a Ushort value.

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualBasic.CompilerServices Namespace