-Added serialization constructors to all Exceptions

-Added support for serialization event attributes on base classes
-Changed WriteEndObject, WriteEndArray, WriteEndConstructor on JsonWriter to be virtual
This commit is contained in:
JamesNK
2011-07-04 09:16:23 +00:00
parent b607b40753
commit c1cafd078d
9 changed files with 141 additions and 21 deletions
+4 -4
View File
@@ -246,7 +246,7 @@ namespace Newtonsoft.Json
/// <summary>
/// Writes the end of a Json object.
/// </summary>
public void WriteEndObject()
public virtual void WriteEndObject()
{
AutoCompleteClose(JsonToken.EndObject);
}
@@ -263,7 +263,7 @@ namespace Newtonsoft.Json
/// <summary>
/// Writes the end of an array.
/// </summary>
public void WriteEndArray()
public virtual void WriteEndArray()
{
AutoCompleteClose(JsonToken.EndArray);
}
@@ -281,7 +281,7 @@ namespace Newtonsoft.Json
/// <summary>
/// Writes the end constructor.
/// </summary>
public void WriteEndConstructor()
public virtual void WriteEndConstructor()
{
AutoCompleteClose(JsonToken.EndConstructor);
}
@@ -298,7 +298,7 @@ namespace Newtonsoft.Json
/// <summary>
/// Writes the end of the current Json object or array.
/// </summary>
public void WriteEnd()
public virtual void WriteEnd()
{
WriteEnd(Peek());
}