[Extension()] public static Nullable<ushort> DepthOfAssignField( IMethod method, string assignedFieldFullName )
Parameters
- method
- This method.
- assignedFieldFullName
- The NDepend.CodeModel.ICodeElement.FullName of the assigned field.
The string assignedFieldFullName can contain wildcard '*' characters but cannot be just a single wildcard string "*".
If one or several fields are matched by assignedFieldFullName, this method has a assigning any behavior.
Return Value
assignedField being a NDepend.CodeModel.IField whose NDepend.CodeModel.ICodeElement.FullName is assignedFieldFullName:
Returns null if method is not directly nor indirectly assigning a assignedField.
Returns 0 if method is assigning a assignedField.
Returns 1 if method is calling a method that is assigning a assignedField.
Returns 2 if method is calling a method, that is calling a method, that is assigning a assignedField.
...
If a non-null number is returned, returns the lowest possible number.
Returns null if method is not directly nor indirectly assigning a assignedField.
Returns 0 if method is assigning a assignedField.
Returns 1 if method is calling a method that is assigning a assignedField.
Returns 2 if method is calling a method, that is calling a method, that is assigning a assignedField.
...
If a non-null number is returned, returns the lowest possible number.