PostSharp6.3/API Reference/Post­Sharp.​Reflection Namespace/Reflection­Search Class/Reflection­Search Methods/Reflection­Search.​Get­Methods­Using­Declaration Method/Reflection­Search.​Get­Methods­Using­Declaration Method (Member­Info)

ReflectionSearch.GetMethodsUsingDeclaration Method (MemberInfo)

Gets the set of methods and constructors whose body references a given (Type, FieldInfo, MethodInfo or ConstructorInfo).

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.3.9.0 (6.3.9.0)
Syntax
C#
public static MethodUsageCodeReference[] GetMethodsUsingDeclaration(
	MemberInfo declaration
)

Parameters

declaration
Type: System.Reflection.MemberInfo
The Type, FieldInfo, MethodInfo or ConstructorInfo whose references are requested.

Return Value

Type: MethodUsageCodeReference[]
An array of MethodUsageCodeReference containing one item for each method or constructor whose body references declaration.
Remarks

Note Note
This feature is available only at build time.

See Also