Click or drag to resize
Delegate Class
Represents a delegate, which is a data structure that refers to a static method or to a class instance and an instance method of that class.
Inheritance Hierarchy

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class Delegate : ICloneable, 
	ISerializable

The Delegate type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCombine(Delegate)
Concatenates the invocation lists of an array of delegates.
Public methodStatic memberCombine(Delegate, Delegate)
Concatenates the invocation lists of two delegates.
Public methodStatic memberCreateDelegate(Type, MethodInfo)
Creates a delegate of the specified type to represent the specified static method.
Public methodStatic memberCreateDelegate(Type, Object, MethodInfo)
Creates a delegate of the specified type that represents the specified static or instance method, with the specified first argument.
Public methodStatic memberCreateDelegate(Type, Object, String)
Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance.
Public methodStatic memberCreateDelegate(Type, MethodInfo, Boolean)
Creates a delegate of the specified type to represent the specified static method, with the specified behavior on failure to bind.
Public methodStatic memberCreateDelegate(Type, Type, String)
Creates a delegate of the specified type that represents the specified static method of the specified class.
Public methodStatic memberCreateDelegate(Type, Object, MethodInfo, Boolean)
Creates a delegate of the specified type that represents the specified static or instance method, with the specified first argument and the specified behavior on failure to bind.
Public methodStatic memberCreateDelegate(Type, Object, String, Boolean)
Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance with the specified case-sensitivity.
Public methodStatic memberCreateDelegate(Type, Type, String, Boolean)
Creates a delegate of the specified type that represents the specified static method of the specified class, with the specified case-sensitivity.
Public methodStatic memberCreateDelegate(Type, Object, String, Boolean, Boolean)
Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance, with the specified case-sensitivity and the specified behavior on failure to bind.
Public methodStatic memberCreateDelegate(Type, Type, String, Boolean, Boolean)
Creates a delegate of the specified type that represents the specified static method of the specified class, with the specified case-sensitivity and the specified behavior on failure to bind.
Public methodEquals
Determines whether the specified object and the current delegate are of the same type and share the same targets, methods, and invocation list.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns a hash code for the delegate.
(Overrides ObjectGetHashCode.)
Public methodGetInvocationList
Returns the invocation list of the delegate.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRemove
Removes the last occurrence of the invocation list of a delegate from the invocation list of another delegate.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether the specified delegates are equal.
Public operatorStatic memberInequality
Determines whether the specified delegates are not equal.
Top
Properties
  NameDescription
Public propertyMethod
Gets the method represented by the delegate.
Public propertyTarget
Gets the class instance on which the current delegate invokes the instance method.
Top
See Also