Do event have return type?

Answer Posted / abhinav

Yes Event do have return Type.It actually depends on the
Delegate Type of the Event.Most generally we
use 'EventHandler' as Delegate Type that does not have a
return Type.When you define your own Delegate you can have
a return type and then declare an Event with this Delegate
Type.While compiling the c# compiler will look for the
return Type in the objects that have subscribed to this
Event.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the class that allows an element to be accessed using unique key?

745


i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?

2448


What is the difference between static or dynamic assemblies?

767


What is enumerator?

797


What is the ruby interface generator?

770


What are nested classes?

713


What are the advantages of VB.NET?

758


how many server control present in .net

2503


Sir, what code to store data from vb net sql server 2008 to 2005 and at the same time in order to validate the data entered is not the same, but there have been contacts in the module. Examples such as the log table that I created, the user name as the primary key.

1960


How to store decimal data in .net?

834


List the two main parts of .net?

778


What is the difference between datagrid and gridview?

716


When do you use virutal keyword?

772


What is redim keyword and its use?

775


Explain namespace?

763