带有ref参数

时间:2015-12-17 11:42:48

标签: c# postsharp

如果该成员具有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)

0 个答案:

没有答案
相关问题