What is the meaning of “this [int index]”?

后端 未结 2 1503
逝去的感伤
逝去的感伤 2021-01-17 16:00

In C# we have the following interface:

public interface IList : ICollection, IEnumerable, IEnumerable
{
    T this [int index] { g         


        
2条回答
  •  野的像风
    2021-01-17 16:27

    That is an indexer. So you can access the instance like an array;

    See MSDN documentation.

提交回复
热议问题