C# Класс Rock.Utility.RockJsonTextWriter

A JsonTextWriter that is aware of SerializeInSimpleMode AttributeCacheJsonConverter and AttributeValueJsonConverter use this to figure out how they should serialize
Наследование: Newtonsoft.Json.JsonTextWriter
Показать файл Открыть проект

Открытые методы

Метод Описание
RockJsonTextWriter ( System textWriter, bool serializeInSimpleMode ) : System

Initializes a new instance of the RockJsonTextWriter class.

SerializeObjectInSimpleMode ( object value, Formatting formatting, JsonSerializerSettings jsonSettings ) : string

Serializes the object in simple mode.

Описание методов

RockJsonTextWriter() публичный Метод

Initializes a new instance of the RockJsonTextWriter class.
public RockJsonTextWriter ( System textWriter, bool serializeInSimpleMode ) : System
textWriter System The text writer.
serializeInSimpleMode bool if set to true [serialize in simple mode].
Результат System

SerializeObjectInSimpleMode() публичный статический Метод

Serializes the object in simple mode.
public static SerializeObjectInSimpleMode ( object value, Formatting formatting, JsonSerializerSettings jsonSettings ) : string
value object The value.
formatting Formatting The formatting.
jsonSettings Newtonsoft.Json.JsonSerializerSettings The json settings.
Результат string