Primitives
Primitive types are parsed from string values in value nodes.
Supported types
Type | Allowed format examples |
| Literally any string. |
| Literally any single character. |
|
|
| Anything built-in |
| Anything built-in |
| Anything built-in |
| Anything built-in |
|
|
| Anything built-in |
|
|
|
|
|
|
|
|
|
|
| |
| |
|
|
| Anything built-in |
Nullable structs | A valid value or |
DataSize and DataRate are custom new types. They also provide factory extensions and operators:
Parse method convention
There's also support for types that implement Parse
or TryParse
method with standard signature:
This allows to use arbitrary types with string representation without resorting to implementation of custom binders.
Node requirements
Value node or a container (array/object) node with a single value node child.
Null node handling
Default value for the type is used unless explictly required.
Explicitly specified null
string value has the same effect.
Incorrect format handling
Parsing errors arising from incorrect value formats lead to binder failure and result in exceptions, even for optional members (see classes and structs for more context).
Related pages
pageBinding nodes to modelsLast updated