摘要:
1 delegate void MoveEventHandle(object source,MoveEventArgs e); 2 public class MoveEventArgs:EventArgs 3 { 4 public int newPosition; 5 public bool cancel; 6 public MoveEventArgs(int newposition) 7 { 8 this.newPosition=newposition; 9 }10 }11 class Slider12 {13 int position;14 public event MoveEventH. 阅读全文
posted @ 2013-07-24 14:19
drakeTT
阅读(190)
评论(0)
推荐(0)
摘要:
1 delegate bool Filter(string s); 2 class test 3 { 4 static void Main() 5 { 6 Filter f=new Filter(A); 7 Display(new string[]{"ant","line","yok"},f); 8 } 9 static bool A(string s)10 {11 return "N".CompareTo(s)>0;12 }13 static void Display(string[] Names,Filt 阅读全文
posted @ 2013-07-24 13:45
drakeTT
阅读(175)
评论(0)
推荐(0)
浙公网安备 33010602011771号