Could someone tell me how to Change the parameter type for an override of an
inherited class member? In particular, I would like to change an indexer for
my class that implements the IList class. Such as this:
public abstract class myclass : IList
{
private ArrayList ary;
....[Cut for brevity]
public string this[int index]
{
get
{
return (string)this.ary[index];
}
}
....[Cut for brevity]
}
When I try to compile, I get (my class) "does not implement interface member
'System.Collections.IList.this[int]'." etc..
It appears I am being required to use a type of object instead of string.
I would prefer not to have to cast to string upon every call to this indexer
from other classes.
Any help would be appreciated.