Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamesNK <james@newtonking.com>2009-06-19 16:37:49 +0400
committerJamesNK <james@newtonking.com>2009-06-19 16:37:49 +0400
commit6b19c9cf7246f5cea69953ce779795ac1d268b6f (patch)
treec19f2c1a47da8e1cb65f1b8c3c890e26fa4b686a /Src/Newtonsoft.Json.Tests/TestObjects/Shortie.cs
parent67654ec106dd7332ef89671e409b90784ba6f342 (diff)
-More documentation
-Changed CustomCreationConverter to throw NotImplementedException when serializing
Diffstat (limited to 'Src/Newtonsoft.Json.Tests/TestObjects/Shortie.cs')
-rw-r--r--Src/Newtonsoft.Json.Tests/TestObjects/Shortie.cs24
1 files changed, 4 insertions, 20 deletions
diff --git a/Src/Newtonsoft.Json.Tests/TestObjects/Shortie.cs b/Src/Newtonsoft.Json.Tests/TestObjects/Shortie.cs
index 13aff87..f1691ec 100644
--- a/Src/Newtonsoft.Json.Tests/TestObjects/Shortie.cs
+++ b/Src/Newtonsoft.Json.Tests/TestObjects/Shortie.cs
@@ -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; }
}
} \ No newline at end of file