interface ISomething
{
Apples a {get;set;}
}
public class ChilieanApples:Apples
{
}
public class Apples
{
}
Class SomethingSpecific:ISomething
{
public ChilieanApples apples {get;set;}
}
Because C# doesn't support covariance of return types in terms for
interface implementation and member overriding. To override/implement
something, you have to supply exactly the same signature.
It's a pain, but that's the way it is.
Jon
Thanks.
I thought I mite have missed something because i expected it to
compile.