[]
Represents a collection of coder functions for encoding and decoding common types.
public static class Coders
| Name | Description |
|---|---|
| Int | Gets a coder for integer values. |
| OptionalString | Gets a coder for strings with a |
| StringDefEmpty | Gets a coder for strings with an empty string as the default value. |
| Name | Description |
|---|---|
| IntDefZero | Gets a coder for integer values with |
| Name | Description |
|---|---|
| Bool() | Creates a coder for boolean values. |
| Bool(bool) | Creates a coder for boolean values with a default value. |
| Default<T>(Coder<T>, T) | Creates a coder with a default value. |
| Enum<T>() | Creates a coder for enumeration values. |
| Enum<T>(T) | Creates a coder for enumeration values with a default value. |
| SkipOnWriteIf<T>(Coder<T>, Func<T, bool>) | Creates a coder for objects with a value which shouldn't be written is satisfies the condition. |
| SkipOnWrite<T>(Coder<T>) | Used for legacy properties which can be read but must not be written. |
| String(string) | Creates a coder for strings with a default value. |