C# As a Scripting Language in your .NET Applications – Using
Mono’s Compiler As a Service   Vote on HN  image Note: This is
the third article in the series. In the first two articles, I
explained   In this post, we’ll see how to use C# as a scripting
language in your .NET applications. Let us start with a very
minimal game application, where you have two players, and your
users can control these players by writing some script.  In the
previous post, I explained how to create a delegate/predicate
from Mono’s Evaluator and pass it back to the Main application,
so that we can use the predicate for custom filtering
operations. Now, What is interesting in below code is, how we
are passing the context information from the main application to
Mono’s Evaluator, so that the objects from the main applications
can be accessed via Mono’s Evaluator for scripting.  C# For
Scripting  So here we go. Have a look at this entire
implementation first. Fire up a console project in Visual
Studio, add a reference to Mono.CSharp.dll