3 using Interfaces
= Mozilla
.XPCOM
.Interfaces
;
8 class TestCallback
: Mozilla
.XPCOM
.Interfaces
.testCallback
11 Console
.WriteLine("Callback invoked!");
15 public static void Main()
17 Interfaces
.test myTest
= (Interfaces
.test
)
18 Components
.CreateInstance("@off.net/test-component;1",
19 typeof(Interfaces
.test
));
20 Console
.WriteLine("3 + 5 = {0}", myTest
.Add(3, 5));
21 int before
= myTest
.IntProp
;
23 Console
.WriteLine("intProp: {0}, (= 99), {1}", before
, myTest
.IntProp
);
24 Console
.WriteLine("roIntProp: {0}", myTest
.RoIntProp
);
25 Console
.WriteLine("Invoking callback:");
26 TestCallback tcb
= new TestCallback();
28 Console
.WriteLine("Done!");