Mar 2 at 10:01 AM
Edited Mar 2 at 10:04 AM
How can I prepare the setter method of auto properties?
Marked as answer by Max04 on 3/2/2017 at 3:08 AM
Mar 4 at 7:58 AM
Edited Mar 4 at 8:07 AM
Hi, there is no specificity for auto properties, they are treated like classic properties. You can call Aspect.Weave on the methods returned by PropertyInfo.GetGetMethod/GetSetMethod/GetAccessors or detect it in the Aspect.Weave oveload taking a Func<MethodInfo, bool>