DependencyKind Enum
Specifies how a type uses the type it depends on.
public enum DependencyKindFields
| Name | Value | Description |
|---|---|---|
BaseType | 0 | The type inherits from the target. |
Interface | 1 | The type implements the target. |
Attribute | 2 | The type or one of its members has an attribute of this type, or an attribute argument is typeof(Target). |
GenericConstraint | 3 | A generic parameter of the type or of a method is constrained to the target. |
FieldType | 4 | A field has the target as its type. |
PropertyType | 5 | A property or an indexer has the target as its type or the type of a parameter. |
EventType | 6 | An event has the target as its type. |
ParameterType | 7 | A parameter of a method has the target as its type. |
ReturnType | 8 | A method returns the target. |
LocalVariable | 9 | A local variable, or a variable captured by a lambda or a state machine, has the target as its type. |
MethodCall | 10 | A method calls a method of the target, or uses it as a delegate. |
FieldAccess | 11 | A method reads or writes a field of the target. |
ObjectCreation | 12 | A method creates an instance of the target (new). |
TypeUsage | 13 | A method uses the target in another instruction: cast, is, typeof, sizeof, default, boxing, array creation... |
CatchClause | 14 | A method catches exceptions of the target type. |