C# – 인터페이스의 구성

public delegate void StringListEvent(IStringList sender);
public interface IStringList{
    void Add(string s); //함수
    int Count { get; set; } //속성
    event StringListEvent Changed; //이벤트
    string this[int index] { get; set; } //인덱서
}

 

댓글 남기기