-Fixed generating generic simple type names

-Changed JsonObjectAttribute to be compatible with structs
This commit is contained in:
JamesNK
2010-07-06 10:20:10 +00:00
parent c2800930ab
commit 08b8477f5e
9 changed files with 117 additions and 4 deletions
+2 -2
View File
@@ -161,10 +161,10 @@ namespace Newtonsoft.Json.Linq
/// </returns>
public override JEnumerable<JToken> Children()
{
return new JEnumerable<JToken>(ChildrenInternal());
return new JEnumerable<JToken>(GetValueEnumerable());
}
private IEnumerable<JToken> ChildrenInternal()
private IEnumerable<JToken> GetValueEnumerable()
{
yield return Value;
}