Types
A quick overview of the built-in types (see the docs for more details):
JS/TS | C# | Notes |
---|---|---|
string | string | Strings in C# must always be double quoted "" . |
string | char | Character types in C# are distinct from strings and use single quotes '' |
number | int | There are several int types. The default int is a 32-bit signed integer (see the docs). |
number | decimal | Decimal type with fixed degree of precision (see the docs) |
number | float | Decimal type with a floating precision |
boolean | bool | |
object | object | Aside from C#'s dynamic , objects cannot be freely manipulated to attach new properties and functions. |