Class CodecCaseAttribute<TBase>
Declares the annotated concrete type as a built in case of its generated codec map.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, Inherited = false)]
public sealed class CodecCaseAttribute<TBase> : Attribute
Type Parameters
TBase
- Inheritance
-
CodecCaseAttribute<TBase>
- Inherited Members
Constructors
CodecCaseAttribute(string)
Declares the annotated concrete type as a built in case of its generated codec map.
public CodecCaseAttribute(string discriminator)
Parameters
discriminatorstring
Properties
Discriminator
public string Discriminator { get; }
Property Value
Priority
Gets or sets the registration priority used when this built in case can become the codec map default.
public int Priority { get; set; }