[]
        
(Showing Draft Content)

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

JsonCoders Class

Represents the JSON coders for various data types.

Inheritance
JsonCoders
Namespace: GrapeCity.ActiveReports.Core.Rdl.Persistence.Json
Assembly: MESCIUS.ActiveReports.Core.Rdl.dll
Syntax
public static class JsonCoders

Fields

Name Description
Bool

Gets a coder for the bool type.

BoolDefFalse

Gets a coder for the bool type with a default value of an false.

Double

Gets a coder for the double type.

Int

Gets a coder for the int type.

IntDefZero

Gets a coder for the int type with a default value of 0.

NullableDouble

Gets a coder for the nullable double type.

String

Gets a coder for the string type.

StringDefEmpty

Gets a coder for the string type with a default value of an empty string.

StringDefNull

Gets a coder for the string type with a default value of null.

Methods

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

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

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

Gets a coder for the Collection<T> type with a default value of null.

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

Gets a coder for the Collection<T> type.

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.

Enum<T>()

Gets a coder for the Enum<T>() type.

ListDefEmpty<T>(JsonCoder<T>)

Gets a coder for the IList<T> type with a default value of empty list.

List<T>(JsonCoder<T>)

Gets a coder for the IList<T> type.

NullAsUndefined<T>(JsonCoder<T>)

if variant value is undefined it will be converted to null instead During deserialization, the null value will be replaced with the undefiend variant should be usedin in combination with Default coder

Optional<T>(JsonCoder<T>)

Skips empty objects during serialization and deserializes undefined values as a default object.

Optional<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.