ReflectionSearch.GetDeclarationsUsedByMethod Method (MethodBase) |
Gets all declarations (Type,
FieldInfo, MethodInfo or ConstructorInfo) used
by the body of a given method or constructor.
Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static MethodUsageCodeReference[] GetDeclarationsUsedByMethod( MethodBase method )
Parameters
- method
- Type: System.Reflection.MethodBase
A MethodInfo or ConstructorInfo.
Return Value
Type: MethodUsageCodeReference[]An array of MethodUsageCodeReference containing one item for each declaration used by the body of method.
This feature is available only at build time. |