Table of Contents

Interface IUsed

Namespace
NDepend.CodeModel
Assembly
NDepend.API.dll

Represents a code element that can be used from another code element. This interface is implemented by IMethod, IField, IProperty, IEvent, IType, INamespace and IAssembly.

public interface IUsed
Extension Methods

Methods (7)

IsUsedBy(ICodeElement)

Returns true if this code element is used by codeElementUser, otherwise returns false.

bool IsUsedBy(ICodeElement codeElementUser)

Parameters

codeElementUser ICodeElement

The code element that potentially uses this code element.

Returns

bool
See Also
UsedBy<TUsed, TUser>(IEnumerable<TUsed>, TUser)

IsUsedByAssembly(IAssembly)

Returns true if this code element is used by assemblyUser, otherwise returns false.

bool IsUsedByAssembly(IAssembly assemblyUser)

Parameters

assemblyUser IAssembly

The assembly that potentially uses this code element.

Returns

bool

IsUsedByEvent(IEvent)

Returns true if this code element is used by eventUser, otherwise returns false.

bool IsUsedByEvent(IEvent eventUser)

Parameters

eventUser IEvent

The event that potentially uses this code element.

Returns

bool

IsUsedByMethod(IMethod)

Returns true if this code element is used by methodUser, otherwise returns false.

bool IsUsedByMethod(IMethod methodUser)

Parameters

methodUser IMethod

The method that potentially uses this code element.

Returns

bool

IsUsedByNamespace(INamespace)

Returns true if this code element is used by namespaceUser, otherwise returns false.

bool IsUsedByNamespace(INamespace namespaceUser)

Parameters

namespaceUser INamespace

The namespace that potentially uses this code element.

Returns

bool

IsUsedByProperty(IProperty)

Returns true if this code element is used by propertyUser, otherwise returns false.

bool IsUsedByProperty(IProperty propertyUser)

Parameters

propertyUser IProperty

The property that potentially uses this code element.

Returns

bool

IsUsedByType(IType)

Returns true if this code element is used by typeUser, otherwise returns false.

bool IsUsedByType(IType typeUser)

Parameters

typeUser IType

The type that potentially uses this code element.

Returns

bool

See Also