NDepend.API Documentation
Overloads Property (IMethod)
NDepend.CodeModel Namespace > IMethod Interface : Overloads Property
Gets a sequence of methods declared in this method IMember.ParentType.MethodsAndConstructors, sharing the same ICodeElement.SimpleName with this method. The sequence returned doesn't contain this method.
Syntax
IEnumerable<IMethod> Overloads {get;}
Remarks
If this method doesn't have any overload, gets an empty sequence.
If this method is declared in a third party assembly, gets an empty sequence no matter this method is overloaded or not.
Properties getters IsOverloaded and NbOverloads are faster to invoke than this property getter and might be better suited in some situations.
This property getter has a O(this.IMember.ParentType.MethodsAndConstructors.Count) time complexity.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IMethod Interface
IMethod Members
IsOverloaded Property
NbOverloads Property