Introduction:
Here I will explain what is delegates in c#.net with example. Basically delegates in c# are type safe objects which are used to hold reference of one or more methods in c#.net. Delegates concept will match with pointer concept of c language.
Description:
In
previous posts I explained OOPS examples in c#, polymorphism in c#, Difference b/w datareader, dataset and
dataadapter in c#, Difference b/w appsettings and
connection strings in asp.net, Difference b/w executereader,
executenonquery and executescalar in c# and many articles
relating to
interview questions in c#,
asp.net,
sql server, javascript,
jquery. Now I will explain delegates
in c#.net with example.