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
Properties
MethodName
The name of the method used as a proxy
public string MethodName { get; }
Property Value
ProxyType
The type in which the proxy method is defined
public Type ProxyType { get; }
Property Value
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
MethodInfoThe method for which a proxy is needed
parameterTypes
Type[]The desired parameter types
proxyMethod
MethodInfoThe proxy method
Returns
- bool
True, if a suitable method was found, otherwise False
Exceptions
- ArgumentNullException
Thrown if parameterTypes is null