NDepend.API Documentation
HasExtension Method
NDepend.Path Namespace > IFilePath Interface : HasExtension Method
The file extension. It must begin with a dot followed by one or many characters.
Gets a value indicating whether this file name has the extension, extension.
Syntax
bool HasExtension( 
   string extension
)

Parameters

extension
The file extension. It must begin with a dot followed by one or many characters.

Return Value

true if this file name has the extension, extension.
Requirements

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

See Also

Reference

IFilePath Interface
IFilePath Members