Closed punitganshani closed 4 years ago
When we try this expression on demo site, it generates the Expression perfectly
Expression
When().Match<Customer>(() => customer)
But when we use Quoter in code it throws exception
Quoter
GetTokenForExpression(@" When().Match<Customer>(() => customer) "); private static void GetTokenForExpression(string expression) { var quoter = new Quoter { OpenParenthesisOnNewLine = true, ClosingParenthesisOnNewLine = true, UseDefaultFormatting = false, RemoveRedundantModifyingCalls = true, ShortenCodeWithUsingStatic = true }; var generatedNode = quoter.QuoteText(expression, NodeKind.Expression); }
What are the steps for me to reproduce this? And what's the callstack and type of the exception being thrown?
When we try this expression on demo site, it generates the
Expression
perfectlyBut when we use
Quoter
in code it throws exception