Class ShapeShiftDataMap
- Namespace
- ShapeShift
- Assembly
- ShapeShift.dll
Represents a map whose keys are arbitrary dynamic values.
public sealed record ShapeShiftDataMap : ShapeShiftValue, IShapeable<ShapeShiftValue>, IEquatable<ShapeShiftValue>, IEquatable<ShapeShiftDataMap>
- Inheritance
-
ShapeShiftDataMap
- Implements
-
IShapeable<ShapeShiftValue>
- Inherited Members
Remarks
CBOR major type 5 allows any data item as a key. This type carries those maps. ShapeShiftMap remains the representation when every key is text. Entry order is preserved on the wire and ignored by structural equality. Duplicate keys, compared structurally, are rejected.
Formats that cannot encode a non-text key reject this value. Typed dictionaries are unchanged: string keys are still text maps, and every other key type is still a sequence of key/value pairs.
Constructors
ShapeShiftDataMap(IReadOnlyList<ShapeShiftDataMapEntry>)
Represents a map whose keys are arbitrary dynamic values.
public ShapeShiftDataMap(IReadOnlyList<ShapeShiftDataMapEntry> Entries)
Parameters
EntriesIReadOnlyList<ShapeShiftDataMapEntry>The map entries, in the order they were written or read.
Remarks
CBOR major type 5 allows any data item as a key. This type carries those maps. ShapeShiftMap remains the representation when every key is text. Entry order is preserved on the wire and ignored by structural equality. Duplicate keys, compared structurally, are rejected.
Formats that cannot encode a non-text key reject this value. Typed dictionaries are unchanged: string keys are still text maps, and every other key type is still a sequence of key/value pairs.
Properties
Entries
The map entries, in the order they were written or read.
public IReadOnlyList<ShapeShiftDataMapEntry> Entries { get; init; }