I am using an attribute which should only be attached to properties with default accessors, and I am trying to enforce this coding convention programmatically.
This should be valid:
[Landing]
public int N {get; set;}
This should be invalid:
[Landing]
public int N {get {return n;} set{n=value+1;}}
How can I check that the code is valid, even if only at runtime?