Essentially what I want to do is impliment a class that can contain a list of references to instances of the same type. Something like the following:
interface IAccessibilityFeature
{
List<IAccessibilityFeature> Settings { get; set; }
}
class MyAccess : IAccessibilityFeature
{
List<MyAccess> Settings { get; set; }
}
I know this won’t compile because the interface explicitly says my Settings must be of the type List<IAccessibilityFeature>. What I am after is some guidance as to the correct way to achieve what I’m trying to do in the MyAccess class.
Try this: