On Sep 22, 8:29*am, puzzlecracker <ironsel2...@gmail.comwrote:
thanks
not necessarily... look at the code below...
delegate void myDelegate(int a);
class Csharp
{
private void DelegateMethod(int i)
{
Console.WriteLine("Not exactly");
}
static void Main()
{
Csharp cs = new Csharp();
myDelegate del = new myDelegate(cs.DelegateMethod);
del(10);
Console.ReadLine();
}
}
however, the above is not a practical case. Generally delegates used
for representing some functionality that is expected out of other
objects.. or functionality that would be abstracted to third party. In
which case access to the method is exactly required. (most of the
times through public modifier).
-Cnu