You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking through the code it occured to me that WhenMemberHas and WhenTargetHas have the exact same implementation. But imo WhenMemberHas should not check if Target.IsDefined but if Target.Member.IsDefined. While for properties this would be the same for methods and ctors that is not the case.
The first test fails because it mistakenly considers the Weak attribute.
While looking through the code it occured to me that WhenMemberHas and WhenTargetHas have the exact same implementation. But imo WhenMemberHas should not check if Target.IsDefined but if Target.Member.IsDefined. While for properties this would be the same for methods and ctors that is not the case.
The first test fails because it mistakenly considers the Weak attribute.
The text was updated successfully, but these errors were encountered: