NDepend.API Documentation
HasFileName Method (IFilePath)
NDepend.Path Namespace > IFilePath Interface : HasFileName Method
The file name to compare with
Gets a value indicating whether this file name has the file name, fileName.
Syntax
bool HasFileName( 
   string fileName
)

Parameters

fileName
The file name to compare with

Return Value

true if this file name has the file name, fileName.
Remarks
This method is for performance and avoid allocation a string through the getter of FileName.
Requirements

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

See Also

Reference

IFilePath Interface
IFilePath Members