Skip to content

Commit

Permalink
Fix Bug "Sequence Contains More Than One Element"
Browse files Browse the repository at this point in the history
Fix bug "Sequence Contains More Than One Element"
  • Loading branch information
acymiranda committed Mar 18, 2015
1 parent ef14ba4 commit 0c7ff8a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -34,7 +34,7 @@ protected override Expression VisitMethodCall(MethodCallExpression node)
let g = x.Param.GetGenericTypeDefinition()
where g == typeof(IEnumerable<>) || g == typeof(List<>)
where x.Arg.NodeType == ExpressionType.Constant
let elementType = x.Param.GetGenericArguments().Single()
let elementType = x.Param.GetGenericArguments().First()
let printer = MakePrinter((ConstantExpression)x.Arg, elementType)
select new { x.Arg, Replacement = printer }).ToList();

Expand Down

0 comments on commit 0c7ff8a

Please sign in to comment.