Table of Contents

MatchMember Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Extensions/TypeDecoratorExtensions.cs

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

decorator IDecorator<Type>

The IDecorator<T> to extend.

memberName string

The name of the member on the underlying Type of the decorator.

setup Action<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

decorator cannot be null -or- memberName cannot be null.

ArgumentException

memberName cannot be empty or consist only of white-space characters.