Open sandboxFocus

Method GetOutboundReferences

GetOutboundReferences(IDeclaration, CancellationToken)

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

Declaration
public static IEnumerable<IIntrospectionReference> GetOutboundReferences(this IDeclaration declaration, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IDeclaration declaration

The declaration to get outbound references for.

CancellationToken cancellationToken

A cancellation token.

Returns
Type Description
IEnumerable<IIntrospectionReference>

An enumerable of outbound references.