Permalink
Browse files

Adding distinct support for DynamicList

  • Loading branch information...
ayende committed Oct 14, 2011
1 parent 6986d52 commit 6a8760c6d520d24b644582b5a41f25965178ec79
Showing with 5 additions and 0 deletions.
  1. +5 −0 Raven.Abstractions/Linq/DynamicJsonObject.cs
@@ -273,6 +273,11 @@ public dynamic Single(Func<dynamic, bool> predicate)
return inner.Single(predicate);
}
+ public IEnumerable<dynamic> Distinct()
+ {
+ return new DynamicList(inner.Distinct().ToArray());
+ }
+
public dynamic SingleOrDefault(Func<dynamic, bool> predicate)
{
return inner.SingleOrDefault(predicate);

0 comments on commit 6a8760c

Please sign in to comment.