Table of Contents

Class ProxyMethodAttribute

Namespace
NMF.Expressions
Assembly
NMF.Expressions.dll

Denotes an attribute that denotes the definition of a proxy method

public abstract class ProxyMethodAttribute : Attribute
Inheritance
ProxyMethodAttribute
Derived
Inherited Members
Extension Methods

Constructors

ProxyMethodAttribute(Type, string)

Creates a new instance

protected ProxyMethodAttribute(Type proxyType, string methodName)

Parameters

proxyType Type

The type of the proxy

methodName string

The name of the method

Properties

MethodName

The name of the method used as a proxy

public string MethodName { get; }

Property Value

string

ProxyType

The type in which the proxy method is defined

public Type ProxyType { get; }

Property Value

Type

Methods

InitializeProxyMethod(MethodInfo, Type[], out MethodInfo)

Finds the proxy method for the given source method

public bool InitializeProxyMethod(MethodInfo sourceMethod, Type[] parameterTypes, out MethodInfo proxyMethod)

Parameters

sourceMethod MethodInfo

The method for which a proxy is needed

parameterTypes Type[]

The desired parameter types

proxyMethod MethodInfo

The proxy method

Returns

bool

True, if a suitable method was found, otherwise False

Exceptions

ArgumentNullException

Thrown if parameterTypes is null