WriteFirstProperty() private method

Writes the first property to the underlying stream.
private WriteFirstProperty ( string name, object val ) : void
name string
val object
return void
コード例 #1
0
ファイル: JsonSerializer.cs プロジェクト: notesjor/numl
 /// <summary>
 ///   Writes the opening as well as any static content.
 /// </summary>
 /// <param name="writer"></param>
 public void PreWrite(JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WriteFirstProperty(SERIALIZER_ATTRIBUTE, GetType().FullName);
 }
コード例 #2
0
ファイル: JsonSerializer.cs プロジェクト: sethjuarez/numl
 /// <summary>
 /// Writes the opening as well as any static content.
 /// </summary>
 /// <param name="writer"></param>
 public void PreWrite(JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WriteFirstProperty(SERIALIZER_ATTRIBUTE, GetType().FullName);
 }