DataUnion
A portable tree for structured data.
Specification
Kind
Union
Members
23
Examples
0
IsNullSignature
this.IsNull
IsNumberSignature
this.IsNumber
IsObjectSignature
this.IsObject
IsBoolSignature
this.IsBool
IsListSignature
this.IsList
Summary
| Name | Signature | Synopsis |
|---|---|---|
| IsNull | this.IsNull | No description available. |
| IsNumber | this.IsNumber | No description available. |
| IsObject | this.IsObject | No description available. |
| IsBool | this.IsBool | No description available. |
| IsList | this.IsList | No description available. |
| IsText | this.IsText | No description available. |
| From | Data.From(values) | Recursively converts a supported list, or converts a null list to Null. |
| From | Data.From(value) | Converts a calendar date to ISO text. |
| From | Data.From(value) | Converts a timestamp to round-trip ISO text. |
| From | Data.From(value) | Converts a GUID to canonical text. |
| From | Data.From(value) | Converts a double using invariant round-trip formatting. |
| From | Data.From(value) | Converts a decimal using invariant formatting. |
| From | Data.From(value) | Converts a 64-bit integer using invariant formatting. |
| From | Data.From(value) | Converts a 32-bit integer using invariant formatting. |
| From | Data.From(value) | Converts a Boolean value. |
| From | Data.From(value) | Converts text, or converts a null string to Null. |
| From | Data.From(value) | Returns an existing structured value unchanged. |
| Null | Null | A null value. |
| Text | Text value | A text value. |
| Number | Number token | A number whose portable lexical token avoids narrowing it to one runtime numeric type. |
| Bool | Bool value | A Boolean value. |
| List | List items | An ordered collection of structured values. |
| Object | Object fields | An ordered collection of named structured values. |
Recursively converts a supported list, or converts a null list to
Null.Parameters
| Name | Type | Description |
|---|---|---|
| values | ^value list |
Returns
Data
Converts a calendar date to ISO text.
Parameters
| Name | Type | Description |
|---|---|---|
| value | DateOnly |
Returns
Data
Converts a timestamp to round-trip ISO text.
Parameters
| Name | Type | Description |
|---|---|---|
| value | DateTimeOffset |
Returns
Data
Converts a GUID to canonical text.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Guid |
Returns
Data
Converts a double using invariant round-trip formatting.
Parameters
| Name | Type | Description |
|---|---|---|
| value | float |
Returns
Data
Converts a decimal using invariant formatting.
Parameters
| Name | Type | Description |
|---|---|---|
| value | decimal |
Returns
Data
Converts a 64-bit integer using invariant formatting.
Parameters
| Name | Type | Description |
|---|---|---|
| value | int64 |
Returns
Data
Converts a 32-bit integer using invariant formatting.
Parameters
| Name | Type | Description |
|---|---|---|
| value | int |
Returns
Data
Converts a Boolean value.
Parameters
| Name | Type | Description |
|---|---|---|
| value | bool |
Returns
Data
Converts text, or converts a null string to
Null.Parameters
| Name | Type | Description |
|---|---|---|
| value | string |
Returns
Data
Returns an existing structured value unchanged.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Data |
Returns
Data
A number whose portable lexical token avoids narrowing it to one runtime numeric type.
Parameters
| Name | Type | Description |
|---|---|---|
| token | string |
Returns
unit
An ordered collection of structured values.
Parameters
| Name | Type | Description |
|---|---|---|
| items | Data list |
Returns
unit