How to handle add to list event?

后端 未结 10 2384
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 22:55

I have a list like this:

List list = new List

How to handle adding new position to this list?

When

10条回答
  •  长情又很酷
    2020-11-29 23:33

    No need for adding an event just add the method.

    public class mylist:List
    {
      public void Add(string p)
      {
         // Do cool stuff here
         base.Add(p);
      }
    }
    

提交回复
热议问题