Primitive/Base Data Types (2020/10)

These data types may be used in the BSN.cloud Main REST API. Among primitive data types, only the string and object data types are nullable. All data types are primitive except for the object data type.

Data Type

Definition

Default Value

Data Type

Definition

Default Value

array

The ordered sequence of elements of the same data type. This type is always nullable.

[ ]

bool

true or false value

False

byte

8-bit unsigned integer (0-255)

0

char

16-bit unicode character

‘\0’

decimal

128-bit decimal values with 28 or 29 digits

0.0M

double

64-bit double-precision floating point number

0.0D

float

32-bit floating point number

0.0F

int

32-bit integer

0

long

64-bit integer

0L

object

A base data type that is the parent for all other data types (it can include the value of any other data type). This type is always nullable.

Nothing

sbyte

8-bit signed integer

0

short

16-bit signed integer

0

string

A sequence of characters. This type is always nullable.



uint

32-bit unsigned integer

0

ulong

64-bit unsigned integer

0

ushort

16-bit unsigned integer

0