[]
Creates a coder with a default value.
public static Coders.Coder<T> Default<T>(this Coders.Coder<T> coder, T defaultValue)
Type | Name | Description |
---|---|---|
Coders.Coder<T> | coder | The base coder. |
T | defaultValue | The default value. |
Type | Description |
---|---|
Coders.Coder<T> | A coder with a default value. |
Name | Description |
---|---|
T | The type to encode/decode. |