TcHmiJsonSerializer.Serialize.T. Method (JsonConverter`1.T., T, JsonSerializer)

Serializes the specified value to an equivalent JSON String using the specified JsonConverter{T}.

Namespace:  TcHmiSrv.Core.Tools.Json.Newtonsoft
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public static string Serialize<T>(
    JsonConverter<T> converter,
    T value,
    JsonSerializer serializer
)

Parameters

converter

Type: JsonConverter.T.
The JsonConverter{T} that is used to serialize value to an equivalent JSON String

value

Type: T
The value to convert.

serializer

Type: JsonSerializer
The calling JsonSerializer.

Type Parameters

T

The type of the value to convert.

Return Value

Type: String
A JSON String that is equivalent to value.

Reference

TcHmiJsonSerializer Class

Serialize Overload

TcHmiSrv.Core.Tools.Json.Newtonsoft Namespace