Why was the EventArgs constraint removed from EventHandler in .net 4.5? RRS feed

  • Question

  • I am curious what microsofts reason for removing the constraint is. Also I wanted to bring up that the documentation remarks still mention that the second parameter needs to derive from EventArgs. http://msdn.microsoft.com/en-us/library/db0etb8x.aspx
    Monday, April 1, 2013 6:45 PM


  • I think the constraints were deemed unnecessary.  It's nice to be able to make an EventHandler<string> instead of making a custom class just to pass a string...

    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    • Proposed as answer by Mike Feng Tuesday, April 2, 2013 7:28 PM
    • Marked as answer by Mike Feng Tuesday, April 9, 2013 2:46 PM
    Monday, April 1, 2013 7:19 PM