Table of Contents

Class CodecCaseAttribute<TBase>

Namespace
Shard.Codecs
Assembly
Shard.Codecs.dll

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

discriminator string

Properties

Discriminator

public string Discriminator { get; }

Property Value

string

Priority

Gets or sets the registration priority used when this built in case can become the codec map default.

public int Priority { get; set; }

Property Value

int