在 C# 中,将索引器声明为接口的一部分的语法是什么?还在吗this[ ]?使用时感觉有些奇怪this界面中的关键字。
public interface IYourList<T> { T this[int index] { get; set; } }