Primitive types

Learn about Slice primitive types.

Slice provides a boolean type, bool. It can have two values: true (1) or false (0).

SliceC# mapping
bool
bool

Slice provides 2 floating-point types: a single precision type, float32, and a double-precision type, float64.

SliceC# mapping
float32
float
float64
double

Slice provides a string type, string. A string is a sequence of characters that can be encoded using UTF-8.

SliceC# mapping
string
string

Was this page helpful?

CookiesYour privacy
This website uses cookies to analyze traffic and improve your experience.
By clicking "Accept," you consent to the use of these cookies. You can learn more about our cookies policy in our Privacy Policy.