[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder-1.-ctor

JsonCoder Constructor

JsonCoder(Func<T, IJsonVariant>, Func<IJsonVariant, T>)

Represents a JSON coder that encodes and decodes objects of type T to and from JSON variants.

Declaration
public JsonCoder(Func<T, IJsonVariant> Encode, Func<IJsonVariant, T> Decode)
Parameters
Type Name Description
Func<T, IJsonVariant> Encode

A function that takes an object of type T and encodes it into an IJsonVariant.

Func<IJsonVariant, T> Decode

A function that takes an IJsonVariant and decodes it into an object of type T.

Remarks

This record should not be used directly in application code.It is designed for internal operations within the product libraries and may change or be removed in future versions without notice.