Hello all,
Why this piece of code doesn't compile?
public class FStorage
{}
public class FSExcel : FStorage
{}
public abstract class IResultLine
{
public abstract void ToExcelLine(FStorage storage);
}
public class Foo
{
internal class ResultLine : IResultLine
{
public sealed override void ToExcelLine(FSExcel storage) {}
}
}
I have the next errors:
'AddIn.ListOfControls.DerniersRapportsVisite.Resul tLine_.ToExcelLine(AddIn.View.FileStorage.FSExcel) ':
no suitable method found to override
'AddIn.ListOfControls.DerniersRapportsVisite.Resul tLine_' does not
implement inherited abstract member
'AddIn.View.IResultLine.ToExcelLine(AddIn.View.Fil eStorage.FStorage)'
Why do I have to pass a FStorage object, whereas ResultLine inherits
from IResultLine?
Thanks in advance
Mike