MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ReflectionReflection­SearchGet­Methods­Using­Declaration
Open sandboxFocus

ReflectionSearch.GetMethodsUsingDeclaration Method

GetMethodsUsingDeclaration(MemberInfo)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

Declaration
public static MethodUsageCodeReference[] GetMethodsUsingDeclaration(MemberInfo declaration)
Parameters
Type Name Description
System.Reflection.MemberInfo declaration
Returns
Type Description
MethodUsageCodeReference[]
See Also

GetMethodsUsingDeclaration(MemberInfo, ReflectionSearchOptions)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

Declaration
public static MethodUsageCodeReference[] GetMethodsUsingDeclaration(MemberInfo declaration, ReflectionSearchOptions options)
Parameters
Type Name Description
System.Reflection.MemberInfo declaration
ReflectionSearchOptions options
Returns
Type Description
MethodUsageCodeReference[]
See Also