子曾经曰过

  博客园  :: 首页  ::  ::  ::  :: 管理

2011年2月24日

摘要: 有这么一句话,把方法传递给其他方法,需要使用委托。什么意思呢?委托是方法的类型安全的引用。参数倒知道,把参数传递给其他方法,这个方法传递给其他方法,是怎么回事呢?using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;namespace DelegateStudyWell{ class Program { public delegate int TakesAWhileDelegate(int data, int ms); static vo 阅读全文
posted @ 2011-02-24 11:34 人的本质是什么? 阅读(649) 评论(0) 推荐(0) 编辑

摘要: IService1.csView Code using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.Text;namespace WcfWithEvent{ public enum EventType { Event1 = 1, Event2 = 2, Event3 = 3, AllEvents = Event1 | Event2 | Event3 } // 注意: 如果更改此 阅读全文
posted @ 2011-02-24 00:50 人的本质是什么? 阅读(446) 评论(0) 推荐(0) 编辑