Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Showing posts with label delegates. Show all posts
Showing posts with label delegates. Show all posts

Delegates in C# | Use of Delegates in C#.Net with Example

Sep 4, 2014 6 comments
Introduction

Here I will explain what is delegates in c# and how to use delegates in your c# project. In c we used pointers in C, delegates are something like pointers in C but type safe. Previously we send data as parameter but today we send methods as parameter through objects. In C# 2.0 delegates are introduced. It used to send methods to pass through its object it’s like a reference variable to the reference of the method which you have to execute. It is derived  from System.Delegate class and generally use for implementing events and call back method.

Description:

In previous articles I explained constructors in c#, polymorphism example in c#, delegates in c# with example, Difference b/w compile time and runtime polymorphism, sealed classes in c#.net and many articles relating to c#, vb.net, code snippets. Now I will explain what is delegates in c# and how to use delegates in your c# project.

Other Related Posts

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.