Enum PreserveReferencesHandling
Specifies reference handling options for the JsonSerializer. Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable.
Namespace: Bayat.Json
Assembly: Bayat.Json.Runtime.dll
Syntax
[Flags]
public enum PreserveReferencesHandling
Examples
Fields
Name | Description |
---|---|
All | Preserve references when serializing. |
Arrays | Preserve references when serializing into a JSON array structure. |
None | Do not preserve references when serializing types. |
Objects | Preserve references when serializing into a JSON object structure. |