如果该成员具有ref T参数,如何将成员导入PostSharp方面?
[ImportMember("SetPropertyWithAoP", IsRequired = true)]
public Func<object, object, string, bool> SetPropertyWithAoP;
上面的代码将与
下面的成员一起使用protected bool SetPropertyWithAoP(object storage, object value, string propertyName)
但由于 参考 和 T generic 参数
protected bool SetProperty<T>(ref T storage, T value, [CallerMemberName] string propertyName = null)