O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

MemberFilter

Synopsis

This delegate defines a function that is used to filter an array of MemberInfo objects. This method is run for each MemberInfo, and should return true to include the MemberInfo. The second parameter, filterCriteria, is an arbitrary argument that you may specify to be passed to the filter.

This delegate is used from the System.Type.FindMembers() method, and is designed to allow for high-level “searches” of a type’s members (fields, methods, properties, and so on) without having to code the actual looping logic itself.

public delegate bool MemberFilter(MemberInfo m, 
        object filterCriteria);  

Passed To

System.Type.FindMembers()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required