How to return subtype in overridden method of subclass in C#?
Unfortunately no, covariant return types aren’t supported in C# for method overriding. (Ditto contravariant parameter types.) If you’re implementing an interface you can implement it explicitly with the “weak” version and also provide a public version with the stronger contract. For simple overriding of a parent class, you don’t have this luxury I’m afraid 🙁 … Read more