CrystalJsonMemberFlags

Namespace: SnowBank.Data.Json · enum

Implements: IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

AlwaysEmit

AlwaysEmit = 128

The member is always serialized, even when the settings discard nulls or default values ([JsonIgnore(Condition = JsonIgnoreCondition.Never)])

ConstructorBound

ConstructorBound = 2048

The member receives its value through a constructor parameter of the same name, so the member loop does not assign it after construction

InitOnly

InitOnly = 16

Key

Key = 64

NonZeroDefault

NonZeroDefault = 4

None

None = 0

NotNull

NotNull = 2

OmitDefaultValues

OmitDefaultValues = 512

The member is omitted when its value equals its default, regardless of the settings ([JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)])

OmitNullValues

OmitNullValues = 256

The member is omitted when its value is null, regardless of the settings ([JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)])

ReadOnly

ReadOnly = 8

Required

Required = 32

RequiredPresence

RequiredPresence = 1024

The member must be PRESENT in the document when binding ([DataMember(IsRequired = true)]): an absent member throws, an explicit null satisfies it (DCJS semantics), unlike Required which rejects null as well

SourceGenerated

SourceGenerated = 1