[Extension()] public static Nullable<ushort> DepthOfCreateA( IMethod method, string createdTypeFullName )
Parameters
- method
- This method.
- createdTypeFullName
- The NDepend.CodeModel.ICodeElement.FullName of the instantiated type.
The string createdTypeFullName can contain wildcard '*' characters but cannot be just a single wildcard string "*".
If one or several types are matched by createdTypeFullName, this method has a creates an instance of any behavior.
Return Value
createdType being a NDepend.CodeModel.IType whose NDepend.CodeModel.ICodeElement.FullName is createdTypeFullName:
Returns null if method is not directly nor indirectly creating an instance of createdType.
Returns 0 if method is a constructor of createdType.
Returns 1 if method is calling a constructor of createdType.
Returns 2 if method is calling a method, that is calling a constructor of createdType.
...
If a non-null number is returned, returns the lowest possible number.
Returns null if method is not directly nor indirectly creating an instance of createdType.
Returns 0 if method is a constructor of createdType.
Returns 1 if method is calling a constructor of createdType.
Returns 2 if method is calling a method, that is calling a constructor of createdType.
...
If a non-null number is returned, returns the lowest possible number.