lundi 20 août 2018

I have an issue with designing my Interfaces with c#

I have a problem with designing my interfaces

I have these interfaces :

IField
IScreenField //this interface inherit from IField


CustomCollection<IField>

AnotherCustomCollection<IScreenField>


ITable //that contains CustomCollection<IField>
IScreen //that contains AnotherCustomCollection<IScreenField>

IScreen //interface should inherit from ITable interface 

but it shows an error that

I have to implement a collection of IField but I already implement a collection of IScreenField

what is the soltuion for this ?

Aucun commentaire:

Enregistrer un commentaire