TcHmiJsonSerializer.Serialize Method (JsonWriter, Object, Type, JsonSerializerSettings)

Serializes the specified Object to an equivalent JSON String using the specified JsonWriter, Type and JsonSerializerSettings.

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

Syntax

C#

public static void Serialize(
    JsonWriter writer,
    Object value,
    Type type,
    JsonSerializerSettings settings
)

Parameters

writer

Type: JsonWriter
The JsonWriter that is used to write the JSON String.

value

Type: System.Object
The Object to convert.

type

Type: System.Type
The Type of the value being serialized. This parameter is used when TypeNameHandling is TypeNameHandling.Auto to write out the Type name if the Type of the value does not match. Specifying the Type is optional.

settings

Type: JsonSerializerSettings
The JsonSerializerSettings that will be used to serialize value or null to use the default JsonSerializerSettings.

Reference

TcHmiJsonSerializer Class

Serialize Overload

TcHmiSrv.Core.Tools.Json.Newtonsoft Namespace