我有一个名为 iParser 的接口,该接口由 AbstractParser 实现,现在我继承了此类。
我处理了一个字符串并在Abstract类中获取了 parts 。如何在子类 ImageParser 中获取返回值?
interface iParser
{
RepositoryItem GetRepositoryItem(CustomRowCellEditEventArgs e);
}
public abstract class AbstractParser:iParser
{
String[] parts;
Dictionary<int, RepositoryItem> riObjectCache = new Dictionary<int, RepositoryItem>();
public AbstractParser(String iDecodeStr)
{
parts = SimpleParser.parseCommandLine(iDecodeStr);
}
public RepositoryItem GetRepositoryItem(CustomRowCellEditEventArgs e)
{
throw new NotImplementedException();
}
}
class ImageParser : AbstractParser
{
Dictionary<string, string> dict = new Dictionary<string, string>();
Dictionary<string, Bitmap> newdict = new Dictionary<string, Bitmap>();
string defaultvalue = null;
public ImageParser(string istring) : base(istring)
{