-More documentation

-Changed CustomCreationConverter to throw NotImplementedException when serializing
This commit is contained in:
JamesNK
2009-06-19 12:37:49 +00:00
parent 67654ec106
commit 6b19c9cf72
12 changed files with 275 additions and 31 deletions
@@ -6,33 +6,17 @@ using System.Xml.Serialization;
namespace Newtonsoft.Json.Tests.TestObjects
{
[XmlRoot("short")]
[JsonObject(MemberSerialization.OptIn)]
public class Shortie
{
[JsonProperty("original")]
[XmlElement("original")]
public String Original { get; set; }
[JsonProperty("shortened")]
[XmlElement("shortened")]
public String Shortened { get; set; }
[JsonProperty("short")]
[XmlElement("short")]
public String Short { get; set; }
public string Original { get; set; }
public string Shortened { get; set; }
public string Short { get; set; }
public ShortieException Error { get; set; }
}
public class ShortieException
{
[JsonProperty("code")]
[XmlElement("code")]
public int Code { get; set; }
[JsonProperty("msg")]
[XmlElement("msg")]
public String ErrorMessage { get; set; }
public string ErrorMessage { get; set; }
}
}