MatchMember Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
MatchMember(IDecorator<Type>, string, Action<MethodBaseOptions>)
Conduct a search for memberName using the specified setup on the underlying Type of the decorator.
public static MethodBase MatchMember(this IDecorator<Type> decorator, string memberName, Action<MethodBaseOptions> setup = null)
Parameters
decoratorIDecorator<Type>The IDecorator<T> to extend.
memberNamestringThe name of the member on the underlying Type of the
decorator.setupAction<MethodBaseOptions>The MethodBaseOptions which may be configured.
Returns
- MethodBase
A MethodBase object representing the method that matches the specified requirements, if found on the underlying Type of the
decorator; otherwise,null.
Exceptions
- ArgumentNullException
decoratorcannot be null -or-memberNamecannot be null.- ArgumentException
memberNamecannot be empty or consist only of white-space characters.