Given the delegate declaration: delegate void GreetingDelegate(string s);What do you know about any method that is represented by this delegate? In general, what can you tell about a method if you know it is encapsulated by a particular delegate?

What will be an ideal response?


The GreetingDelegate shown can encapsulate any method as long as it has a void return type and a single string parameter. Any delegate can encapsulate any method that has the same return type and parameter list as the delegate. If you declare the delegate and then write a method with the same return type and parameter list, you can assign an instance of the delegate to represent it.

Computer Science & Information Technology

You might also like to view...

What is the output of the following program fragment?

cout << static_cast(3)/4 << endl; a. 3 b. 0.5 c. 0 d. 0.75

Computer Science & Information Technology

In the Insert Picture dialog box, ________ can be typed to facilitate the search for a particular type of image

Fill in the blank(s) with correct word

Computer Science & Information Technology

is the shortcut key symbol for ____.

A. command B. option C. control D. eject

Computer Science & Information Technology

The SATA drive technology utilizes a serial data path.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology