.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Is it possible in C#

Posted By:      Posted Date: September 25, 2010    Points: 0   Category :ASP.Net

 HI Guys,


Can we pass a delegate as parameter to a another delegate? ie similar to pointer to a pointer in C.  Offcourse we can pass a delegate as parameter to a function.  What I mean it something like this.

public delegate void MyDelegate1(int i);
public delegate void MyDelegate2(MyDelegate1 obj);
protected void Page_Load(object sender, EventArgs e)
MyDelegate1 obj = (MyMethod);
MyDelegate2 newDelegate = new MyDelegate2(obj);-------------This is erroneous.  Compiler Says "Method Name is expected" ;


View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend