locked
Event handler registration

    Question

  • Apology if this is too basic. Is there any difference between these 2 lines? Assuming OnCompleted is a method defined within the class itself.

    task.Completed += new BackgroundTaskCompletedEventHandler(OnCompleted)
    task.Completed += OnCompleted
    

    Wednesday, July 16, 2014 10:45 AM

Answers

  • its the same

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by chinlj Wednesday, July 16, 2014 10:55 AM
    Wednesday, July 16, 2014 10:49 AM

All replies

  • its the same

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by chinlj Wednesday, July 16, 2014 10:55 AM
    Wednesday, July 16, 2014 10:49 AM
  • Thanks. Good to know this.
    Wednesday, July 16, 2014 10:54 AM