Ich habe eine Basisklasse mit einem Attribut und möchte es in einer abgeleiteten Klasse ausblenden. Gibt es eine Möglichkeit, dies anders als mit Reflection zu tun?
[Authorize(Roles = "User,Admin,Customs")]
public abstract class ApplicationController : Controller
{
}
// hide the Authorize attribute
public class ErrorController : ApplicationController
{
}