ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.Core.Rdl.Persistence.Json Namespace / JsonCoders Class / CollectionDefEmpty<T,TCollection> Method
The type of the value.
The collection of the Collection values.
A JsonCoder<T> to encode and decode the value.

In This Topic
    CollectionDefEmpty<T,TCollection> Method
    In This Topic
    Gets a coder for the Collection type with a default value of an empty collection.
    Syntax
    'Declaration
     
    Public Shared Function CollectionDefEmpty
        (Of T,TCollection As {New, Collection(Of T)})( _
       ByVal itemCoder As JsonCoder(Of T) _
    ) As JsonCoder(Of TCollection)
    public static JsonCoder<TCollection> CollectionDefEmpty<T,TCollection>( 
       JsonCoder<T> itemCoder
    )
    where TCollection: new(), Collection<T>

    Parameters

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

    Type Parameters

    T
    The type of the value.
    TCollection
    The collection of the Collection values.

    Return Value

    A JsonCoder<T> with the default value handling.
    See Also