• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

C# delegates?

 
Ranch Hand
Posts: 65
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How a delegate works in c#?
 
Saloon Keeper
Posts: 12502
269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read the MSDN article on delegates? Is there something in particular you don't understand?
 
Greenhorn
Posts: 9
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ishan

Here is a short YT video that reveals the purpose of delegates. It helped me a lot.
Delegate Basics

Basically, delegates are types intended to contain the method signature (return value and parameters list). Another name for delegates is higher order functions.
The purpose is to manipulate methods in the same manner as parameters. This approach provides advanced  programming paradigms such as multicast invoking, callbacks, code decoupling, etc..

 
Marshal
Posts: 71110
292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aleksandar Vidakovic, welcome to the Ranch

That's quite a good YT article
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use this link to understand more:- https://www.tutorialspoint.com/csharp/csharp_delegates.htm
 
Hold that thought. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic