Skip to content

Commit a13eadd

Browse files
committed
Tweaked ExpressionStringBuilder to support Xor and Coalesce operators
This is a temporary solution. I will create a pull request to ExpressionToString and then update the package here.
1 parent 27b5209 commit a13eadd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TestStack.FluentMvcTesting/App_Packages/ExpressionStringBuilder.0.9.2/ExpressionStringBuilder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ private static string ToString(ExpressionType type)
266266
return "||";
267267
case ExpressionType.Subtract:
268268
return "-";
269+
case ExpressionType.Coalesce:
270+
return "??";
271+
case ExpressionType.ExclusiveOr:
272+
return "^";
269273
default:
270274
throw new NotImplementedException();
271275
}

0 commit comments

Comments
 (0)