MSDN Magazine: Delegates rss

All MSDN Magazine Topics
  • Advanced WPF: Understanding Routed Events And Commands In WPF
    Brian Noyes - September 2008
    See how routed events and routed commands in Windows Presentation Foundation form the basis for communication between the parts of your UI.

  • Foundations: Dependency Properties And Notifications
    Charles Petzold - September 2008
    Windows Presentation Foundation dependency properties don’t always play well with others. Learn how you can compensate for their lack of notification events.

  • Concurrent Affairs: Simplified APM with C#
    Jeffrey Richter - November 2007
    Jeffrey Richter introduces his AsyncEnumerator class and explains how it harnesses some recent additions to the C# programming language that make working with the asynchronous programming model significantly easier.

  • C# 3.0: The Evolution Of LINQ And Its Impact On The Design Of C#
    Anson Horton - June 2007
    LINQ gives allows developers to take advantage of the power of queries. Find out how it came to be.

  • VISUAL BASIC: Unleash The Power Of Query In Visual Studio "Orcas"
    Ting Liang and Kit George - June 2007
    LINQ, coming in the next version Visual Studio, codename "Orcas", adds type-safe data querying to .NET languages.

  • .NET Matters: Event Accessors
    Stephen Toub - November 2006
    Creating events on classes by adding the event keyword to a delegate member variable declaration.

  • Advanced Basics: Predicates and Actions
    Ken Getz - September 2006
    The System.Array and System.Collections.Generic.List classes provide methods that let you avoid writing code to loop through every element of an array or list to find the items you’re looking for. Ken Getz explains.

  • Get A Raise: Discover a Series of Fortunate Event Handlers in Visual Basic
    Ken Getz - June 2005
    You may use them every day, but how much do you really know about events? What's going on when you add an event handler to a class? In this article, Ken Getz demonstrates various ways to interact with events and event handlers, and shows how they can solve common problems. Along with the article, you can download two sample applications (one for Visual Basic .NET 2002 and 2003 and one for Visual Basic 2005) and follow along.

  • Basic Instincts: Asynchronous Method Execution Using Delegates
    Ted Pattison - January 2004


  • Basic Instincts: Programming Events of the Framework Class Libraries
    Ted Pattison - May 2003
    Some practical examples of handling some of the more commonly used events in the Microsoft .NET Framework.

  • Basic Instincts: Static Event Binding Using WithEvents
    Ted Pattison - March 2003
    This month's Basic Instincts column builds upon my last three columns in which I introduced and explained the fundamental concepts and syntax associated with delegates and events. Last month I showed you how to design and write a simple class that defines and raises events.

  • Delegates in .NET: A Primer on Creating Type-Safe References to Methods in Visual Basic .NET
    Jesse Liberty - February 2003
    Delegates, new in Visual Basic .NET, are type-safe, object-oriented references to methods. By using delegates, you make your methods accessible to others and therefore more extensible. This article provides an introduction to delegates, their benefits, and how they are used.Here the author shows you how to declare, create, and use delegates to invoke instance and shared methods at run time, and how to implement delegates as properties. He then goes on to provide examples of how delegates are used for callback functionality and explains the relationship between delegates and events. Finally, the article provides a glimpse at how delegates are implemented in intermediate language code by the Visual Basic .NET compiler.

  • Basic Instincts: Programming with Events Using .NET
    Ted Pattison - February 2003
    This month's Basic Instincts column builds upon my last two columns in which I talked about concepts and programming techniques associated with delegates. I will assume you have read the last two installments of this column and that you understand the role that delegates play within the Microsoft® .

  • Basic Instincts: Implementing Callbacks with a Multicast Delegate
    Ted Pattison - January 2003
    This month's column is a follow-up to the December 2002 installment in which I introduced the basic concepts and programming techniques associated with delegates. I am going to assume you have already read that column and that you are familiar with the fundamentals of programming delegates.

  • Basic Instincts: Implementing Callback Notifications Using Delegates
    Ted Pattison - December 2002
    Delegates are a critical aspect of the Microsoft® . NET Framework and are required learning for many programmers. They will take some time to master, but once you learn how to program with delegates, you'll be thrilled with the possibilities they offer.

  • Command Management: Use Design Patterns to Simplify the Relationship Between Menus and Form Elements in .NET
    Michael Foster and Gilberto Araya - October 2002
    In Windows Forms applications, similar commands, such as those in a menu and their counterparts on a toolbar, are not automatically related. They don't fire the same event or run the same handler routine. Yet code that allows the same or similar user commands to fire the same code simplifies development.This article describes the principles of command management and why it's important to have functional commands that are not exclusive to any one UI element. In order to provide an MFC-like command management infrastructure, a design pattern is developed and applied as a series of C# classes.

  • .NET Delegates: Making Asynchronous Method Calls in the .NET Environment
    Richard Grimes - August 2001
    One of the many great features of the .NET Framework is that it has asynchronous infrastructure built in. In .NET you can call any method asynchronously by defining a delegate for the method and calling the delegate's asynchronous methods. This is beneficial to your application because when a synchronous call is made, the calling thread is blocked until the method completes whereas an asynchronous call is made on a different thread, and this allows the original thread to continue its work while the asynchronous call is in progress.This article explains delegates in .NET and how to use them to perform asynchronous calls, eliminating age-old threading problems.

  • .NET Column: Implementation of Events with Delegates
    Jeffrey Richter - August 2001


  • .NET Column: Delegates, Part 2
    Jeffrey Richter - June 2001


  • .NET Column: An Introduction to Delegates
    Jeffrey Richter - April 2001