 <p>The Microsoft project "Roslyn" may be the key term you're looking for here. It's a C# and VB.NET compiler that will allow you to extend the language if that's what you'd like to experiment with. </p> <blockquote> <p>The .NET Compiler Platform ("Roslyn") provides open-source C# and Visual Basic compilers with rich code analysis APIs.</p> </blockquote> <p>The source code can be found on GitHub here: <a href="https://github.com/dotnet/roslyn">https://github.com/dotnet/roslyn</a></p> <p>Doing a quick google, I found <a href="http://ntrush.blogspot.co.nz/2012/12/extending-c-using-roslyn-project.html">this blog post</a> which goes through an example (albeit, this was an old post, so things may have changed).</p>