As others have said, this is not possible.
Instead, you can add another property, for example.
public List<string> ignoredProperties {get; set;}
Then, at run time, add num2 to this list and check it for properties that you should ignore.
source share