We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1edccd commit db5c55cCopy full SHA for db5c55c
src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs
@@ -561,13 +561,7 @@ internal override Expression VisitConstant(ConstantExpression c)
561
562
try
563
{
564
- object currentValue = item;
565
- if (item.GetType().IsEnum)
566
- {
567
- currentValue = item.ToString();
568
- }
569
-
570
- uriLiteral = LiteralFormatter.ForConstants.Format(currentValue);
+ uriLiteral = LiteralFormatter.ForConstants.Format(item);
571
}
572
catch (InvalidOperationException)
573
0 commit comments