Open sandboxFocus

Method GetInboundReferences

GetInboundReferences(IDeclaration, IntrospectionChildKinds, CancellationToken)

Gets inbound declaration references, i.e. the list of declarations that use the given declaration, in the projects loaded in the current Workspace.

Declaration
public static IEnumerable<IIntrospectionReference> GetInboundReferences(this IDeclaration declaration, IntrospectionChildKinds childKinds = IntrospectionChildKinds.ContainingDeclaration, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IDeclaration declaration
IntrospectionChildKinds childKinds
CancellationToken cancellationToken
Returns
Type Description
IEnumerable<IIntrospectionReference>