首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 在多继承的尝试。

在多继承的尝试。

  • 资源大小:278.48 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 尝试 继承

资 源 简 介

Uses IL weaving (via http://www.mono-project.com/Cecil) to add support for static mixins to .net languages No references required No base class required Supports .net 3.5, .net 4, Silverlight 3, Silverlight 4 and Windows Phone 7. Even in client profile mode Simple templates ``` public class Auditable : IAuditable { public DateTime CreateDate { get; set; } public string CreatedBy { get; set; } public DateTime UpdateDate { get; set; } public string UpdateBy { get; set; } } public class ErrorInfo : IDataErrorInfo { public object Target { get; set; } #region IDataErrorInfo Members public string this[string columName] { get { return Validator.Validate(Target, columName); } } public string Error { get { return Validator.Validate(Target); } } #endregion } ``` Your code [ExtendWith(typeof(ErrorInfo), typeof(Auditable))]public class Person
VIP VIP
0.177747s