File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
src/MongoDB.Driver/Linq/Linq3Implementation/SerializerFinders Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,6 @@ static IBsonSerializer GetConvertEnumToEnumSerializer(UnaryExpression expression
193193 throw new ExpressionNotSupportedException ( expression , because : "target type is not an enum" ) ;
194194 }
195195
196- // TODO: throwing here breaks client-side projections
197- // if (sourceSerializer is IHasRepresentationSerializer sourceHasRepresentationSerializer &&
198- // !SerializationHelper.IsNumericRepresentation(sourceHasRepresentationSerializer.Representation))
199- // {
200- // throw new ExpressionNotSupportedException(expression, because: "source enum is not represented as a number");
201- // }
202-
203196 return EnumSerializer . Create ( targetType ) ;
204197 }
205198
You can’t perform that action at this time.
0 commit comments