Table of Contents

Class KeyedCodecCase<TValue>

Namespace
Shard.Codecs
Assembly
Shard.Codecs.dll

Identifies one typed value in a keyed codec map.

public sealed class KeyedCodecCase<TValue>

Type Parameters

TValue
Inheritance
KeyedCodecCase<TValue>
Inherited Members

Remarks

Whereas Shard.Codecs.CodecMapCase<TBase> represents flat cases that share a base and are selected by runtime type, a keyed case identifies an unrelated nested value through its handle. A directly constructed case can be registered with more than one host, but callers should use the factory from generated asset bindings when the payload codec depends on its host.

Constructors

KeyedCodecCase(string, Codec<TValue>)

public KeyedCodecCase(string key, Codec<TValue> codec)

Parameters

key string
codec Codec<TValue>

Properties

Key

public string Key { get; }

Property Value

string