[]
        
(Showing Draft Content)

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

Default Method

Default<T>(JsonCoder<T>, T)

Encodes the specified default value as undefined and skips it during serialization. During deserialization, the undefined value will be replaced with the specified default value.

Declaration
public static JsonCoder<T> Default<T>(this JsonCoder<T> coder, T defValue)
Parameters
Type Name Description
JsonCoder<T> coder

The current JsonCoder<T> to encode and decode the value.

T defValue

A default value.

Returns
Type Description
JsonCoder<T>

A JsonCoder<T> with the default value handling.

Type Parameters
Name Description
T

A type of the value.