[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rdl.Extensibility.JsonSerializersFactory.Register

Register Method

Register(string, Type, Func<JsonConverter<ReportItem>>)

Registers a JSON converter for a specific type of report item.

Declaration
public static void Register(string typeName, Type type, Func<JsonConverter<ReportItem>> getConverter)
Parameters
Type Name Description
string typeName

A string value indicating the report item name used to specify the type in the JSON..

Type type

A Type object representing the type of the report item.

Func<JsonConverter<ReportItem>> getConverter

The function to get a JsonConverter<T> object used for serialization and deserialization.

Remarks

This method allows the registration of custom JSON converters for specific report item types. The converters will be used to handle the serialization and deserialization of those types.