-Added IJEnumerable. Changed JEnumerable and JToken to both implement IJEnumerable.

-Included missing JsonConverters from Newtonsoft.Json.Silverlight project.
This commit is contained in:
JamesNK
2008-08-23 04:56:24 +00:00
parent a6662b595d
commit c7d99fbd3f
5 changed files with 38 additions and 9 deletions
+6 -1
View File
@@ -38,7 +38,7 @@ namespace Newtonsoft.Json.Linq
/// <summary>
/// Represents an abstract JSON token.
/// </summary>
public abstract class JToken : IEnumerable<JToken>
public abstract class JToken : IJEnumerable<JToken>
{
private JContainer _parent;
internal JToken _next;
@@ -723,5 +723,10 @@ namespace Newtonsoft.Json.Linq
}
internal abstract int GetDeepHashCode();
IJEnumerable<JToken> IJEnumerable<JToken>.this[object key]
{
get { return Children()[key]; }
}
}
}