Skip to content

Commit 5bb1538

Browse files
author
rstam
committed
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.
1 parent 28c9bf0 commit 5bb1538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Driver/Linq/Translators/SelectQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ private BsonSerializationInfo GetSerializationInfoMember(IBsonSerializer seriali
10391039
var memberName = memberExpression.Member.Name;
10401040

10411041
var containingExpression = memberExpression.Expression;
1042-
if (containingExpression.Type == DocumentType)
1042+
if (containingExpression.NodeType == ExpressionType.Parameter)
10431043
{
10441044
try
10451045
{

0 commit comments

Comments
 (0)