Visual Basic Data Types


All of the data types implemented in the Visual Basic language are wrappers for the core .NET data types. Only some of the names have been changed to protect the innocent. Table 6-5 lists the Visual Basic data types and their .NET equivalents.

Table 6-5. Visual Basic Data Types and Related .NET Types

Visual Basic Type

.NET Type

Boolean

System.Boolean

Byte

System.Byte

Char

System.Char

Date

System.DateTime

Decimal

System.Decimal

Double

System.Double

Integer

System.Int32

Long

System.Int64

Object

System.Object

SByte

System.SByte

Short

System.Int16

Single

System.Single

String

System.String

UInteger

System.UInt32

ULong

System.UInt64

UShort

System.UInt16


All of the Visual Basic data types are fully interchangeable with their .NET equivalents. Any instance of System.Int32 can be treated as if it were an instance of Integer, and vice-versa.




Start-to-Finish Visual Basic 2005. Learn Visual Basic 2005 as You Design and Develop a Complete Application
Start-to-Finish Visual Basic 2005: Learn Visual Basic 2005 as You Design and Develop a Complete Application
ISBN: 0321398009
EAN: 2147483647
Year: 2006
Pages: 247
Authors: Tim Patrick

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net