Open
Description
For example:
public class TestType
{
[DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicMethods)]
public Type AnnotatedProperty { get; set; }
}
public void Test ()
{
typeof (TestType).RequiresNonPublicFields (); // IL2110 - this accessed the compiler generated backing field for the AnnotatedProperty
}
Analyzer doesn't produce this warning for compiler generated backing fields (it does produce it for normal declared field).