Interface that Entails the Implementation of Indexer
Posted
by Ngu Soon Hui
on Stack Overflow
See other posts from Stack Overflow
or by Ngu Soon Hui
Published on 2010-03-20T11:30:00Z
Indexed on
2010/03/20
11:41 UTC
Read the original article
Hit count: 252
c#
I am looking for a framework-defined interface that declares indexer. In other words, I am looking for something like this:
public interface IYourList<T>
{
T this[int index] { get; set; }
}
I just wonder whether .Net framework contains such interface? If yes, what is it called?
You might ask why I can't just create the interface myself. Well, I could have. But if .Net framework already has that why should I reinvent the wheel?
© Stack Overflow or respective owner