[]
Gets a coder for the IList<T> type with a default value of empty list.
public static JsonCoder<IList<T>> ListDefEmpty<T>(JsonCoder<T> itemCoder)
Type | Name | Description |
---|---|---|
JsonCoder<T> | itemCoder | A JsonCoder<T> to encode and decode the value. |
Type | Description |
---|---|
JsonCoder<IList<T>> | A JsonCoder<T> with the default value handling. |
Name | Description |
---|---|
T | The type of the value. |
Type | Condition |
---|---|
FormatException | Thrown if the value is not a |