Свойство | Type | Description | |
---|---|---|---|
GetFlagList | System.Enum[] | ||
IsDefaultValue | bool | ||
IsIgnored | bool | ||
WriteObjectProperty | void |
Méthode | Description | |
---|---|---|
IDisposable ( ) : void | ||
JsonWriter ( System.Stream output ) : System |
Ctor
|
|
JsonWriter ( System.Stream output, |
Ctor
|
|
JsonWriter ( System.StringBuilder output ) : System |
Ctor
|
|
JsonWriter ( System.StringBuilder output, |
Ctor
|
|
JsonWriter ( TextWriter output ) : System |
Ctor
|
|
JsonWriter ( TextWriter output, |
Ctor
|
|
JsonWriter ( string outputFileName ) : System |
Ctor
|
|
JsonWriter ( string outputFileName, |
Ctor
|
|
Serialize ( object value ) : string |
A helper method for serializing an object to JSON
|
|
Write ( System.DateTime value ) : void | ||
Write ( |
||
Write ( System.Guid value ) : void | ||
Write ( System.TimeSpan value ) : void | ||
Write ( |
||
Write ( System.Version value ) : void | ||
Write ( bool value ) : void | ||
Write ( byte value ) : void | ||
Write ( char value ) : void | ||
Write ( decimal value ) : void | ||
Write ( double value ) : void | ||
Write ( float value ) : void | ||
Write ( int value ) : void | ||
Write ( long value ) : void | ||
Write ( object value ) : void | ||
Write ( sbyte value ) : void | ||
Write ( short value ) : void | ||
Write ( string value ) : void | ||
Write ( uint value ) : void | ||
Write ( ulong value ) : void | ||
Write ( ushort value ) : void | ||
WriteBase64 ( byte value ) : void | ||
WriteHexString ( byte value ) : void |
Méthode | Description | |
---|---|---|
InvalidIeee754 ( decimal value ) : bool |
Determines if a numberic value cannot be represented as IEEE-754.
|
|
Write ( object value, bool isProperty ) : void | ||
WriteArray ( IEnumerable value ) : void | ||
WriteArrayItem ( object item ) : void | ||
WriteArrayItemDelim ( ) : void | ||
WriteDictionary ( IEnumerable value ) : void | ||
WriteLine ( ) : void | ||
WriteObject ( IDictionary value ) : void | ||
WriteObject ( object value, |
||
WriteObjectPropertyDelim ( ) : void | ||
WriteObjectPropertyName ( string name ) : void | ||
WriteObjectPropertyValue ( object value ) : void |
Méthode | Description | |
---|---|---|
GetFlagList ( |
Splits a bitwise-OR'd set of enums into a list. from PseudoCode.EnumHelper |
|
IsDefaultValue ( MemberInfo member, object value ) : bool |
Determines if the member value matches the DefaultValue attribute
|
|
IsIgnored ( |
Determines if the property or field should not be serialized. Checks these in order, if any returns true then this is true: - is flagged with the JsonIgnoreAttribute property - has a JsonSpecifiedProperty which returns false |
|
WriteObjectProperty ( string key, object value ) : void |
protected InvalidIeee754 ( decimal value ) : bool | ||
value | decimal | |
Résultat | bool |
public JsonWriter ( System.Stream output ) : System | ||
output | System.Stream | Stream for writing |
Résultat | System |
public JsonWriter ( System.Stream output, |
||
output | System.Stream | Stream for writing |
settings | JsonWriterSettings | |
Résultat | System |
public JsonWriter ( System.StringBuilder output ) : System | ||
output | System.StringBuilder | StringBuilder for appending |
Résultat | System |
public JsonWriter ( System.StringBuilder output, |
||
output | System.StringBuilder | StringBuilder for appending |
settings | JsonWriterSettings | |
Résultat | System |
public JsonWriter ( TextWriter output ) : System | ||
output | TextWriter | TextWriter for writing |
Résultat | System |
public JsonWriter ( TextWriter output, |
||
output | TextWriter | TextWriter for writing |
settings | JsonWriterSettings | |
Résultat | System |
public JsonWriter ( string outputFileName ) : System | ||
outputFileName | string | |
Résultat | System |
public JsonWriter ( string outputFileName, |
||
outputFileName | string | |
settings | JsonWriterSettings | |
Résultat | System |
public static Serialize ( object value ) : string | ||
value | object | |
Résultat | string |
public Write ( System.DateTime value ) : void | ||
value | System.DateTime | |
Résultat | void |
public Write ( System.TimeSpan value ) : void | ||
value | System.TimeSpan | |
Résultat | void |
public Write ( System.Version value ) : void | ||
value | System.Version | |
Résultat | void |
protected Write ( object value, bool isProperty ) : void | ||
value | object | |
isProperty | bool | |
Résultat | void |
protected WriteArray ( IEnumerable value ) : void | ||
value | IEnumerable | |
Résultat | void |
protected WriteArrayItem ( object item ) : void | ||
item | object | |
Résultat | void |
protected WriteDictionary ( IEnumerable value ) : void | ||
value | IEnumerable | |
Résultat | void |
public WriteHexString ( byte value ) : void | ||
value | byte | |
Résultat | void |
protected WriteObject ( IDictionary value ) : void | ||
value | IDictionary | |
Résultat | void |
protected WriteObject ( object value, |
||
value | object | |
type | ||
Résultat | void |
protected WriteObjectPropertyDelim ( ) : void | ||
Résultat | void |
protected WriteObjectPropertyName ( string name ) : void | ||
name | string | |
Résultat | void |
protected WriteObjectPropertyValue ( object value ) : void | ||
value | object | |
Résultat | void |