Category: Javascript

  • JScript.Net and C# Interaction

    // lib.cs: using System; namespace Library {   public class TestLib {     public static void speak(){        Console.WriteLine(“Hello From CSharp Dll”);     }   } } // hello.js import System; import Library; var a = {name:’JScript Object in Exe’}; a.foo = function (){   Console.WriteLine(‘Hello From ‘ + this.name); }; a.foo(); TestLib.speak(); Compiling: 1. […]