Given a base class with the following interface:
public class Base
{
public virtual IEnumerable GetListOfStuff()
{
yield return \"F
It seems that one solution was to simply follow what the "manual" says: make a helper function.
So for now I've solved it like this:
public class Derived : Base
{
private IEnumerable GetBaseStuff()
{
return base.GetListOfStuff();
}
public override IEnumerable GetListOfStuff()
{
foreach (string s in GetBaseStuff())
{
yield return s;
}
yield return "Fourth";
yield return "Fifth";
}
}
But I'm curious about other solutions as well, should they exist.