What is an event in C #?

in C # what is an event? Does this look like an ActionScript Event ? Is it different? In what?

+3
source share
6 answers

An event in C # is a way for a class to provide notifications to clients of this class when some interesting thing happens to the object. Most familiar use of events is graphical user interfaces; Typically, classes representing controls in an interface have events that are notified when the user does something to the control (for example, click a button).

, , # http://msdn.microsoft.com/en-us/library/aa645739%28VS.71%29.aspx

+8
+3

" # - , - . - , , , , , - (, ).

: http://msdn.microsoft.com/en-us/library/aa645739(VS.71).aspx

, ActionScript.

+3

Event , EventArgs

+1

MSDN - .

Short version: events are a conceptual subtlety that simplifies the implementation of the notification callback / subscription model.

+1
source

An event is a programming construct in accordance with which a class or object, in order to be specific, reports (notifies) a specific state change to a list of signed objects in multicast mode.

+1
source

Source: https://habr.com/ru/post/1747252/


All Articles