ChallengeC# Rewriting

time to read 1 min | 87 words

Here is an interesting one. Can you write code that would take the first piece of text and would turn it into the second piece of text?

First (not compiling)


Second (compiling):


Hint, you can use NRefactory to do the C# parsing.

More posts in "Challenge" series:

  1. (03 Jan 2020) Spot the bug in the stream–answer
  2. (15 Feb 2010) Where is the optimization?