摘要:
今天看到博客园一篇文章写抽象类实例化,net framework是ms的,我改不了abstract。但是抽象类是可以做出实例化效果的。为了增强记忆,把代码抄一遍吧!protected sealed override Delegate CombineImp(Delegate follow){ if(base.GetType()!=follow.GetType()) { throw new Exception(); } Delegate delegate2=(MulticastDelegate)((MulticastDelegate)follow).MemberwiseClone()... 阅读全文
posted @ 2012-04-06 19:26
szjdw
阅读(147)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Class1 { static void Main(System.String[] args) { Set.Feedback fb= new Set.Feedback(Class1.FeedbackToConsole); for (System.Int32 i = 0; i < 5;i++ ) { new Set(3).ProcessingItem(fb 阅读全文
posted @ 2012-04-06 11:26
szjdw
阅读(199)
评论(0)
推荐(0)
摘要:
方法一:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Class1 { static void Main(System.String[] args) { for (System.Int32 i = 0; i < 5;i++ ) { new Set(3).ProcessingItem(Class1.FeedbackToConsole); } Console.Read(); } static void 阅读全文
posted @ 2012-04-06 10:51
szjdw
阅读(285)
评论(0)
推荐(0)
浙公网安备 33010602011771号