Class MethodContext
Describes a method context.
Namespace: Solti.Utils.Proxy
Assembly: Solti.Utils.Proxy.dll
Syntax
public class MethodContext : Object
Constructors
MethodContext(MethodContext)
Creates a copy from the given source.
Declaration
protected MethodContext(MethodContext src)
Parameters
Type | Name | Description |
---|---|---|
MethodContext | src |
MethodContext(Func<Object, Object[], Object>, Int32, IReadOnlyDictionary<MethodInfo, MethodInfo>)
Creates a new MethodContext instance.
Declaration
public MethodContext(Func<object, object[], object> dispatch, int callIndex, IReadOnlyDictionary<MethodInfo, MethodInfo> mappings)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object, System.Object[], System.Object> | dispatch | |
System.Int32 | callIndex | |
System.Collections.Generic.IReadOnlyDictionary<System.Reflection.MethodInfo, System.Reflection.MethodInfo> | mappings |
Remarks
Calling this constructor is time consuming operation. It is strongly advised to cache the created instances.
Properties
Dispatch
Gets the dispatcher function.
Declaration
public Func<object, object[], object> Dispatch { get; }
Property Value
Type | Description |
---|---|
System.Func<System.Object, System.Object[], System.Object> |
InterfaceMember
The member (property, event or method) that is being invoked.
Declaration
public MemberInfo InterfaceMember { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MemberInfo |
InterfaceMethod
The concrete method behind the InterfaceMember.
Declaration
public MethodInfo InterfaceMethod { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |
TargetMember
The member (property, event or method) that is being targeted.
Declaration
public MemberInfo TargetMember { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MemberInfo |
TargetMethod
The concrete method behind the TargetMember.
Declaration
public MethodInfo TargetMethod { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |