C# Corner

  About Delegates
Delegates is reference type variable used in Programming language Such as C and C++ language as pointer to function which is used for hold the reference to Method and mainly used in event and call back methods. The reference of Delegates method is changed at run time.If we wants want to use another class's functionality, as it without changing that behavior at all then we can used Delegation using HAS a Relationship.In another words, whenever you need to use functionality in another class without change that functionality, consider using delegation instead of inheritance.
Related resources for Delegates
  • Delegates and Events In C#2/3/2019 11:21:14 PM. The Delegate type represents a delegate in C#. Delegates in C# are used to invoke methods at runtime. A Delegates in .NET can be a singlecast delegate or a multicast delegate. This tutorial with code
  • Delegate in C#10/25/2018 6:05:03 AM. In this article, I am trying to explain delegates in an easy to understand way, hopefully after going through this article, you will feel comfortable using delegates and answering any questions relate
  • Func<> Delegates in LINQ10/24/2018 3:15:54 AM. Learn how Func&lt;&gt; Delegates in LINQ work. Func delegates are pointers to methods that take one or more parameters and must return a value.
  • Basic Introduction To C# Delegates10/12/2018 10:21:51 AM. C# Delegates are used to invoke methods or functions at runtime. This article discusses the basics of delegates in C# and how to implement delegates. Topics covered include code samples of C# Delegat
  • C# Delegates, Action, and Func8/10/2018 12:02:02 AM. In this video, we will be looking at the three important parts of C# - Delegates, Func, and Action.
  • How Events And Delegates Are Related6/28/2018 3:20:15 PM. This articles describes about what is delegate, what are the different ways to define and declare delegates, when to use delegates, what is event and how events and delegates are associated or related
  • Use Of Delegates In Programming With Simple Example1/23/2018 11:44:30 AM. We all have studied delegates in programming, especially in high-level languages. But most probably, it’s hard to understand if you are new to programming. So I’ll be writing some stuff on the use of
  • Missing 'Manage Delegates' Option In PWA Setting In Project Server 201610/24/2017 12:54:43 AM. In this article, we will be fixing the issue Missing &#39;Manage Delegates&#39; option in PWA Setting.
  • Simple Delegates With Examples in C#6/26/2017 3:20:03 AM. Here, you will see delegates with examples in C#. Delegates are similar to C++ function pointers, but are type safe. Delegates allow methods to be passed as parameters. Delegates can be used to define
  • Delegates in C#6/22/2017 7:08:42 AM. This article is introducing a new reference type, delegate. A delegate is a C# language element that allows programmers to reference a method for their development work.
  • Delegates, Anonymous Method, And Lambda Expression In C#1/26/2017 11:38:12 AM. This article discusses Delegates, Anonymous Methods, and Lambda Expression in C#.
  • Explore Delegates In C#1/24/2017 11:39:33 PM. In this article, you will explore delegates in C#.
  • How And When To Use Delegates In Your Project1/23/2017 2:52:52 PM. In this article, you will learn how and when to use delegates in your project.
  • Understanding <T> In C#5/18/2016 4:54:37 AM. In this article you will learn about what is &lt;T&gt; in C#.
  • Learn Tiny Bit Of C# In 7 Days - Day 45/12/2016 11:57:13 AM. In this article you will learn about Delegates, Enums, Attributes, Generics in C#. This is part 4 of the series.
  • C# .NET Delegates and Events2/4/2016 9:35:23 AM. In this article, you will learn how to create and manipulate delegate types as well as C# events which streamline the process of working with delegate types.
  • Understanding Delegates In C# - Part 21/10/2016 12:13:55 PM. In this article I will explain about delegates with named method, anonymous method, Lambda Expression, anonymous method with omit parameter list, and delegate inference.
  • Understanding Delegates In C#1/5/2016 12:18:17 AM. In this article you will learn about understanding delegates in C#.
  • Overview Of Delegates12/18/2015 12:48:35 AM. In this article you will learn about Delegates and its types.
  • Threading Simplified: Part 5 (Thread Pools)12/7/2015 2:33:20 AM. This article explains what thread pools are and how to use them efficiently in multithreading using QueueUserWorkItem method and Asynchronous delegates.
  • Delegates Make Confusion (Where to use) In C#11/27/2015 10:10:41 AM. In this article you will learn about Delegates and where to use them in C#.
  • Asynchronous Programming Using Delegates11/4/2015 12:24:40 AM. This article is intended to explain the concept of asynchronous programming using DelegateS.
  • Publisher And Subscriber In C#11/3/2015 12:26:22 AM. In this article you will learn about Publisher and Subscriber in C# language.
  • Different Ways To Create Delegates In C#10/31/2015 11:34:57 AM. This article is intended to explain the idea and concept to create Delegate with different approach.
  • Delegates And Interface Overview10/28/2015 3:32:45 PM. This article is intended to describe the relationship, similarities, differences between Delegate and Interface.
  • Action And Func Delegates In C#10/6/2015 9:17:30 AM. In this article you will learn about Action and Func Delegates in C#. Both of them are generic delegates, which means that you can assign both anonymous methods and lambda expression to them.
  • Delegates In C#10/1/2015 1:55:51 AM. In this article we will try to understand what is delegate and how to use it.
  • Delegates in C#8/28/2015 7:58:57 PM. In this article you will learn about delegates in the C# language.
  • Fire Event From Child To Parent in C#8/27/2015 1:48:14 PM. In this article you will learn how to call a web form method or event from a child user control event or method using delegates.
  • Covariance and Contravariance with delegates using C#8/26/2015 3:46:53 PM. In this article you will learn about Covariance and Contravariance in C# programming.
  • Delegate and its Memory Allocation in C#8/20/2015 5:36:20 PM. In this article you will learn an overview of delegate in C# language.
  • Delegates in C#6/1/2015 2:40:25 PM. This article explains delegates in C# programming with examples.
  • Difference between Func, Action and Predicate Delegates4/28/2015 7:01:07 AM. This Video provides a clear difference between Func,Action and Predicate Delegates which is one of the most frequently asked questions in Interview's these days. This Video demonstrates the difference between Func, Action and Predicate with explanation and simple and easy to understand example to answer the question.
  • Video: .NET Delegates (in Hindi) - Part 23/16/2015 5:50:09 AM. The second part of a lecture in Hindi on using delegates with C#.
  • Video: .NET Delegates (in Hindi) - Part 1 3/5/2015 3:51:24 AM. The first part of a lecture in Hindi on using delegates with C#.
  • Delegates in C# Language2/26/2015 5:24:02 PM. In this article you will learn about C# Delegates.
  • Delegates in C#2/16/2015 12:30:42 PM. In this article you will learn about Delegates in C#.
  • Delegate Basics in C#2/12/2015 1:37:44 AM. The article will explain the basics of delegates. How delegates are initialized and how they work.
  • Delegates in C# - Part 21/27/2015 12:50:02 PM. In this article you will learn what delegates are and some of the advantages of delegates.
  • Delegates in C# - Part 11/26/2015 11:45:45 PM. This article explains what delegates in C# are, how to use them and provides a real-life sample use of them.
  • Delegate Example Explained With Mediator Pattern1/25/2015 10:29:55 PM. This article explains delegates and is explained with an example using the Mediator Pattern.
  • C# Corner Delhi Developer's Day 18th January, 2015: Official Recap1/22/2015 2:09:22 AM. The C# Corner Delhi Chapter organized its monthly event, Delhi Developer's Day at C# Corner Noida Office, on 18th January, 2015.
  • C# Corner Delhi Developer's Day 28th December, 2014: Official Recap1/7/2015 8:44:01 PM. The C# Corner Delhi Chapter organized its monthly event, Delhi Developer's Day at C# Corner Noida Office, on 28th December, 2014.
  • Generic Delegates in C#1/1/2015 12:24:34 AM. In this article you will learn about Generic Delegates in C#.
  • Delegates in C# Language12/31/2014 11:48:27 PM. In this article you will learn about Delegates in C# Language.
  • From Delegates to Lambdas11/22/2014 6:10:22 PM. In this article I am going to discuss the evolution of lambdas from delegates.
  • Understanding Lambda Expressions11/15/2014 5:25:38 PM. This chapter has introduced the theory behind lambda expressions as well as illustrates its syntax of expressions.
  • Delegates, Anonymous Methods & Lamda Expressions9/30/2014 6:30:12 PM. This article explains the basic concept of delegates, anonymous methods and lamda expressions.
  • Generics in C# - Part II9/3/2014 11:56:12 PM. In part II of generics in C# we will see how to create generic classes, structures, interfaces, and delegates. We will also see how to create a custom generic collections.
  • Generics in C# - Part I9/3/2014 11:48:59 PM. In Part I of this series you will see the importance of generics, you will learn how to use generic types which in the System.Collections.Generic namespace and you will also learn how to create generic methods.
  • Action Delegates9/2/2014 11:55:22 PM. This article describes the action delegates.
  • A Journey to Lambda Expression: Part 27/29/2014 6:11:02 PM. This article relates a journey to Lambda.
  • Delegates in .NET7/29/2014 3:52:50 AM. Here you have a complete introduction to delegates.
  • Action and Func Delegates in C# .NET7/13/2014 6:14:01 PM. The Func and Action generic delegates were introduced in the .NET framework version 3.5.
  • Delegate Uses in C#7/7/2014 7:12:42 PM. This article describes the uses of delegates in C#.
  • Delegates Simplified6/1/2014 11:03:12 PM. Delegates encapsulate and pass methods as parameters to other methods. A delegate can encapsulate a named or an anonymous method. You’re most likely to use a delegate in events or callbacks.
  • Delegates in Actual Projects5/19/2014 2:38:32 PM. This article explains how to use delegates in actual projects.
  • Pass Data From User Control to Parent Page, Using Events and Delegates in ASP.Net3/13/2014 1:30:09 PM. This article explains how to pass data from a user control to the parent page using events and delegates in ASP.Net.
  • Progress Bar in WPF With Anonymous Delegates3/8/2014 11:51:52 AM. Here I created a WPF Progress Bar that will demonstrate many things.
  • Understanding C# Events: What They Are and Where They Came From2/18/2014 1:28:12 PM. To help you get a working knowledge of C# events and event handling, this article explains where events come from, what they really are at a functional level and how they are expressed in C#. This article specifically looks at the Gang Of Four (GOF) Observer pattern.
  • Raising Events, Event Handlers, and the Use of Delegates12/27/2013 6:25:00 PM. This article focuses on delegates, how to use them, their relation to events, and their relation to raising events. It is meant to help the beginner learn delegates by example code.
  • Generic Delegates in C#12/16/2013 8:18:02 PM. In this article, let's try to understand generic delegates in the C# language.
  • What are Delegates in C#10/27/2013 11:33:43 PM. In this video you will learn about Delegates in detail.
  • Introduction To Delegates in F#10/19/2013 1:56:23 PM. In this article I will explain Delegates and how to them in a F# console application.
  • Delegates, Anonymous Functions and Lambda Expressions in C#7/28/2013 2:43:26 PM. This article provides the basics of delegates, Lambda expressions and delegate with Lambda Expressions.
  • All about Generics7/20/2013 1:34:45 PM. Using this article we will learn all about generics in C#.
  • Learn Object Oriented Programming Using C#: Part 136/24/2013 11:20:13 PM. This article explains another important component of OOP, which is delegates.
  • Func Delegate Using Lambda Expression in C#6/24/2013 8:40:52 PM. In this article I'll try to explain a cool feature introduced with .NET 3.5. Known as Func, also named by some developer as a readymade delegate.
  • Using Delegates in C#5/20/2013 2:08:15 PM. In this article you will learn about what Delegates are and how to use them in C#.
  • Named Delegates in C#3/10/2013 4:08:22 PM. This article demonstrates an interesting and very useful concept in C#.
  • Understanding Delegates Predicates and Lambda2/22/2013 11:39:57 PM. To have a clear undestanding of Predicates, you must have a good understanding og delegates.
  • Asynchronous Methods Calls in C#2/7/2013 11:50:33 PM. In this article I explain asynchronous methods calls.
  • Using Delegates in ASP.NET1/15/2013 10:44:20 PM. Here the main concern is how to read the data from the user control; for reading the data a delegate is used.
  • Delegates in VB.NET11/10/2012 3:10:32 AM. The Zip file contains two projects. One is VB.Net and the other is C#. Each project is an example of the same use of a delegate.
  • Manage Data in a VB Application (without the Database)11/9/2012 11:12:02 AM. This article provides an approach to building an application that may be used to collect, store, and retrieve data without relying upon a database to get there.
  • Contra-variance Delegates in .NET10/24/2012 11:11:26 PM. Today, in this article let’s play around with one of the interesting and most useful concepts in C#.
  • Co-variance Delegates in .NET10/24/2012 11:11:15 PM. Today, in this article let’s play around with one of the interesting and most useful concepts in C#.
  • Events and Delegates10/20/2012 6:05:21 AM. In this article let us see about Events and Delegates through an example.
  • Delegate And Async Programming C# (AsyncCallback And Object State)10/13/2012 4:00:17 AM. In the previous article we discussed the use of delegates to call methods asynchronously then we talked about Synchronization of threads in a Multithreading environment. In the previous code example we used the BeginInvoke() method to make the Async call.
  • Writing C# 2.0 Unsafe Code10/13/2012 3:55:54 AM. We will see that C# allows suspending the verification of code by the CLR to allow developers to directly access memory using pointers.
  • Play With Action Delegates in ASP.NET10/9/2012 7:32:37 PM. Today, in this article let’s play around with one of the interesting and most useful concepts in C#.
  • Play With Func Delegates10/8/2012 1:12:59 PM. Today, in this article let’s play around with one of the interesting and most useful concepts in C#.
  • Using Delegates to Communication Between Windows Forms10/4/2012 7:24:47 AM. Delegates are one of the wonderful features of .Net Framework. Their primary use is focused on support event handling and callback mechanism. In this article we will explore how to use delegate as callback support to make simple communication between deferent opened windows forms
  • Events and Delegates in Remoting 9/30/2012 2:34:28 AM. In this article I will explain you about Events and Delegates in Remoting.
  • Working with Delegates -Part II9/29/2012 9:23:54 AM. In this article we will discuss about delegates, what is multicast delegates and its contribution in Asynchronous communications and also how to work with long-running processes etc.
  • Invoking a Form UI Method From a Different Thread Using Delegates9/29/2012 7:22:59 AM. How to invoke a form UI method from a different thread using delegates (inter-thread communication).
  • 6 important uses of Delegates and Events9/29/2012 6:14:49 AM. In this article we will first try to understand what problem delegate solves, we will then create a simple delegate and try to solve the problem. Next we will try to understand the concept of multicast delegates and how events help to encapsulate delegates. Finally we understand the difference between events and delegates and also understand how to do invoke delegates asynchronously.
  • Use of Delegates in C#9/5/2012 5:39:34 PM. In this article I explain delegates and multi-casting through delegates with an example.
  • Passing Data Between Forms5/19/2012 4:06:08 AM. There are so many methods to pass data between forms in windows application. In this article let me take four important and easiest ways of accomplishing this.
  • Passing Data Between Windows Forms5/19/2012 1:10:15 AM. This article provides a simple example of using delegates and events to transfer data between Windows forms. The example provided contains three separate forms; the main form interacts with the other two forms by responding to events generated by instances of the other two forms.
  • Let's Play Around With Main Interrelated Concepts of Delegates in C#5/15/2012 1:07:20 PM. Today, in this article we will dig out and play around by creating simple delegate program and let’s see how better we can perform in this single program only. I mean, in this program I will cover everything all stuff required for delegate from all the possible ways. So I will be covering simple delegate creation, multi-cast delegate, use of named methods, use of anonymous methods, use of lambda expression and finally much better implementation about all of these and generic delegates as well.
  • Working With Delegates in C#5/14/2012 7:51:30 PM. In this article I explain delegates and how we use them.
  • Learning the Basics of Delegates in C#12/6/2011 12:12:12 AM. Delegates are a type that reference a Method. When it is assigned by a method it behaves exactly the same as that method. It can be used as parameters and can be returned as a value. So it has same what are the methods have.
  • Delegates in C#12/6/2011 12:11:19 AM. This article discusses the delegate type and how it can be used to point to methods in the application which can be invoked at later time. This article demonstrates also the delegate ability to multicast and delegate covariance.
  • How to Change Order of Event Handlers Execution at Run Time8/12/2011 4:47:09 AM. In this article we shall demonstrate how this problem can be resolved. Generally, .NET Framework does not provide a solution to the problem and what follows here is based on its undocumented features. So take the solution proposed below with caution.
  • Delegates And Async Programming7/21/2011 3:31:53 PM. The .Net delegate type is essentially a type-safe, object oriented, function pointer.
  • Event Driven Programming with User Control12/16/2010 2:17:21 AM. In this article, I will discuss how to use delegates and events.
  • Delegates in C#11/1/2010 7:19:32 AM. This article discusses what delegates are and how they can be used in C# with lucid code examples.
  • Events/Delegates example in C#8/18/2010 8:33:34 PM. I made a little events/delegates example. I'm sharing it with you because events and delegates can be hard when your learn them and this example could help you.
  • How to create a simple delegate in c# ( 5 minutes video session)6/9/2010 12:39:11 AM. How to create a simple delegate in c#
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download