advancing but not there yet.

This commit is contained in:
David Lebee
2018-03-22 23:34:46 -05:00
parent 9f7e8bfc4e
commit 406290df78
3 changed files with 14 additions and 4 deletions
@@ -213,8 +213,8 @@ namespace PoweredSoft.DynamicLinq.Helpers
var notGroupedType = expr.Type.GenericTypeArguments.FirstOrDefault();
if (notGroupedType == null)
throw new Exception($"Path must be a Enumerable<T> but its a {expr.Type}");
var body = Expression.Call(typeof(Enumerable), "ToList", new[] { notGroupedType }, expr);
var body = Expression.Call(typeof(Enumerable), "ToList", new[] { notGroupedType }, expr) as Expression;
return body;
}