• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






超薄

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  杂七杂八

文章了
 
事件模式实现通知
摘要:class LoggerClass { } public class LoggerEventArgs : EventArgs { public string Message { get; private set; } public int Priority { get; private set; } public LoggerEventArgs(int priority,string msg) { Priority = priority; Message = msg; ... 阅读全文
posted @ 2012-04-04 15:42 超薄 阅读(253) 评论(0) 推荐(0)
扩展属性应用
摘要:字段去除空格代码 [AttributeUsage(AttributeTargets.Property,Inherited=false,AllowMultiple=false)] public class TrimAttribute:Attribute { private readonly Type type; public TrimAttribute(Type type) { this.type = type; } public Type Type { get { return this.type; } } }... 阅读全文
posted @ 2012-04-04 15:37 超薄 阅读(218) 评论(0) 推荐(0)