Is it possible to remove attributes from inherited properties? I thought that by using the new keyword I could do so...
public class Person
{
[Required]
public string FirstName { get; set; }
[Required]
public string LastName { get; set; }
}
public class Employee : Person
{
[Required]
public string JobTitle { get; set; }
public new string FirstName { get; set; }
}
... but this doesnt work at all. This surprises me because the new is specifically there to hide inherited members.