委托动态注入一段代码
摘要:
using System;using System.Collections.Generic;using System.Text;namespace DelegateTest{ public class Writer { public string Text; public int Counter; public void Dump() { Console.WriteLine(Text); Counter++; } } class Program { public delegate void Delegate1(); static void Repeat10Times(Delegate1 som 阅读全文
posted @ 2011-05-09 22:59
易步行天
阅读(261)
评论(2)
推荐(0)
浙公网安备 33010602011771号