Class LibraryReservedMessagePackExtensionTypeCode
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
Documents the library-reserved extension type codes and allows changing them to avoid conflicting with those defined by the application or another library.
public record LibraryReservedMessagePackExtensionTypeCode : IEquatable<LibraryReservedMessagePackExtensionTypeCode>
- Inheritance
-
LibraryReservedMessagePackExtensionTypeCode
- Implements
- Inherited Members
Remarks
All values must be non-negative to avoid conflicting with the official extension type codes as described in ReservedMessagePackExtensionTypeCode.
Fields
Default
The default extension type code mapping.
public static readonly LibraryReservedMessagePackExtensionTypeCode Default
Field Value
Properties
ObjectReference
Gets the extension type code for a reference to an object that has already been serialized in the same stream.
public sbyte ObjectReference { get; init; }
Property Value
- sbyte
The default value is 1.