Table of Contents

Class UnusedDataPacket

Namespace
Nerdbank.Json
Assembly
Nerdbank.Json.dll

When used as the type of a property or field on a data type, captures deserialized JSON members that could not be assigned to a known property.

[TypeShape(Kind = TypeShapeKind.None)]
public abstract class UnusedDataPacket
Inheritance
UnusedDataPacket
Inherited Members

Remarks

Only one member of this type is allowed per data type. A setter is required to capture data, and a getter is required to write it back. Use PropertyShapeAttribute to expose a private field or property. The serializer initializes the packet only when unrecognized data is encountered. Values are retained as raw JSON, including their original numeric formatting. This packet is specific to JSON and is not interchangeable with other formats' packets.