Permalink
Browse files

GetSerializationInfoMember now tests directly whether the containing …

…expression is the parameter of the where clause, rather than deducing that indirectly based on the type of the containing expression.
  • Loading branch information...
1 parent 28c9bf0 commit 5bb1538e2ca7ef1a0bb24c6eec4185d72c981c3a rstam committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Driver/Linq/Translators/SelectQuery.cs
@@ -1039,7 +1039,7 @@ private BsonSerializationInfo GetSerializationInfoMember(IBsonSerializer seriali
var memberName = memberExpression.Member.Name;
var containingExpression = memberExpression.Expression;
- if (containingExpression.Type == DocumentType)
+ if (containingExpression.NodeType == ExpressionType.Parameter)
{
try
{

0 comments on commit 5bb1538

Please sign in to comment.