D:\>type MyServer.js import System; import System.Runtime.InteropServices; public Guid("E65CFE0B-2F1E-45A4-9FBE-4CC1D2B20AE8") ProgId("MyServer.Sample") class MyServerSample { private var _property : int = 0; public function Method(s: String): int { Console.WriteLine(s); return s.Length; } public function get Property() : int { return _property; } public function set Property(n : int) { _property = n; } }