How to add indexer to an interface
interface with indexer
An interface can specify an indexer. An indexer declared in an interface has this general form:
// interface indexer// w w w .j a v a 2 s .c o m
element-type this[int index] {
get;
set;
}