Property Type
- Namespace
- MailFathom.Application.Discovery.Presentation
- Assembly
- MailFathom.Application.dll
Type
Gets which of the catalogued types this block is.
[JsonIgnore]
public PresentationBlockType Type { get; }
Property Value
Remarks
Not written as a member of its own, because the type discriminator the polymorphic contract already writes is the
same value: Identity and the discriminator are one constant per member, so
the two cannot disagree. Declared here rather than overridden per block, because a property named type on
a derived type is the discriminator's own name and the serializer refuses the collision. This is how the value is
read in code. It is never the unspecified default, because the hierarchy admits only the types declared beside
it and each of them names its own catalogue member.