Interface IUsed
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
codeElementUserICodeElementThe code element that potentially uses this code element.
Returns
- 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
assemblyUserIAssemblyThe assembly that potentially uses this code element.
Returns
IsUsedByEvent(IEvent)
Returns true if this code element is used by eventUser, otherwise returns false.
bool IsUsedByEvent(IEvent eventUser)
Parameters
eventUserIEventThe event that potentially uses this code element.
Returns
IsUsedByMethod(IMethod)
Returns true if this code element is used by methodUser, otherwise returns false.
bool IsUsedByMethod(IMethod methodUser)
Parameters
methodUserIMethodThe method that potentially uses this code element.
Returns
IsUsedByNamespace(INamespace)
Returns true if this code element is used by namespaceUser, otherwise returns false.
bool IsUsedByNamespace(INamespace namespaceUser)
Parameters
namespaceUserINamespaceThe namespace that potentially uses this code element.
Returns
IsUsedByProperty(IProperty)
Returns true if this code element is used by propertyUser, otherwise returns false.
bool IsUsedByProperty(IProperty propertyUser)
Parameters
propertyUserIPropertyThe property that potentially uses this code element.
Returns
IsUsedByType(IType)
Returns true if this code element is used by typeUser, otherwise returns false.
bool IsUsedByType(IType typeUser)
Parameters
typeUserITypeThe type that potentially uses this code element.