TcHmiJsonSerializerSerializeT(Int32, JsonConverterT, T, JsonSerializer) Method

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: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

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

Parameters

capacity  Int32

The capacity of the StringBuilder that is used to create the JSON String.

converter  JsonConverterT

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

value  T

The value to convert.

serializer  JsonSerializer

The calling JsonSerializer .

Type Parameters

T

The type of the value to convert.

Return Value

String
A JSON String that is equivalent to value.

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

TcHmiJsonSerializer Class Serialize Overload TcHmiSrv.Core.Tools.Json.Newtonsoft Namespace

Copyright © Beckhoff Automation GmbH & Co. KG