示例#1
0
文件: Program.cs 项目: Jichao/comtut
 static void ConnectionPointTest()
 {
     StringLib.StringObjClass obj = new StringLib.StringObjClass();
     obj.OnConcatResult += new StringLib._IStringEvent_OnConcatResultEventHandler(OnConcatResult);
     String result = obj.Concat("Hello", "World");
     System.Console.WriteLine(result);
 }
示例#2
0
文件: Program.cs 项目: Jichao/comtut
 static void EarlyBindig()
 {
     StringLib.StringObjClass obj = new StringLib.StringObjClass();
     String result = obj.Concat("Hello", "World");
     System.Console.WriteLine(result);
 }