NDepend.API Documentation
SimpleName Property
NDepend.CodeModel Namespace > ICodeElement Interface : SimpleName Property
Gets this code element simple name, without its eventual parameters signature nor its eventual generic signature not prefixed by its parent type or namespace name.
Syntax
string SimpleName {get;}
Remarks
  • If this code element is a IType, the simple name is is the type name without the parent namespace name nor the generic arity.
  • If this code element is a IMethod, the simple name is is the method name without the parent type name nor the parameters.
  • If this code element is a INamespace, the simple name is is the namespace name without the parent namespaces names.
  • If this code element is a IField or an IAssembly returns this.Name.
  • Requirements

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

    See Also

    Reference

    ICodeElement Interface
    ICodeElement Members
    Name Property
    FullName Property
    Overloads Property
    IsOverloaded Property
    NbOverloads Property
    WithSimpleName<TCodeElement> Method
    WithSimpleNameIn<TCodeElement> Method
    WithSimpleNameNotIn<TCodeElement> Method
    WithSimpleNameLike<TCodeElement> Method
    WithSimpleNameWildcardMatch<TCodeElement> Method
    WithSimpleNameWildcardMatchIn<TCodeElement> Method
    WithSimpleNameWildcardMatchNotIn<TCodeElement> Method
    ToSimpleNameLikePredicate Method