Uređivanje

Dijeli putem


ConstructorInvoker Class

Definition

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

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

Remarks

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

Methods

Create(ConstructorInfo)

Creates a new instance of ConstructorInvoker.

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()

Invokes the constructor.

Invoke(Object, Object, Object, Object)

Invokes the constructor using the specified arguments.

Invoke(Object, Object, Object)

Invokes the constructor using the specified arguments.

Invoke(Object, Object)

Invokes the constructor using the specified arguments.

Invoke(Object)

Invokes the constructor using the specified arguments.

Invoke(Span<Object>)

Invokes the constructor 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