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

In This Topic
    ListDefEmpty<T> Method
    In This Topic
    Gets a coder for the IList type with a default value of empty list.
    Syntax
    'Declaration
     
    Public Shared Function ListDefEmpty(Of T)( _
       ByVal itemCoder As JsonCoder(Of T) _
    ) As JsonCoder(Of IList(Of T))
    public static JsonCoder<IList<T>> ListDefEmpty<T>( 
       JsonCoder<T> itemCoder
    )

    Parameters

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

    Type Parameters

    T
    The type of the value.

    Return Value

    A JsonCoder<T> with the default value handling.
    Exceptions
    ExceptionDescription
    Thrown if the value is not a array.
    See Also