G
Guest
I developed a comparer class for a base class BEBase
public class BEBaseComparer:IComparer<BEBase>
....
....
but, i can't use this comparer with a derived class...
public class Pippo:BEBase
....
I'd like to sort a List<Pippo> using the BEBaseComparer
but lista.Sort(bc) where bc is a istance of BEBaseCompare do compiler error!!
How can'i do it ??
TIA, Marco Sellani
public class BEBaseComparer:IComparer<BEBase>
....
....
but, i can't use this comparer with a derived class...
public class Pippo:BEBase
....
I'd like to sort a List<Pippo> using the BEBaseComparer
but lista.Sort(bc) where bc is a istance of BEBaseCompare do compiler error!!
How can'i do it ??
TIA, Marco Sellani