IL2043: 'DynamicallyAccessedMembersAttribute' on property conflicts with the same attribute on its accessor method
Cause
While propagating DynamicallyAccessedMembersAttribute from the annotated property to its accessor method, the trimmer found that the accessor already has such an attribute. Only the existing attribute will be used.
Example
// IL2043: 'DynamicallyAccessedMembersAttribute' on property 'MyProperty' conflicts with the same attribute on its accessor 'get_MyProperty'.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberType.PublicMethods)]
public Type MyProperty
{
[return: DynamicallyAccessedMembers(DynamicallyAccessedMemberType.PublicFields)]
get { return GetTheValue(); }
}
Feedback
Issottometti u ara feedback għal