What is an Event?

Author Topic: What is an Event?  (Read 860 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Fat Cutter
What is an Event?
« on: 11-23-2016, 05:34:49 »
•   An event in C# is a way for a class to provide notifications to clients of that class when some interesting thing happens to an object.

•   An event is a way for a class to allow clients to give it delegates to methods that should be called when the event occurs. The most familiar use for events is in graphical user interfaces.

•   Event Handlers in the .NET Fram  work r  turn void and take two parameters.

•   The first parameter is the source of the   v nt; that is the publishing object.

•   The second parameter is an object   erived from EventArgs.

•   Events are properties of the class publishing the event.

•   The keyword event controls how the event property is accessed by the subscribing classes.


Related Topics

  Subject / Started by Replies Last post
3 Replies
Last post 07-09-2012, 05:58:05
by RichardSmith
0 Replies
Last post 08-28-2015, 16:30:35
by techninja