I am developing an application which requires a dynamic scripting system. I am using CS-Script to host the script execution. I would like to use C#7 features in the scripts (i.e. local methods) but cannot as the CodeDom evaluator engine does not support C#7 out of the box. I would have to switch to the Roslyn engine for C#7 support. My application requires fast execution of scripts and Roslyn simply does not offer this (a simple script takes 100ms+ to execute with Roslyn compared to < 20ms with the CodeDom engine).
Is it possible to enable C#7 language support using the CodeDom engine in CS-Script and, if so, how?