MemberFilter Delegate

Definition

Represents a delegate that is used to filter a list of members represented in an array of MemberInfo objects.

public delegate bool MemberFilter(MemberInfo m, object? filterCriteria);
public delegate bool MemberFilter(MemberInfo m, object filterCriteria);
[System.Serializable]
public delegate bool MemberFilter(MemberInfo m, object filterCriteria);
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public delegate bool MemberFilter(MemberInfo m, object filterCriteria);

Parameters

m
MemberInfo

The MemberInfo object to which the filter is applied.

filterCriteria
Object

An arbitrary object used to filter the list.

Return Value

true to include the member in the filtered list; otherwise false.

Attributes

Remarks

Every derived class of a Delegate and MulticastDelegate has a constructor and an Invoke method. (See the code example in Delegate.)

The FindMembers method uses this delegate to filter the list of members that it returns.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.5, 1.6, 2.0, 2.1

See also