mscorlib(4.0.0.0) API with additions
|
Represents a multicast delegate; that is, a delegate that can have more than one element in its invocation list. More...
Public Member Functions | |
override void | GetObjectData (SerializationInfo info, StreamingContext context) |
Populates a T:System.Runtime.Serialization.SerializationInfo object with all the data needed to serialize this instance. More... | |
sealed override bool | Equals (object obj) |
Determines whether this multicast delegate and the specified object are equal. More... | |
sealed override Delegate [] | GetInvocationList () |
Returns the invocation list of this multicast delegate, in invocation order. More... | |
sealed override int | GetHashCode () |
Returns the hash code for this instance. More... | |
![]() | |
object | DynamicInvoke (params object[] args) |
Dynamically invokes (late-bound) the method represented by the current delegate. More... | |
override bool | Equals (object obj) |
Determines whether the specified object and the current delegate are of the same type and share the same targets, methods, and invocation list. More... | |
override int | GetHashCode () |
Returns a hash code for the delegate. More... | |
virtual object | Clone () |
Creates a shallow copy of the delegate. More... | |
Static Public Member Functions | |
static bool | operator== (MulticastDelegate d1, MulticastDelegate d2) |
Determines whether two T:System.MulticastDelegate objects are equal. More... | |
static bool | operator != (MulticastDelegate d1, MulticastDelegate d2) |
Determines whether two T:System.MulticastDelegate objects are not equal. More... | |
![]() | |
static Delegate | Combine (Delegate a, Delegate b) |
Concatenates the invocation lists of two delegates. More... | |
static Delegate | Combine (params Delegate[] delegates) |
Concatenates the invocation lists of an array of delegates. More... | |
static Delegate | Remove (Delegate source, Delegate value) |
Removes the last occurrence of the invocation list of a delegate from the invocation list of another delegate. More... | |
static Delegate | RemoveAll (Delegate source, Delegate value) |
Removes all occurrences of the invocation list of a delegate from the invocation list of another delegate. More... | |
static Delegate | CreateDelegate (Type type, object target, string method) |
Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance. More... | |
static Delegate | CreateDelegate (Type type, object target, string method, bool ignoreCase) |
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. More... | |
static Delegate | CreateDelegate (Type type, object target, string method, bool ignoreCase, bool throwOnBindFailure) |
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. More... | |
static Delegate | CreateDelegate (Type type, Type target, string method) |
Creates a delegate of the specified type that represents the specified static method of the specified class. More... | |
static Delegate | CreateDelegate (Type type, Type target, string method, bool ignoreCase) |
Creates a delegate of the specified type that represents the specified static method of the specified class, with the specified case-sensitivity. More... | |
static Delegate | CreateDelegate (Type type, Type target, string method, bool ignoreCase, bool throwOnBindFailure) |
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. More... | |
static Delegate | CreateDelegate (Type type, MethodInfo method, bool throwOnBindFailure) |
Creates a delegate of the specified type to represent the specified static method, with the specified behavior on failure to bind. More... | |
static Delegate | CreateDelegate (Type type, object firstArgument, MethodInfo method) |
Creates a delegate of the specified type that represents the specified static or instance method, with the specified first argument. More... | |
static Delegate | CreateDelegate (Type type, object firstArgument, MethodInfo method, bool throwOnBindFailure) |
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. More... | |
static bool | operator== (Delegate d1, Delegate d2) |
Determines whether the specified delegates are equal. More... | |
static bool | operator != (Delegate d1, Delegate d2) |
Determines whether the specified delegates are not equal. More... | |
static Delegate | CreateDelegate (Type type, MethodInfo method) |
Creates a delegate of the specified type to represent the specified static method. More... | |
Protected Member Functions | |
MulticastDelegate (object target, string method) | |
Initializes a new instance of the T:System.MulticastDelegate class. More... | |
MulticastDelegate (Type target, string method) | |
Initializes a new instance of the T:System.MulticastDelegate class. More... | |
sealed override Delegate | CombineImpl (Delegate follow) |
Combines this T:System.Delegate with the specified T:System.Delegate to form a new delegate. More... | |
sealed override Delegate | RemoveImpl (Delegate value) |
Removes an element from the invocation list of this T:System.MulticastDelegate that is equal to the specified delegate. More... | |
override MethodInfo | GetMethodImpl () |
Returns a static method represented by the current T:System.MulticastDelegate. More... | |
![]() | |
Delegate (object target, string method) | |
Initializes a delegate that invokes the specified instance method on the specified class instance. More... | |
Delegate (Type target, string method) | |
Initializes a delegate that invokes the specified static method from the specified class. More... | |
virtual object | DynamicInvokeImpl (object[] args) |
Dynamically invokes (late-bound) the method represented by the current delegate. More... | |
Additional Inherited Members | |
![]() | |
MethodInfo | Method [get] |
Gets the method represented by the delegate. More... | |
object | Target [get] |
Gets the class instance on which the current delegate invokes the instance method. More... | |
Represents a multicast delegate; that is, a delegate that can have more than one element in its invocation list.
Definition at line 15 of file MulticastDelegate.cs.
|
protected |
Initializes a new instance of the T:System.MulticastDelegate class.
target | The object on which method is defined. |
method | The name of the method for which a delegate is created. |
T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Definition at line 27 of file MulticastDelegate.cs.
|
protected |
Initializes a new instance of the T:System.MulticastDelegate class.
target | The type of object on which method is defined. |
method | The name of the static method for which a delegate is created. |
T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Definition at line 36 of file MulticastDelegate.cs.
Combines this T:System.Delegate with the specified T:System.Delegate to form a new delegate.
follow | The delegate to combine with this delegate. |
T:System.ArgumentException | follow does not have the same type as this instance. |
T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Reimplemented from System.Delegate.
Definition at line 251 of file MulticastDelegate.cs.
sealed override bool System.MulticastDelegate.Equals | ( | object | obj | ) |
Determines whether this multicast delegate and the specified object are equal.
obj | The object to compare with this instance. |
true
if obj and this instance have the same invocation lists; otherwise, false
.T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Definition at line 114 of file MulticastDelegate.cs.
sealed override int System.MulticastDelegate.GetHashCode | ( | ) |
Returns the hash code for this instance.
T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Definition at line 502 of file MulticastDelegate.cs.
|
virtual |
Returns the invocation list of this multicast delegate, in invocation order.
T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Reimplemented from System.Delegate.
Definition at line 446 of file MulticastDelegate.cs.
|
protectedvirtual |
Returns a static method represented by the current T:System.MulticastDelegate.
Reimplemented from System.Delegate.
Definition at line 548 of file MulticastDelegate.cs.
|
virtual |
Populates a T:System.Runtime.Serialization.SerializationInfo object with all the data needed to serialize this instance.
info | An object that holds all the data needed to serialize or deserialize this instance. |
context | (Reserved) The location where serialized data is stored and retrieved. |
T:System.ArgumentNullException | info is null . |
T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
T:System.Runtime.Serialization.SerializationException | A serialization error occurred. |
Reimplemented from System.Delegate.
Definition at line 65 of file MulticastDelegate.cs.
|
static |
Determines whether two T:System.MulticastDelegate objects are not equal.
d1 | The left operand. |
d2 | The right operand. |
true
if d1 and d2 do not have the same invocation lists; otherwise, false
.T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Definition at line 488 of file MulticastDelegate.cs.
|
static |
Determines whether two T:System.MulticastDelegate objects are equal.
d1 | The left operand. |
d2 | The right operand. |
true
if d1 and d2 have the same invocation lists; otherwise, false
.T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Definition at line 476 of file MulticastDelegate.cs.
Removes an element from the invocation list of this T:System.MulticastDelegate that is equal to the specified delegate.
value | The delegate to search for in the invocation list. |
T:System.MemberAccessException | Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism. |
Reimplemented from System.Delegate.
Definition at line 378 of file MulticastDelegate.cs.