Show/Hide Toolbars

XSharp Bandol

By simple data types we mean data types that are not primarily used to hold other data, e.g. Objects, Structures, Arrays, etc., that we will see later.

 

Most data types are identical across all .Net languages. This contributes to the ease with which one can use assemblies written in different .Net languages within one application, one of the main The simple data types come in various categories; some include several types. The following table just groups data types by category:

 

 

Type

Category

.Net Name

Size in Bits

BYTE

Unsigned Integer

Byte

8

CHAR

Character

Char

16

DWORD

Unsigned Integer

UInt32

32

DECIMAL

Numeric

Decimal

96

DYNAMIC

Multi purpose

Dynamic

Reference (32 or 64 bits)

INT

Signed Integer

Int32

32

INT64

Signed Integer

Int64

64

LOGIC

Logic

Boolean

8

LONGINT

Signed Integer

Int32

32

OBJECT

Multi purpose

Object

Reference (32 or 64 bits)

PTR

Multi purpose

Intptr

Reference (32 or 64 bits)

REAL4

Floating Point

Single

32

REAL8

Floating Point

Double

64

SBYTE

Signed Integer

SByte

8

SHORT

Signed Integer

Int16

16

STRING

String

String

Reference (32 or 64 bits)

UINT64

Unsigned Integer

Uint64

64

VOID

Not a type

Void

0

WORD

Unsigned Integer

UInt16

16