C# Class Rock.Utility.RockJsonTextWriter

A JsonTextWriter that is aware of SerializeInSimpleMode AttributeCacheJsonConverter and AttributeValueJsonConverter use this to figure out how they should serialize
Inheritance: Newtonsoft.Json.JsonTextWriter
Afficher le fichier Open project: NewSpring/Rock

Méthodes publiques

Méthode Description
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.

Method Details

RockJsonTextWriter() public méthode

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].
Résultat System

SerializeObjectInSimpleMode() public static méthode

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.
Résultat string