How to call C# from JScript.net?
问题 I read that, for the newest Java, Javascript on Java can call or import java packages easily. In the newest .NET, can JScript.net call C# functions easily? For details, I am asking not about compiled JScript.net code, but about non-compiled JScript.net string code which is run on the script engine. 回答1: Here is an example: 1) CS file with a simple calls and method that returns a string. 2) js file that calls the CS method using eval. // cstest.cs - compile as library using System; namespace