Skip to content

Commit b0aab83

Browse files
committed
pr
1 parent 282e677 commit b0aab83

2 files changed

Lines changed: 1 addition & 26 deletions

File tree

src/MongoDB.Driver/Linq/Linq3Implementation/Misc/MemberInfoExtensions.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/MongoDB.Driver/Linq/Linq3Implementation/SerializerFinders/SerializerFinderVisitMember.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected override Expression VisitMember(MemberExpression node)
4646

4747
var resultSerializer = node.Member switch
4848
{
49-
_ when typeof(BsonDocument).IsAssignableFrom(declaringType) && !node.Member.IsIndexer() => UnknowableSerializer.Create(node.Type), // we do not support translation of BsonDocument properties other than indexer
49+
_ when typeof(BsonDocument).IsAssignableFrom(declaringType) => UnknowableSerializer.Create(node.Type), // we do not support translation of BsonDocument properties
5050
_ when declaringType == typeof(BsonValue) => GetBsonValuePropertySerializer(),
5151
_ when IsCollectionCountOrLengthProperty() => GetCollectionCountOrLengthPropertySerializer(),
5252
_ when declaringType == typeof(DateTime) => GetDateTimePropertySerializer(),

0 commit comments

Comments
 (0)