Shiman’s Weblog

Collecting stones from the sea-shore.

C# .NET Delegates : Methods and Properties

The following table is a list of some of the public properties and methods of the MulticastDelegate type. Some of the members are inherited from System.Delegate.

Table: Delegate Members

Member

Description

BeginInvoke

Invokes a delegate asynchronously.

Combine

Combines delegates into a multicast delegate. This is a static method.

CreateDelegate

Defines a delegate at run time. This is a static method.

DynamicInvoke

Dynamically invokes a delegate that was created at run time.

EndInvoke

Requests the results of a delegate that was executed asynchronously.

Invoke

Executes a delegate, which calls all functions contained in the delegate.

Method

This is a property that returns the MethodInfo type of the last function in the invocation list. MethodInfo provides a description of a function.

Remove

Removes a delegate from a multicast delegate. This is a static method.

RemoveAll

Removes the invocation list of a delegate from the invocation list of another delegate. The result is returned. This is a static method.

Target

This is a property that returns the instance of the last function in the invocation list. For static functions, Target is null.

 

August 28, 2008 Posted by shiman | C#.Net, Computer Science, OOP, Programming | , , , , , , , , , | No Comments Yet