Note: This is the third article in the series. In the first two articles, I explainedHow To Host Mono’s C# Compiler as a Service in .NET for Run time code evaluationDynamic Filtering and Querying in Your .NET applications - Using Mono’s C# Compiler As ServicePrefaceIn 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 ScriptingSo here we go. Have a look at this entire implementati…