摘要:
1.扩展方法必须在非泛型静态类中定义2.扩展方法必须是静态的3.不能在静态类中声明实例成员public static class PubMethod { public static string GetIP(this Controller ctrl) { string ip; if (ctrl.HttpContext.Request.ServerVariables["HTTP_VIA"] != n... 阅读全文
posted @ 2009-05-20 13:05
john.net
阅读(1455)
评论(0)
推荐(0)
浙公网安备 33010602011771号