Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding distinct support for DynamicList

  • Loading branch information...
commit 6a8760c6d520d24b644582b5a41f25965178ec79 1 parent 6986d52
@ayende ayende authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Raven.Abstractions/Linq/DynamicJsonObject.cs
View
5 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);
Please sign in to comment.
Something went wrong with that request. Please try again.