Home | Submit an interview question | Filter by category | Filter by job function | Filter by company
 
Member Information
User Id
Password
 
Forgot Password
Technology Category
.NET (1202)
Languages (103)
Database (146)
Operating System (48)
Reporting (5)
Third-Party Tools (2)
Testing (91)
OOP (75)
Web Development (40)
Design Patterns (89)
General (9)
Networking (88)
Hardware (63)
Brain Exercise (2)
Others (37)
 Our Network
.NET Heaven
C# Corner
Interview Corner
Longhorn Corner
Mindcracker
VB.NET Heaven
Home » .NET » .NET
How do I create a Delegate/Multicast Delegate?
Posted by Sapna Malik Sep 16, 2009
Viewed : 132 times
Major Category : .NET
Minor Category : ASP.NET
Total Replies : 1
Become a Sponsor
 EDITORIAL ANSWER  
No Reply Yet
 ANSWERS BY USERS  
Partap Tanwar
Oct 06, 2009
C# requires only a single parameter for delegates: The method address. Unlike other languages, where the programmer must specify an object reference and the method to invoke, C# can infer both pieces of information by just specifying the method's name.
 For example, let's use System.Threading.ThreadStart: Foo MyFoo = new Foo();
ThreadStart delegates = new ThreadStart(MyFoo.Baz);
This means that delegates can invoke static class methods and instance methods with the exact same syntax!
  
1

 

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Advertise with us
Current Version: 2.2009.3.2
 © 1999 - 2009  Mindcracker LLC. All Rights Reserved