C# Corner

Resources  
  • Creating your own cool Volume Control using GDI+Jan 23, 2001. In this article, I'll give you an example of creating your own control.
  • Handling Mouse Events in C#Jan 25, 2001. This article explains how to handle mouse events in C# or VB. In C#, you write a delegate and then write an event handler.
  • Implementing Delegates in C#Feb 04, 2001. 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. A base class is derived and the delegate calls a method on several classes derived from the base class.
  • Implementing Delegates in C# : Part 2Feb 13, 2001. This is second part of Timothy's Delegates in C# series...
  • Using Delegates to Choose Right FunctionApr 01, 2001. The need to call different class method based on some string passed to class is an old problem.
  • Events and DelegatesJul 26, 2001. Events in C# are based on delegates, the Originator defining one or more callback functions as delegates and the listening object then implements then.
  • Messaging between Threads using Message LoopAug 20, 2001. MessageLoopLib is a stripped down version of a complete, threading communication subsystem Ive written. This implementation is a single thread created in the GUI constructor. Ive dropped all thread management and have had to change some of the message code to accommodate this.
  • Exploring delegates in C#Oct 30, 2001. Delegates are a kind of type safe function pointers which are actually declared as class derived from System.MulticastDelegate.
  • Working with Namespaces in C#Nov 07, 2001. In C#, namespaces are used to logically arrange classes, structs, interfaces, enums and delegates. The namespaces in C# can be nested. That means one namespace can contain other namespaces also.
  • Observer and .NET event delegatesDec 17, 2001. The purpose of this article is to try to introduce observer pattern and compare it to .NET event delegate handling of notifications.
  • Event Handling in .NET using C#Mar 13, 2002. 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 handling in .NET.
  • Multithreading Part 4: The ThreadPool, Timer Classes and Asynchronous ProgrammingApr 16, 2002. In this article, I would discuss few more .NET classes and how and what role do they play a role in building multithreading applications.
  • Expression EvaluatorApr 30, 2002. This program uses the transformation from infix notation to postfix notation to evaluate most of the mathematical expressions.
  • Knob Control using Windows Forms and GDI+May 13, 2002. Control creation for windows form was never so easy like its now with .Net, although it needs some math skills if you want to create self drawn control.
  • Comparison of C# with Java: A Developer PerspectiveMay 29, 2002. The .NET is a language and operating system (on Windows as of now) independent platform pretty similar to Java.
  • Events in C# Made Easy - Lesson1Jan 02, 2003. Events are useful for updating a user interface with changed data, or causing a piece of code to run after another piece of code has completed. .NET has brought us a powerful model for programming events.
  • POP3 LibraryAug 29, 2003. This application is written in C# and is multithreaded, the allows the client application to invoke the POP3 library and get the messages, the status and the results of the POP3 events are passed back to the client application using the C# delegates.
  • Events Programming in C# Nov 24, 2003. In this article, author discusses the events model in .NET and how to implement events in your applications using C#.
  • Hello World in different StylesJan 09, 2004. 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 of C# language and .NET framework.
  • Real Life SQL and .NET :Using SQL with C#: Part VIIIJan 13, 2004. Welcome to the world of SQL and the huge, growing database technologies of today’s business all over the SQL world. By reading this article, we have begun accepting the knowledge that will soon be required for survival in today’s world of relational database and data management. Alas, for the reason that it is first necessary to provide a background of SQL and cover some preliminary concepts that we need to know, the majority of this article is text in paragraph format.
  • Anonymous Method to Retrieve Data Reader Passed from DALMay 03, 2005. Anonymous method is a new feature in C# 2.0 that allows you to define an anonymous method called by a delegate.
  • Configuring and Invoking Dynamic Delegate using ReflectionJul 26, 2005. The attached source code projects shows how to configure and invoke dynamic delegates using Reflection.
  • Understanding Delegates in C#Sep 15, 2005. Delegate is type which holds the method(s) reference in an object. It is also reffered as a type safe function pointers.
  • Delegates and Events in C#Oct 05, 2005. 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.
  • How do I Implement Custom Event Handling in C#Oct 27, 2005. In this article, we are going to show, how we can call custom event on our designed conditions.
  • Learning Delegates in C#, an IntroductionJan 03, 2006. 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. What’s that mean? Just like you can pass variable by reference, you can pass a reference to a method. Let me give you an example.
  • Understanding C# Events: What They Are and Where They Came FromJan 30, 2006. 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.
  • Writing C# 2.0 Unsafe CodeFeb 23, 2006. We will see that C# allows suspending the verification of code by the CLR to allow developers to directly access memory using pointers.
  • SpringButtonApr 04, 2006. This tutorial and the source code attached with it shows how to create nice looking buttons using C#.
  • Passing Data Between FormsMay 18, 2006. 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.
  • Using Delegates to Communication Between Windows FormsSep 04, 2006. 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
  • Custom Events and Delegates, An OverviewNov 22, 2006. An overview instructing you how to create delegates and custom event handlers in C#.NET.
  • Passing Data Between Windows FormsJan 16, 2007. 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.
  • Passing Data Between Forms Without Events and DelegatesJan 31, 2007. This article describes a simplified approach to allowing communication between forms without the use of events and delegates.
  • Simple and Multicast Delegates in C#.netJun 05, 2007. This article describes how to define and use simple/multicast delegates in C#.
  • A Strategy for Using Delegates in C#Jun 15, 2007. 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 that requires much less code that is easier to maintain than when approaching the same solution deriving sub classes using an OOP implementation.
  • Working with Delegates: Part IOct 04, 2007. We all are well aware about functions. In conventional way, we create object and we call object.method(). We know that they perform some given task and returns results based on the parameters we passed to them.
  • Functional Programming in C#: CurryingJan 13, 2008. Currying is a way to re-write a function with multiple arguments in such a way as it can be called as a chain of functions each with a single argument. This article covers using a few simple utility methods you can use to curry your methods.
  • Introduction to Functional Programming in C#Jan 13, 2008. With the release of the 3.5 framework, we have a completely different coding style available (functional programming). We could actually do functional programming in the 2.0 framework, but the resulting code was ugly and hard to understand at a glance and thus hard to maintain. Now, with lambda method syntax and extension methods, we can produce very human-readable code written in a functional style.
  • Chapter 33: Advanced Web ServicesFeb 22, 2008. This chapter describes how to extend your web service skills with specific techniques that are often important in real-world web service scenarios.
  • Delegates in C#Feb 29, 2008. 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.
  • Events in C#Mar 03, 2008. This article discusses events in c#. It will show you the relation between delegates and events.
  • Working with Delegates -Part IIMar 04, 2008. 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.
  • Anonymous methods in C#Mar 06, 2008. This article discusses the anonymous methods as a new feature in .NET 2.0, it will show you how to associate a delegate directly to a block of code statements at the time of event registration.
  • Asynchronous Nature of DelegatesMar 13, 2008. 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.
  • Methods, Delegates, Anonymous Delegates, and Lambda Expressions... Oh My!Mar 22, 2008. This article covers different syntax we can use for declaring and executing methods.
  • Generics in C# - Part IMar 28, 2008. 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.
  • Generics in C# - Part IIApr 11, 2008. 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.
  • Manage Data in a Win Forms Application (without the Database)May 12, 2008. 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.
  • Use CompiledQuery.Compile method to build parameterized DLINQ queriesAug 29, 2008. In this article, I will make use of the CompiledQuery.Compile generated method which receives a Lambda expression as parameter, and then it generates a delegate that returns a generic IQueryable object that one can enumerate it through a foreach loop.
  • What is DelegateSep 25, 2008. In this article i am going to explain about delegate.
  • Secrets of Accumulator FunctionsFeb 19, 2009. This article explains about Accumulator Functions in C#.
  • C# DelegatesMar 13, 2009. This article discusses the basics of delegates in C# and how to take advantage of delegates by implementing them in your applications.
  • Delegates IllustratedMar 25, 2009. This article Illustrates the delegates mechanism in c# and how they are tied to events.
  • C# DelegatesJun 15, 2009. The delegate topic seems to be a confusing and tough for most of the developers. In this article I will explain the basics of delegates and Event handling in C# in a simple manner.
  • Lambda Expression in c# 3.0Jul 07, 2009. This article will explain about Lambda expression and its usage. This article will also give differences between Lambda expression and Anonymous method. This article will talk about type inference in Lambda expression. This will also talk about delegate type conversion of lambda expression.
  • Delegates in C#Jul 24, 2009. In this article let us learn about Delegates in C#.
  • Raising Events, Event Handlers, and the Use of DelegatesAug 12, 2009. 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.
  • Events and DelegatesNov 09, 2009. In this article let us see about Events and Delegates through an example.
  • Types in C# Nov 13, 2009. In this article I will explain about data types in C#.
  • Delegates and Events in C#Nov 25, 2009. In this article I will explain about Delegates and Events in C#.
  • Look at Covariance and Contravariance in DelegatesApr 15, 2010. In this article, we will look into Covariance and Contravariance in Delegates using C#.
  • Events and Delegates in Remoting May 02, 2010. In this article I will explain you about Events and Delegates in Remoting.
  • 6 important uses of Delegates and EventsJun 02, 2010. 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.
  • Events/Delegates example in C#Aug 18, 2010. 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 use Delegate?Aug 18, 2010. Most of us would know what is delegate. But many us of don't use them efficient enough. In this project, I have shown different methods to use delegates.
  • Delegate to Lambda ExpressionSep 08, 2010. This article will not give any theoretical definition of Delegate, Anonymous method and Lambda Expression.
  • Use of Delegate and Lambda ExpressionSep 16, 2010. Here I would like to discuss about the use of Delegates and Lambda Expression’s. Lambda Expressions has been introduced in C# 3.0 (2008).
  • C# 4.0 Method ParametersOct 29, 2010. This article talks about optional parameters.
  • Delegates in C#Nov 01, 2010. This article discusses what delegates are and how they can be used in C# with lucid code examples.
  • ABC's of DelegateDec 12, 2010. This article helps you to understand the basics of delegates in .NET Framework.
  • Event Driven Programming with User ControlDec 15, 2010. In this article, I will discuss how to use delegates and events.
  • Delegate in .NET (C#): Digging / Acquaint - Make it SimpleJul 17, 2011. A delegate is an object or instance which can hold a reference of any function or which can bind a function.
  • Delegates And Async ProgrammingJul 21, 2011. The .Net delegate type is essentially a type-safe, object oriented, function pointer.
  • Delegate And Async Programming C# (AsyncCallback And Object State)Jul 22, 2011. 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.
  • How to Change Order of Event Handlers Execution at Run TimeAug 10, 2011. 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.
  • Events in .NETSep 21, 2011. 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.
  • Concept of a Delegate in C#Nov 12, 2011. An interesting and useful property of a delegate is that it does not know or care about the class of the object that it references. Any object will do; all that matters is that the method's argument types and return type match the delegate's
  • Let's Play Around With Main Interrelated Concepts of Delegates in C#Nov 26, 2011. 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.
  • Learning the Basics of Delegates in C#Dec 05, 2011. 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.
  • Using Dalegates in ASP.NET MVC Dec 12, 2011. This is a simple application for beginners that helps with how to create a delegate in an ASP.NET MVC application.
  • Anonymous Method in C#Jan 09, 2012. In this article you will see how to implement Anonymous Methods in C#.
  • What is Action in C#?Feb 21, 2012. Action is type of delegate. It returns no value. It may take 0 to 16 parameters.
  • Invoking a Form UI Method From a Different Thread Using DelegatesApr 14, 2012. How to invoke a form UI method from a different thread using delegates (inter-thread communication).
  • Working With Delegates in C#May 11, 2012. In this article I explain delegates and how we use them.
  • CacheItemRemovedCallback in ASP.NETJul 01, 2012. CacheItemRemovedCallback is a delegate that provides notification to a page when an item has been removed.
  • Functional Programming in Simple Terms: ExplainedAug 25, 2012. In this article we learn about Functional Programming in a very simple manner.
  • Use of Delegates in C#Aug 30, 2012. In this article I explain delegates and multi-casting through delegates with an example.
  • How to Code For IPhone Apps DevelopmentSep 13, 2012. In this article I will give you just a basic introduction of how to code in iPhone/iPad Technology.
  • Play With Action Delegates in ASP.NETOct 06, 2012. Today, in this article let’s play around with one of the interesting and most useful concepts in C#.
  • Play With Func DelegatesOct 06, 2012. Today, in this article let’s play around with one of the interesting and most useful concepts in C#.
  • Contra-variance Delegates in .NETOct 24, 2012. Today, in this article let’s play around with one of the interesting and most useful concepts in C#.
  • Co-variance Delegates in .NETOct 24, 2012. Today, in this article let’s play around with one of the interesting and most useful concepts in C#.
  • Manage Data in a VB Application (without the Database)Nov 09, 2012. 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.
  • Delegates in VB.NETNov 10, 2012. 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.
  • Event Handling in VB.NETNov 10, 2012. Events in the .NET Framework are based on the delegate model. Delegates are type-safe Function Pointers or Callbacks. A delegate can reference both static and instance methods.
  • Delegate in C#Dec 17, 2012. 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 related to delegates.
  • Using Delegates in ASP.NETJan 15, 2013. Here the main concern is how to read the data from the user control; for reading the data a delegate is used.
  • Table View Delegate and Datasource Method in iPhoneFeb 02, 2013. In this article I will explain all delegates and datasource methods in an iPhone
  • Asynchronous Methods Calls in C#Feb 07, 2013. In this article I explain asynchronous methods calls.

About delegate

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Visual Studio Live - Redmond 2016