路漫漫,求索不息

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年8月26日

摘要: 扩展方法是C# 3.0(老赵对VB不熟)中最简单,也是最常用的语言特性之一。这是老赵自以为的一个简单却不失经典的实例:[AttributeUsage(AttributeTargets.All, AllowMultiple = true)]public class AttachDataAttribute : Attribute{ public AttachDataAttribute(object key, object value) { this.Key = key; this.Value = value; } public object Ke... 阅读全文
posted @ 2013-08-26 15:33 技术广场 阅读(322) 评论(0) 推荐(0)