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
  • Factory Design Pattern Using Delegates In C#11/27/2024 9:52:19 AM. Factory Pattern is a creational design pattern that provides a way to encapsulate object creation. Instead of directly instantiating objects, you delegate the creation process to a factory class.
  • Programming in Practice - Delegates and Events 10/7/2024 8:38:26 AM. Events and delegates control flow, exchange data, and notify a condition change backed by code samples.
  • How Func Delegates Work in LINQ9/27/2024 4:31:27 AM. In this article, we explore how Func delegates operate within LINQ (Language Integrated Query) in C#. Func delegates enable concise and powerful data manipulation by allowing developers to pass method
  • Understanding Callbacks with Func and Action Delegates9/26/2024 4:11:38 AM. This article explains how to use Func and Action delegates in C# to implement callbacks, providing flexible and reusable code. It includes practical examples for both returning and non-returning metho
  • Action And Func Delegates In C#9/12/2024 6:18:26 AM. In C#, Action, and Func are generic delegates used to handle methods. Action is used for methods that don't return a value, while Func returns a value. Action<int> executes a method with an
  • Func, Action And Local Function In C# 78/9/2024 12:03:08 PM. This article covers using Func, Action, and local functions in C# 7. It explains how Func returns a value, Action does not, and how local functions can be defined within other methods. Examples includ
  • Learn Use of Lambda Operator in C#7/1/2024 6:28:21 AM. Explore the versatility of lambda expressions in C#, powerful tools for creating inline functions without the need for traditional method declarations. Discover their syntax, applications in LINQ quer
  • Predicate Delegates in .NET Core C#: Syntax, Usage and Examples6/22/2024 10:26:47 AM. Like Func and Action delegates, the predicate is a delegate. It symbolizes a procedure that verifies that the passed parameter satisfies a set of requirements. One input parameter must be provided by
  • Learn Action and Func Delegates in C#6/19/2024 11:51:33 AM. Learn about Action and Func delegates in C# to master delegate usage for different scenarios. Action delegates are for methods that return void, while Func delegates handle methods with return values.
  • Action Delegates in .NET Core C#: Syntax, Usage and Examples6/18/2024 5:33:24 AM. One built-in generic type delegate is the action delegate. This delegate makes your program more readable and efficient by eliminating the need for you to define a custom delegate.
  • Func Delegates in .NET Core C#: Syntax, Usage and Examples6/13/2024 5:09:03 AM. Func and Action are two generic delegate types that are built into C#, so you usually don't need to explicitly define custom delegates. A generic delegate called Func is part of the System namespa
  • Delegates in .NET Core C#: Syntax, Usage and Examples6/11/2024 9:17:47 AM. A delegate is an object that points to a method; alternatively, it may be thought of as a variable of the reference type that stores references to the methods. Function pointer in C/C++, delegates are
  • Action and Func Delegates in C#5/18/2024 6:20:00 AM. Learn about Action and Func Delegates in C# with an app sample. In C#, delegates like `Action` and `Func` enable methods to be treated as objects, promoting flexible, modular, and reusable code throug
  • Exploring in Depth Of Abstraction in C#5/14/2024 11:09:13 AM. Dive deep into abstraction in C#, exploring OOP concepts like encapsulation, inheritance, and polymorphism. Learn about abstract classes, interfaces, generics, and advanced features like delegates and
  • Events in .NET5/9/2024 11:52:53 AM. An event is a message sent by an object to signal the occurrence of an action. This action caused by the user interaction such as button click, mouse click etc.
  • Event Handling In .NET4/27/2024 4:15:10 AM. Explore event handling in .NET, a fundamental aspect of event-driven programming. Learn about event handlers, delegates, and the EventSource class, diving into the publisher-subscriber pattern and bes
  • Delegates in .NET4/22/2024 8:57:01 AM. In this article, we will learn Delegates in .NET provide a powerful mechanism for defining and encapsulating methods, enabling flexible event handling and callback functionality.
  • Leveraging Compiled Queries for Enhanced Performance in LINQ3/9/2024 9:17:22 AM. Compiled queries in LINQ allow developers to pre-compile LINQ queries into executable delegates, reducing the overhead of query compilation and optimization. By caching the compiled query execution pl
  • .NET Delegates in Event-Based Asynchronous Pattern for Seniors2/26/2024 5:06:24 AM. This article dives into the practical learning of delegates, emphasizing real-world examples. It explores the Event-Based Asynchronous Pattern (EAP) in C# and its advantages, using delegates to implem
  • .NET Delegates for Mere Mortals: Introduction2/19/2024 7:27:20 AM. Explore .NET delegates practically in this article. Learn to use delegates for flexible, reusable code. Follow examples, download source code, and understand delegate syntax, including anonymous metho
  • Extending HttpClient With Delegating Handlers in ASP.NET Core1/17/2024 11:30:32 AM. Explore the power of the HttpClient class in ASP.NET Core through Delegating Handlers. Learn to create a custom handler for logging HTTP requests and responses, enhancing HttpClient functionality with
  • Understanding Action and Func Delegates in C#1/17/2024 10:02:38 AM. Two commonly used delegates in C# are the Action and Func delegates. Let's explore what they are and how to use them. Delegates in C# have some features that distinguish them from normal methods.
  • Exploring the Power of Action and Func Delegates in C#1/10/2024 8:34:48 AM. Delegates play a pivotal role in C# programming, offering the ability to pass methods as parameters, store them as variables, and create custom events and callbacks. Among these, two special types of
  • What is Delegates in C#?1/3/2024 7:50:45 AM. Explore the power of delegates in C#, providing type-safe function pointers for indirect method invocation. Learn declaration, initialization, characteristics, and use cases for enhanced code flexibil
  • Action and Func Delegates in C#1/2/2024 5:18:03 AM. Unlock the potential of Action and Func delegates in C# programming. Dive into the world of expressive and readable code, utilizing these powerful tools for method-passing, event handling, and more. H
  • C# Delegate: Everything You Need To Know About Delegate In C#12/8/2023 11:33:21 AM. In this tutorial, learn what is a delegate in C# and how delegates are implemented in C# code.
  • Design Pattern with .NET Delegates11/15/2023 6:13:19 AM. Your article is detailed and well-structured, providing a clear explanation of implementing design patterns using generic delegates.
  • Hello World In different Styles10/26/2023 9:43:29 AM. I've attempted to write the traditional 'Hello World' in different styles. This explores the different possibilities of addressing a problem - 'Hello World' with different features
  • Learning The Basics Of Delegates In C#10/25/2023 11:27:55 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 wh
  • Types of Delegates in C#10/25/2023 5:09:37 AM. Here in this article, I am going to explain the types of delegates in C# along with the example.
  • Delegates In C#10/18/2023 5:47:20 AM. Delegates in C# are a fundamental concept in the language. They are used to create reference types that can encapsulate methods with a specific signature, allowing you to treat methods as objects. Del
  • Look At Covariance And Contravariance In Delegates10/6/2023 10:32:36 AM. In this article, we will look into Covariance and Contravariance in Delegates using C#.In the context of delegates in C#, "covariance" and "contravariance" refer to the ability to
  • Delegates In C# Explained9/20/2023 8:13:19 AM. In this article, we look at delegates and how to multicast them.
  • Func, Action And Predicate Delegates In C#9/20/2023 7:01:21 AM. If you don't want to declare delegates every time, you can use some built-in delegates.
  • Calling Asynchronously Method Using BeginInvoke Method in C#9/19/2023 7:19:22 AM. Sometimes we need to call a method asynchronously and don’t want to wait until it completes execution.
  • Calling Parent Page Method From UserControl in C#9/15/2023 10:41:15 AM. In this article you will learn how to call a parent's page method from a UserControl in C#.
  • Func Delegate Using Lambda Expression In C#9/15/2023 7:29:10 AM. 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.
  • Learning Delegates In C#9/12/2023 10:45:45 AM. There is this thing in C# called a delegate, which is going to be crucial to build interactions between our objects. What’s a delegate, you ask? Good question. A delegate is a pointer to a method.
  • Custom Events And Delegates9/12/2023 10:44:06 AM. Custom events and delegates are fundamental concepts in modern programming languages like C#. They provide a powerful mechanism for implementing the observer pattern, enabling objects to communicate a
  • Delegate Uses In C#9/12/2023 4:23:28 AM. This article describes the uses of delegates in C#.Delegates in C# are powerful and versatile constructs that enable you to work with methods as first-class citizens. They provide a way to treat metho
  • Delegates in C#9/5/2023 10:00:22 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.
  • How And When To Use Delegates In Your Project9/1/2023 11:10:06 AM. In this article, you will learn how and when to use delegates in your project.
  • Delegates in C# 8/25/2023 9:09:14 AM. Explore the fundamental potency of C# delegates—vital for encapsulating methods as first-class entities. Empower callbacks and event management for efficient C# application development.
  • Delegates, Anonymous Method, And Lambda Expression In C#8/24/2023 10:58:50 AM. Delegates, Anonymous Methods, and Lambda Expressions in C# introduces essential concepts in C# programming related to delegates, anonymous methods, and lambda expressions. These features enable develo
  • Passing Data Between Forms Without Events and Delegates8/23/2023 10:36:02 AM. This article describes a simplified approach to allowing communication between forms without the use of events and delegates.
  • Different Ways To Create Delegates In C#8/21/2023 6:06:47 AM. This article is intended to explain the idea and concept to create Delegate with different approach.
  • Understanding C# Delegates8/14/2023 7:36:37 AM. Delegates in C# are a powerful feature that allow you to encapsulate a reference to a method inside a delegate object.
  • What is Delegates in C# .NET?8/12/2023 12:44:59 PM. Delegates in C# act as method pointers, enabling dynamic invocation of methods. They enhance code modularity and flexibility, finding use in event handling, callbacks, and asynchronous programming.
  • Learn Delegates In C#2/19/2023 6:28:44 PM. Delegate in C# is a type that allows methods to be passed as parameters. Learn how to work and implement delegates in your C# app to define callback methods and return parameters.
  • Events In C# - A Tutorial on C# Events2/12/2023 8:54:14 PM. This tutorial helps you understand events in C# and how to implement events in your C# .NET app.
  • Mastering Delegates and Events In C# .NET2/12/2023 4:24:56 PM. This tutorial and code example will teach you how to work with delegates in C#.
  • Asynchronous Programming Model: In Chasing The Ideal2/8/2023 10:35:50 AM. This articles talks about Asynchronous Programming Model and Asynchronous delegates.
  • Use Of Delegates In C# Events1/23/2023 5:05:44 AM. Here is an example of programs in C# that demonstrates the events with and without delegates.
  • Events And Delegates In Class Library And Worker Service12/21/2022 6:44:59 AM. In this article, you will learn about Events and Delegates in Class Library and Worker Service.
  • C# In Practice - Building Tech Support App12/1/2022 10:25:39 AM. In this article, you will learn about simple app building for beginners in C#.
  • A Strategy for Using Delegates in C#11/17/2022 6:52:27 AM. In a recent article comment I was asked for a sample of how to use a delegate and so I wanted to put together a sample of how we can use delegates in order to implement a strategy pattern in a way tha
  • Delegates Simplified11/17/2022 6:33:02 AM. 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.
  • Generic Delegates in C#11/17/2022 6:28:43 AM. In this article, let's try to understand generic delegates in the C# language.
  • C# Delegates In Practice - Implementing Observer Pattern With Delegates10/31/2022 5:32:13 AM. In this article, you will learn about C# Delegates In Practice - Implementing The Observer Pattern with Delegates.
  • Understanding <T> In C#8/31/2022 7:01:25 AM. In this article you will learn about what is &lt;T&gt; in C#.
  • Delegates And Events In C#8/24/2022 8:47:13 AM. A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object.
  • Use of Delegates in C#8/22/2022 10:59:28 AM. In this article, I explain delegates and multi-casting through delegates with an example.
  • Generic Delegates In C#5/17/2022 4:18:59 PM. Here ill describe that why we need Generic Delegates what are Generic Delegates, keyword used in Generic Delegates and their type with example
  • Delegates In C#5/16/2022 5:16:27 PM. Here we discuss that what are delegates and why we use delegates and how to use assign delegates.
  • Asynchronous Nature of Delegates5/9/2022 11:12:13 AM. In this article you will see the other face of the delegate type in C#, it will show you how you can invoke a method asynchronously using delegates.
  • Events Programming in C# 5/4/2022 10:59:11 AM. In this article, author discusses the events model in .NET and how to implement events in your applications using C#.
  • Delegates And Async Programming4/26/2022 10:46:02 AM. The .Net delegate type is essentially a type-safe, object oriented, function pointer.
  • Delegate And Async Programming C# (AsyncCallback And Object State)4/26/2022 10:26:16 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 w
  • Asynchronous Methods Calls in C#4/1/2022 11:59:25 AM. In this article I explain asynchronous methods calls.
  • Generics in C# - Part II4/1/2022 10:01:52 AM. 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 I4/1/2022 9:44:48 AM. 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 generi
  • Understanding About Delegates In C#3/31/2022 3:24:16 PM. In this article, you will learn about delegates in C#.
  • Simple and Multicast Delegates in C#3/29/2022 9:47:55 AM. This article describes how to define and use simple/multicast delegates in C#.
  • Delegates, Anonymous Functions and Lambda Expressions in C#2/23/2022 10:43:50 AM. This article provides the basics of C# delegates, c# anonymous function, lambda expressions and delegate with lambda expressions.
  • Action and Func Delegates in C# .NET2/15/2022 10:23:58 AM. Func and Action generic delegates were introduced in .NET 3.5. In this article, you will learn how to implement func and action in C#.
  • Using Delegates to Communication Between Windows Forms1/11/2022 10:10:36 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 ca
  • Action And Func Delegates In C#12/6/2021 3:01:23 PM. A brief article about the Action and Func Delegates in C#
  • Event Handling in .NET using C#11/16/2021 5:02:16 AM. In this article I discuss the event handling model in .NET using C#. The discussion starts with an introduction to the concept of delegates and then it extends that concept to events and event handlin
  • Asynchronous Programming In .NET3/3/2021 2:40:11 PM. In this article, you will learn about Asynchronous Programming in .NET.
  • Using Delegates in ASP.NET3/2/2021 9:33:46 AM. Delegates have always been a useful concept introduced in the .Net framework, but because of the difficulty of implementation, first-time developers might find it difficult to implement delegates in .
  • Delegates - Action vs Func vs Predicate9/2/2020 2:18:53 PM. In this article, we will see the usage for 3 types of delegates.
  • How Delegates Work In C#11/22/2019 2:58:18 AM. Learn everything you need to know to understand and work with delegates in C#. The video explains how delegates allow you to implement the strategy design pattern in a .NET idiomatic way.
  • Func Delegate In C#8/29/2019 3:42:41 AM. In this video, we will talk about Func delegate in C#.
  • Action Delegate Using Lambda Expression In C#8/9/2019 11:25:02 AM. This video shows the practical usage of Action Delegate in C# using Lambda expression.
  • Events And Delegates In C#4/24/2019 8:19:41 AM. In this article, you will learn about events and delegates in C#.
  • 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.
  • 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
  • Explore Delegates In C#1/24/2017 11:39:33 PM. In this article, you will explore delegates 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.
  • 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.
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download