when we use delegates?
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
1: When we use delegates? 2: Can I use delegates methods as normal methods? Please help me..
Use a delegate when: 1. An eventing design pattern is used. 2. It is desirable to encapsulate a static method. 3. The caller has no need access other properties, methods, or interfaces on the object implementing the method. 4. Easy composition is desired. 5. A class may need more than one implementation of the method and it will be decided at runtime as to which method to call. Delegates are also used when call back functionality is to be implemented : Refer http://www.knowdotnet.com/articles/delegatesreplaceraiseevents.html[^] Hope this helps. All the best.