diff Source/Data/Linq/Builder/ExpressionBuilder.cs @ 6:11b6da379593

Исправлена странная ошибка при использовании OfType<...>().Where(...)
author cin
date Mon, 05 Dec 2016 05:50:52 +0300
parents f7d63a092920
children
line wrap: on
line diff
--- a/Source/Data/Linq/Builder/ExpressionBuilder.cs	Tue Mar 10 16:02:11 2015 +0300
+++ b/Source/Data/Linq/Builder/ExpressionBuilder.cs	Mon Dec 05 05:50:52 2016 +0300
@@ -692,7 +692,7 @@
 			if (sequence != method.Arguments[0] || predicate != method.Arguments[1])
 			{
 				var methodInfo  = method.Method.GetGenericMethodDefinition();
-                var queryableType = sequence.Type.GetInterface(typeof(IQueryable<>).Name);
+                var queryableType = sequence.Type.GetInterface(typeof(IEnumerable<>).Name);
                 var genericType = queryableType.GetGenericArguments()[0];
 				var newMethod   = methodInfo.MakeGenericMethod(genericType);