摘要:server publicstaticvoidStart(){Hashtableht=newHashtable();ht["port"]="8899";ht["name"]="Server";ht["authorizedGroup"]="Everyone";GameService.Messge("注册TCP");try{TcpChannelchannel=newTcpChannel(ht,null,null);ChannelServices.Registe 阅读全文
posted @ 2011-05-10 16:24 小小部落 阅读 (75) 评论 (0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace test{ public delegate void EventHandler(int i); interface IMethod { void Add(); } class C : IMethod { public void Add() { Console.WriteLine("implements Imethod"); } void aaa() { } } class A { public 阅读全文
posted @ 2011-05-10 16:20 小小部落 阅读 (59) 评论 (0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace test{ //猫叫,老鼠逃跑,主人惊醒 class Program { static void Main(string[] args) { Cat c = new Cat("加菲猫"); Mouse m = new Mouse("米老鼠"); Person p = new Person("汤姆"); c.MyEvent += new NumberCha 阅读全文
posted @ 2011-05-10 14:36 小小部落 阅读 (140) 评论 (0) 编辑