Table of Contents

Class MethodAccessor

Namespace
FluentCommand.Reflection
Assembly
FluentCommand.dll

An accessor class for MethodInfo.

public class MethodAccessor : IMethodAccessor
Inheritance
MethodAccessor
Implements
Inherited Members

Constructors

MethodAccessor(MethodInfo)

Initializes a new instance of the MethodAccessor class.

public MethodAccessor(MethodInfo methodInfo)

Parameters

methodInfo MethodInfo

The method info.

Properties

MethodInfo

Gets the method info.

public MethodInfo MethodInfo { get; }

Property Value

MethodInfo

Name

Gets the name of the member.

public string Name { get; }

Property Value

string

The name of the member.

Methods

Invoke(object, params object[])

Invokes the method on the specified instance.

public object Invoke(object instance, params object[] arguments)

Parameters

instance object

The object on which to invoke the method. If a method is static, this argument is ignored.

arguments object[]

An argument list for the invoked method.

Returns

object

An object containing the return value of the invoked method.