Use Script# to compile code (stand-alone)
问题 I'm trying to compile small fragments of C# into JavaScript using the Script# compiler. But I don't get anything in return, GetStream() in my MemoryStreamSource is not even being called, so I must be doing something wrong. Here's my code: CodeScriptCompiler csc = new CodeScriptCompiler(); return csc.CompileCSharp("String.IsNullOrWhiteSpace(Model.MobilePhoneNumber)"); CodeScriptCompiler.cs using System; using System.Collections.Generic; using ScriptSharp; namespace CodeToScriptCompiler {