Bewerken

Delen via


MethodInvoker Class

Definition

Provides methods to invoke the method specified by the provided MethodBase.

public ref class MethodInvoker sealed
public sealed class MethodInvoker
type MethodInvoker = class
Public NotInheritable Class MethodInvoker
Inheritance
MethodInvoker

Remarks

The methods in this class provide better performance than Invoke(Object, Object[]) when compatibility with that method isn't necessary and when the caller can cache the MethodInvoker instance for additional invoke calls. Unlike Invoke(Object, Object[]), the invoke methods in this class don't look up default values for arguments when Missing is specified. In addition, the target method may be inlined for performance and not appear in stack traces.

Methods

Create(MethodBase)

Creates a new instance of MethodInvoker.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Invoke(Object, Object, Object, Object, Object)

Invokes the method using the specified arguments.

Invoke(Object, Object, Object, Object)

Invokes the method using the specified arguments.

Invoke(Object, Object, Object)

Invokes the method using the specified arguments.

Invoke(Object, Object)

Invokes the method using the specified arguments.

Invoke(Object, Span<Object>)

Invokes the method using the specified arguments.

Invoke(Object)

Invokes the method using the specified arguments.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to