[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoders.CollectionDefEmpty

CollectionDefEmpty Method

CollectionDefEmpty<T, TCollection>(JsonCoder<T>)

Gets a coder for the Collection<T> type with a default value of an empty collection.

Declaration
public static JsonCoder<TCollection> CollectionDefEmpty<T, TCollection>(JsonCoder<T> itemCoder) where TCollection : Collection<T>, new()
Parameters
Type Name Description
JsonCoder<T> itemCoder

A JsonCoder<T> to encode and decode the value.

Returns
Type Description
JsonCoder<TCollection>

A JsonCoder<T> with the default value handling.

Type Parameters
Name Description
T

The type of the value.

TCollection

The collection of the Collection<T> values.