资 源 简 介
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