-There are programs Delegate is declared in one file and instantiate in another file in the same folder.
-Also there are programs Delegate declaration and instantiation is done in the same file.
I wish to know how a programmer can decide which is appropriate in above two.

Upendra Pratap ShahiPosted Oct 18, 2015, 7:20 AM
Mukesh KumarPosted Oct 20, 2015, 5:32 AM
MahaPosted Oct 20, 2015, 5:23 AM
Other thing is in this example Delegate is declared in inside the class of the existing class (in our case, the Test class).
Whether you declared a Delegate inside the class or outside the class the output becomes same. I wish to know whether location of Delegate declaration is the matter.
MahaPosted Oct 20, 2015, 3:46 AM
In the 5th paragraph of the article says:
“In this next example, we instantiate a delegate of type GetAString, and then initialize it so it refers to the ToString() method of the integer……………………….”
I do not agree with word “instantiate”. Here we are not instantiating just we are declaring or defining a delegate. In my view instantiating means:
GetAString x = new GetAString();
What you think Upendra Pratap Shahi.
Upendra Pratap ShahiPosted Oct 20, 2015, 1:21 AM
MahaPosted Oct 18, 2015, 4:37 PM
This article seems very interesting. Thank you for introducing this article Upendra Pratap Shahi.
MahaPosted Oct 17, 2015, 5:25 AM
Mukesh KumarPosted Oct 17, 2015, 1:00 AM
These are different way to declare the delegate.. if you believe that your declared delegate should not be accessible to other one try to use it in the same program of class.
Thanks