|
Enhanced C#
Loyc library documentation
|
The data type of a field name in SyncLib, which can be implicitly converted from a string. It includes both a Name string and an Id integer, in order to support both string-keyed fields (e.g. JSON) and int-keyed fields (e.g. Protocol Buffers). By convention, an Id of int.MinValue indicates that int-keyed implementations of ISyncManager should choose an ID automatically based on the field order. More...
The data type of a field name in SyncLib, which can be implicitly converted from a string. It includes both a Name string and an Id integer, in order to support both string-keyed fields (e.g. JSON) and int-keyed fields (e.g. Protocol Buffers). By convention, an Id of int.MinValue indicates that int-keyed implementations of ISyncManager should choose an ID automatically based on the field order.
Public fields | |
| readonly string | Name |
| Name chosen by the user, or null if unspecified. More... | |
| readonly int | Id |
| Id code chosen by the user, or int.MinValue if unspecified. More... | |
Public static fields | |
| static readonly FieldId | Missing = new FieldId(null, int.MinValue) |
| Represents the case where a data stream lacks a Field ID. Array elements lack field IDs, and a simple binary format could omit field IDs from all objects. More... | |
Public Member Functions | |
| FieldId (string?name, int id) | |
| override string | ToString () |
Static Public Member Functions | |
| static implicit | operator string? (FieldId field) |
| static implicit | operator FieldId (string?name) |
| static implicit | operator FieldId ((string?, int) p) |
| static | operator FieldId (Symbol?name) |
| This conversion from Symbol to FieldId must only be used for symbols in a private SymbolPool, not global symbols. A global symbol has an ID that can change each time a program runs, which makes the ID useless for serialization or deserialization. More... | |
This conversion from Symbol to FieldId must only be used for symbols in a private SymbolPool, not global symbols. A global symbol has an ID that can change each time a program runs, which makes the ID useless for serialization or deserialization.
| readonly int Loyc.SyncLib.FieldId.Id |
Id code chosen by the user, or int.MinValue if unspecified.
Represents the case where a data stream lacks a Field ID. Array elements lack field IDs, and a simple binary format could omit field IDs from all objects.
| readonly string Loyc.SyncLib.FieldId.Name |
Name chosen by the user, or null if unspecified.
1.8.7