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 DLL HELL in VB.NET

610


Which namespace are used for accessing the data?

642


What do you mean by option strict on?

662


Did vb6 support multi-threading ?

538


What is pre-jit?

539






Explain the advantage of option strict on?

527


What is the difference between vb 6 and vb.net?

639


What is trace in vb.net?

587


Explain about delegate?

513


Described strong typing and weak typing?

624


What is the difference between convert.tostring and .tostring() method?

522


What are the difference between structure and class?

560


What is the significance of delegates?

515


Name some of the features of C# which are not present in VB.NET?

550


What is globalization?

551