No.We can't use static notation in indexers.
Consider the indexer syntax
public int this[int index]
// return the value specified by index
// set the value specified by index
Here we can see that indexer uses a reference to
,Which is not supported by static.The reason behind this is static does not support,instance of a class,so we cant use
Hence We can't use static notation in indexers.
Asked In: Many Interviews |