Class BsonDiscriminatorAttribute
Unit
Grijjy.Bson.Serialization
Declaration
type BsonDiscriminatorAttribute = class(TCustomAttribute)
Description
Applies a discriminator to a class. See the unit documentation for details
Hierarchy
- TCustomAttribute
- BsonDiscriminatorAttribute
Overview
Methods
|
constructor Create(const ADiscriminator: String; const ARequired: Boolean = False); overload; |
|
constructor Create(const ARequired: Boolean); overload; |
Properties
Description
Methods
|
constructor Create(const ADiscriminator: String; const ARequired: Boolean = False); overload; |
|
|
constructor Create(const ARequired: Boolean); overload; |
|
Properties
|
property Discriminator: String read FDiscriminator; |
The discriminator to use for the class
|
|
property Required: Boolean read FRequired; |
Whether the discriminator is always serialized or not
|
Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26
|