Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to know that where delegate in c# has been used in Dot Net Projects. How we can used delegate in Dot Net Projects. How to that in project where we use delegate

What I have tried:

I want to know that where delegate in c# has been used in Dot Net Projects. How we can used delegate in Dot Net Projects. How to that in project where we use delegate
Posted
Updated 2-Jun-20 1:37am

You can use them everywhere in your project. See Delegates - C# Programming Guide | Microsoft Docs[^].
 
Share this answer
 
Comments
Maciej Los 2-Jun-20 7:21am    
5ed!
Richard MacCutchan 2-Jun-20 7:25am    
Thanks. I wonder what he thinks delegates are going to do for him.
Maciej Los 2-Jun-20 7:38am    
Magic?
To add to what Richard has said, your whole Windows app is based on delegates, though they are hidden "behind the scenes". Every time you setup, handle, or remove an event handler, that's implemented using delegates ... just you have some syntactic sugar to hide them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900