Search code examples
f#expression-treesquotations

Retrieving the F# code inside a Quotation


How can I get the original F# code inside a quotation?

I know that in C# Expression.ToString() gives a reasonable string but it's not 100% and doesn't work in F#.


Solution

  • I found the library Swensen.Unquote to give satisfactory results.