The C# events implementation (articles vs reflector)

前端 未结 3 983
自闭症患者
自闭症患者 2021-02-10 09:12

public class EventsType { public event EventHandler> NewEvent;

    public void SmthHappened(string data)
    {
        MyEventArgs even         


        
      
      
      
3条回答
  •  北荒
    北荒 (楼主)
    2021-02-10 09:34

    The answer to this question very much depends on the version you're using. It has been refined a lot over the years. See http://blogs.msdn.com/b/cburrows/archive/2010/03/05/events-get-a-little-overhaul-in-c-4-part-i-locks.aspx

提交回复
热议问题