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

How would you implement inheritance using vb.net?

593


What is the top .net class that everything is derived from?

700


Write program in VB.Net with SQL Server and Crystal Reports to develop a small windows application to add,edit,save, search and print Employee Information and send sourcecode as zip file. empcode : .............. empname : .............. dateofjoin : dd/mm/yyyy dateofbirth : dd/mm/yyyy TableName: EmpMaster EmpCode EmpName DOB DOJ TableName: EmpDocs EmpCode DocNo DocName ExpDate

2268


What is econo-jit?

691


What are the types of generations in garbage collector?

619






What is visual basic.net culture?

586


What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?

630


What do you mean by serialization and deserialization?

622


Name some of the keywords used in vb.net?

673


what is common language specification?

594


What do you mean by serialization and deserialization and it's use.

693


What is the source code for display the picture in button click event?

774


Explain the difference between dispose and finalize()?

636


Before in my vb app I would just load the icons from dll. How can I load the icons provided by .net dynamically?

599


Explain about jagged arrarys ?

594