Is there a way to pass a parameter type that must be an extension of another type? I tried this but that isn't how it is done (I believe).
public class SettingsAttribute : Attribute
{
public SettingsAttribute(Type<MyBaseClass> action)
{
}
}
Valid
public class Dog : MyBaseClass
{
}
[Settings(typeof(Dog))]
public class ABC
{
}
Invalid
public class Cat : DoesntExtendMyBaseClass
{
}
[Settings(typeof(Cat))]
public class ABC
{
}