DependencyKind Enum

Specifies how a type uses the type it depends on.

public enum DependencyKind

Fields

NameValueDescription
BaseType0The type inherits from the target.
Interface1The type implements the target.
Attribute2The type or one of its members has an attribute of this type, or an attribute argument is typeof(Target).
GenericConstraint3A generic parameter of the type or of a method is constrained to the target.
FieldType4A field has the target as its type.
PropertyType5A property or an indexer has the target as its type or the type of a parameter.
EventType6An event has the target as its type.
ParameterType7A parameter of a method has the target as its type.
ReturnType8A method returns the target.
LocalVariable9A local variable, or a variable captured by a lambda or a state machine, has the target as its type.
MethodCall10A method calls a method of the target, or uses it as a delegate.
FieldAccess11A method reads or writes a field of the target.
ObjectCreation12A method creates an instance of the target (new).
TypeUsage13A method uses the target in another instruction: cast, is, typeof, sizeof, default, boxing, array creation...
CatchClause14A method catches exceptions of the target type.