In C# events are actually a special form of delegates

A) True
B) False

Showing Answers 1 - 14 of 14 Answers

krishana

  • Jan 4th, 2006
 

In C# events are actually a special form of delegatesit's true.

  Was this answer useful?  Yes

Guest

  • Jan 9th, 2006
 

False

Events are signals generated by an object to indicate occurrence of an action, while delegates are type safe function pointers.

An event is a way for a class to signal state change / an interesting action. Delegates are reference types which are used to encapsulate methods with a specific signature.

Events are declared using delegates. Objects which want to take some action on occurrence of the event attach their methods to the event handler, which is a delegate.

  Was this answer useful?  Yes

John Jiang

  • Jul 3rd, 2008
 

#2 is right and gave acurate definition of event and event handler but since we declare a event using delegate so we usually say a event is a delegate but from the declaration we can see what is a delegate is the eventhandler.

  Was this answer useful?  Yes

LordAlex

  • Nov 3rd, 2011
 

An event is a member that enables a class or object to provide notifications.
An event is declared like a field except that the declaration includes an event keyword and the type must be a delegate type.

False: Delegate is a Type, but Event is a class/struct/interface member a field. It can be rather like a property only.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions