
I am trying to use the SyntaxEditor + c# addon as a Roslyn script textbox.
To accomplish this, I try to wrap the expression body in a dummy footer/header that is ignored by the Roslyn script compiler
Document.SetHeaderAndFooterText(
@"using System;class _class_{static void _main_(){return ",
@"}}");
This seems to work, but does feel like a nasty hack.
Is there any other better way of getting the same result?
A problem with my approach is that the dummy "_class_" and "_main_" identifiers show up in the intellisense completion box.
Is there a way to ignore these entries?