ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.Core.Rdl.Persistence.Json Namespace / JsonCoders Class / Collection<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
    Collection<T,TCollection> Method (JsonCoders)
    In This Topic
    Gets a coder for the Collection type.
    Syntax
    'Declaration
     
    Public Shared Function Collection
        (Of T,TCollection As {New, Collection(Of T)})( _
       ByVal itemCoder As JsonCoder(Of T) _
    ) As JsonCoder(Of TCollection)
    public static JsonCoder<TCollection> Collection<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.
    Exceptions
    ExceptionDescription
    Thrown if the value is not a array.
    See Also