© { JSL }
60
Text Box: interface Indexer
interface Indexer
Folded Corner:
·an interface can declare an indexer
wreadwrite, readonly, writeonly
windexers are not static operators
interface IDictionary
{
    string this [ string word ] { get; set; }
    ...
}
class Dictionary : IDictionary
{
    public virtual string this [ string word ]
    {
        get { ... }
        set { ... } 
    }
    ...
}