Skip to content

Commit ba7648e

Browse files
committed
Use TypeHelper.IsClosure() in AllocateParameterAndReplacer()
1 parent 51f7203 commit ba7648e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm/Orm/Internals/CompiledQueryRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private bool AllocateParameterAndReplacer()
200200
return null;
201201
});
202202

203-
return !closureType.Name.Contains("<>c__DisplayClass") // 'DisplayClass' is generated class for captured objects
203+
return !TypeHelper.IsClosure(closureType)
204204
|| closureType.GetFields().All(FieldIsSimple);
205205
}
206206

0 commit comments

Comments
 (0)