PostSharp6.2/API Reference/Post­Sharp.​Reflection Namespace/Reflection­Search Class/Reflection­Search Methods/Reflection­Search.​Get­Members­Of­Type Method/Reflection­Search.​Get­Members­Of­Type Method (Type, Reflection­Search­Options)

ReflectionSearch.GetMembersOfType Method (Type, ReflectionSearchOptions)

Gets all members (FieldInfo, PropertyInfo, or ParameterInfo) of the assembly being processed of a given type and specifies additional options.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public static MemberTypeCodeReference[] GetMembersOfType(
	Type memberType,
	ReflectionSearchOptions options
)

Parameters

memberType
Type: System.Type
Member type.
options
Type: PostSharp.Reflection.ReflectionSearchOptions
Any combination of the options [!:ReflectionSearchOptions.UseReflectionWrappers] and IncludeTypeElement (partial type match).

Return Value

Type: MemberTypeCodeReference[]
The set of all members of type memberType in the assembly being processed
Remarks

Note Note

Note Note
This feature is available only at build time.

See Also