Essentially, I want it to be 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 that this will not compile, because the interface explicitly says that my Settings
should be of type List<IAccessibilityFeature>
. What I need is some guidance on the right way to achieve what I'm trying to do in the MyAccess
class.
source share