supporting equality comparer :)

This commit is contained in:
David Lebée
2018-03-12 18:00:02 -05:00
parent 165cc15d0a
commit 9dd5d59b85
6 changed files with 52 additions and 15 deletions
@@ -10,6 +10,7 @@ namespace PoweredSoft.DynamicLinq.Fluent
public List<(string path, string propertyName)> Parts { get; set; } = new List<(string path, string propertyName)>();
public Type Type { get; set; }
public bool Empty => !Parts.Any();
public Type EqualityComparerType { get; set; }
public GroupBuilder Path(string path, string propertyName = null)
{
@@ -37,5 +38,11 @@ namespace PoweredSoft.DynamicLinq.Fluent
Type = type;
return this;
}
public GroupBuilder EqualityComparer(Type type)
{
EqualityComparerType = type;
return this;
}
}
}