Inherited by JsonExSerializer.SerializerHelper.
Public Member Functions | |
| JsonWriter (TextWriter writer, bool indent) | |
| IJsonWriter | ConstructorStart (string NamespaceAndClass) |
| Starts a constructed object with the given type information. | |
| IJsonWriter | ConstructorStart (string NamespaceAndClass, string Assembly) |
| Starts a constructed object. | |
| IJsonWriter | ConstructorStart (Type constructorType) |
| Starts a constructed object. | |
| IJsonWriter | ConstructorArgsStart () |
| Starts the arguments for a constructed object. | |
| IJsonWriter | ConstructorArgsEnd () |
| Ends the arguments for a constructed object. | |
| IJsonWriter | ConstructorEnd () |
| Ends the constructed object. | |
| IJsonWriter | ObjectStart () |
| Starts an object. | |
| IJsonWriter | Key (string key) |
| IJsonWriter | ObjectEnd () |
| Ends an object definition. | |
| IJsonWriter | ArrayStart () |
| Starts an array sequence. | |
| IJsonWriter | ArrayEnd () |
| Ends an array. | |
| IJsonWriter | Value (bool value) |
| Writes a boolean value. | |
| IJsonWriter | Value (long value) |
| Writes a long value. | |
| IJsonWriter | Value (double value) |
| Writes a double value. | |
| IJsonWriter | Value (float value) |
| Writes a float value. | |
| IJsonWriter | QuotedValue (string value) |
| Writes a quoted value. | |
| IJsonWriter | SpecialValue (string value) |
| Writes a special string value that is not quoted such as null, or some other keyword. | |
| IJsonWriter | Comment (string comment) |
| Writes a comment. The comment characters /*. | |
| IJsonWriter | Cast (Type castedType) |
| Writes an object cast (MyClass) ... | |
| IJsonWriter | Cast (string NamespaceAndClass) |
| Writes an object cast with the type name specified as a string. The NamespaceAndClass contains the class name and possibly the Namespace but no assembly. (MyNamespace.MyClass) ... | |
| IJsonWriter | Cast (string NamespaceAndClass, string Assembly) |
| Writes an object cast with the fully qualified type name and assemble reference ("MyNamespace.MyClass, MyAssembly") ... | |
| abstract IJsonWriter | WriteObject (object value) |
| Serializes any type of object completely. | |
| void | Dispose () |
Protected Types | |
| enum | OpType |
Protected Member Functions | |
| void | WriteIndent () |
| void | WriteLineBreak () |
| void | WriteQuotedString (string value) |
| void | WriteEscapedString (string s) |
| abstract void | WriteTypeInfo (Type t) |
| Writes out the type for an object in regular C# code syntax. | |
| virtual void | WriteTypeInfo (string NamespaceAndClass) |
| Writes out the type info specified by the NamespaceAndClass string. | |
| virtual void | WriteTypeInfo (string NamespaceAndClass, string assembly) |
| Writes out the type info specified by the NamespaceAndClass string and assembly. | |
Protected Attributes | |
| TextWriter | _writer |
| short | indentLevel = 0 |
| short | indentSize = 4 |
Classes | |
| class | ArrayState |
| State when an array is in progress. | |
| class | CtorArgsState |
| State when an constructor args are in progress. | |
| class | CtorState |
| State when a constructor is in progress. | |
| class | DoneState |
| class | InitialState |
| The initial state of the writer. | |
| interface | IState |
| class | KeyState |
| class | ObjectState |
| State when a javascript object is in progress. | |
| class | StateBase |
| Base class for states, implements helper functions for transitions. | |
enum JsonExSerializer::JsonWriter::OpType [protected] |
| JsonExSerializer.JsonWriter.JsonWriter | ( | TextWriter | writer, | |
| bool | indent | |||
| ) |
| void JsonExSerializer.JsonWriter.WriteIndent | ( | ) | [protected] |
| void JsonExSerializer.JsonWriter.WriteLineBreak | ( | ) | [protected] |
| IJsonWriter JsonExSerializer.JsonWriter.ConstructorStart | ( | string | NamespaceAndClass | ) |
Starts a constructed object with the given type information.
| NamespaceAndClass | The fully-qualified class name without assembly reference |
Implements JsonExSerializer.IJsonWriter.
| IJsonWriter JsonExSerializer.JsonWriter.ConstructorStart | ( | string | NamespaceAndClass, | |
| string | Assembly | |||
| ) |
Starts a constructed object.
| NamespaceAndClass | The fully-qualified class name without assembly reference | |
| Assembly | The assembly name |
Implements JsonExSerializer.IJsonWriter.
| IJsonWriter JsonExSerializer.JsonWriter.ConstructorStart | ( | Type | constructorType | ) |
Starts a constructed object.
| constructorType |
Implements JsonExSerializer.IJsonWriter.
| IJsonWriter JsonExSerializer.JsonWriter.ConstructorArgsStart | ( | ) |
| IJsonWriter JsonExSerializer.JsonWriter.ConstructorArgsEnd | ( | ) |
| IJsonWriter JsonExSerializer.JsonWriter.ConstructorEnd | ( | ) |
| IJsonWriter JsonExSerializer.JsonWriter.ObjectStart | ( | ) |
| IJsonWriter JsonExSerializer.JsonWriter.Key | ( | string | key | ) |
Implements JsonExSerializer.IJsonWriter.
| IJsonWriter JsonExSerializer.JsonWriter.ObjectEnd | ( | ) |
Ends an object definition.
Implements JsonExSerializer.IJsonWriter.
| IJsonWriter JsonExSerializer.JsonWriter.ArrayStart | ( | ) |
| IJsonWriter JsonExSerializer.JsonWriter.ArrayEnd | ( | ) |
| IJsonWriter JsonExSerializer.JsonWriter.Value | ( | bool | value | ) |
| IJsonWriter JsonExSerializer.JsonWriter.Value | ( | long | value | ) |
| IJsonWriter JsonExSerializer.JsonWriter.Value | ( | double | value | ) |
| IJsonWriter JsonExSerializer.JsonWriter.Value | ( | float | value | ) |
| IJsonWriter JsonExSerializer.JsonWriter.QuotedValue | ( | string | value | ) |
| IJsonWriter JsonExSerializer.JsonWriter.SpecialValue | ( | string | value | ) |
Writes a special string value that is not quoted such as null, or some other keyword.
| value | the value to write |
Implements JsonExSerializer.IJsonWriter.
| IJsonWriter JsonExSerializer.JsonWriter.Comment | ( | string | comment | ) |
| void JsonExSerializer.JsonWriter.WriteQuotedString | ( | string | value | ) | [protected] |
| void JsonExSerializer.JsonWriter.WriteEscapedString | ( | string | s | ) | [protected] |
| abstract void JsonExSerializer.JsonWriter.WriteTypeInfo | ( | Type | t | ) | [protected, pure virtual] |
Writes out the type for an object in regular C# code syntax.
| t | the type to write |
Implemented in JsonExSerializer.SerializerHelper.
| virtual void JsonExSerializer.JsonWriter.WriteTypeInfo | ( | string | NamespaceAndClass | ) | [protected, virtual] |
Writes out the type info specified by the NamespaceAndClass string.
| NamespaceAndClass | the fully-qualified type with namespace and class, but not assembly |
| virtual void JsonExSerializer.JsonWriter.WriteTypeInfo | ( | string | NamespaceAndClass, | |
| string | assembly | |||
| ) | [protected, virtual] |
Writes out the type info specified by the NamespaceAndClass string and assembly.
| NamespaceAndClass | the fully-qualified type with namespace and class, but not assembly | |
| assembly | The assembly for the type |
| IJsonWriter JsonExSerializer.JsonWriter.Cast | ( | Type | castedType | ) |
Writes an object cast (MyClass) ...
| castedType | The type for the cast |
Implements JsonExSerializer.IJsonWriter.
| IJsonWriter JsonExSerializer.JsonWriter.Cast | ( | string | NamespaceAndClass | ) |
Writes an object cast with the type name specified as a string. The NamespaceAndClass contains the class name and possibly the Namespace but no assembly. (MyNamespace.MyClass) ...
| NamespaceAndClass | The fully-qualified class name without assembly reference |
Implements JsonExSerializer.IJsonWriter.
| IJsonWriter JsonExSerializer.JsonWriter.Cast | ( | string | NamespaceAndClass, | |
| string | Assembly | |||
| ) |
Writes an object cast with the fully qualified type name and assemble reference ("MyNamespace.MyClass, MyAssembly") ...
| NamespaceAndClass | The fully-qualified class name without assembly reference | |
| Assembly | The assembly name |
Implements JsonExSerializer.IJsonWriter.
| abstract IJsonWriter JsonExSerializer.JsonWriter.WriteObject | ( | object | value | ) | [pure virtual] |
Serializes any type of object completely.
| value | the object to write |
Implements JsonExSerializer.IJsonWriter.
Implemented in JsonExSerializer.SerializerHelper.
| void JsonExSerializer.JsonWriter.Dispose | ( | ) |
TextWriter JsonExSerializer.JsonWriter._writer [protected] |
short JsonExSerializer.JsonWriter.indentLevel = 0 [protected] |
short JsonExSerializer.JsonWriter.indentSize = 4 [protected] |
1.5.2