1

what means exactly (object sender, RoutedEventArgs e) when declaring a method in c#, "sender" and "e" are parameters received by the method? what they contain?

private void DoWhenClick(object sender, RoutedEventArgs e){
  //... code
  }
Joe
  • 173
  • 1
  • 2
  • 9
  • 3
    See this two links: http://stackoverflow.com/questions/1303145/net-events-what-are-object-sender-eventargs-e http://stackoverflow.com/questions/1428037/routedeventargs-vs-eventargs – Jure Potocnik Sep 01 '15 at 16:20
  • Grab CLR Via C#, skip the first two chapters, and read. –  Sep 01 '15 at 16:23

0 Answers0