如题

解决方案 »

  1.   

    可以在接口上声明属性。以下是接口索引器访问器的示例:public interface ISampleInterface
    {
        // Property declaration:
        string Name
        {
            get;
            set;
        }
    }接口属性的访问器不具有体。因此,访问器的用途是指示属性是否为读写、只读或只写。
      

  2.   

    不太明白 
    索引器指的是这种的吗  索引器和属性不一样吧
    string this[int i]
    {
      set;
      get;
    }
      

  3.   

    一样的...有签名即可...
    interface IInterface
    {
        event EventHandler thisEvent;
    }