- What is C# Eval?
- CSharp Eval uses .NET Reflection to allow the user to execute arbitrary C# statements at runtime. It has access to the current environment and allows using variables and methods within that environment. It is comparable to having an eval function that comes with most scripting languages. CSharp eval can be used in any .NET project regardless of the language, however, it will only evaluate a string formatted as C# code. The ANTLR engine is used along with a custom grammar file designed to interpret many common C# constructs as well as some useful extensions to the language. This project can be used as is with minimal effort or as part of a larger project such as our XNA version, XNA Debug Terminal. Please note any license restrictions before using, however.
- How do I use it?
- Go to the How To section for more information on downloading and setting up C# eval.
- Who can use it?
- Anyone using Visual Studio may use this project. Note that this was designed in Visual Studio 2010 and hasn't been tested in other versions.
- License Information
- This program is protected under the Apache License Version 2.0. A copy of this license is also included in all version downloads in a file called COPYING.