NDepend.API Documentation
ToEnvVarDirectoryPath Method
NDepend.Path Namespace > PathHelpers Class : ToEnvVarDirectoryPath Method
Represents the path.
Returns a new IEnvVarDirectoryPath object from this string.
Syntax
[Extension()]
public static IEnvVarDirectoryPath ToEnvVarDirectoryPath( 
   string pathString
)

Parameters

pathString
Represents the path.
Exceptions
ExceptionDescription
pathString is null.
pathString is empty or doesn't represents a valid directory path prefixed with an environment variable.
Remarks
The path represented by this string doesn't need to exist for this operation to complete properly. The environment variable prefixing the path doesn't need to exist for this operation to complete properly. The method IsValidEnvVarDirectoryPath(String) can be called to enfore pathString validity before calling this method, and avoid any exception.
Requirements

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

See Also

Reference

PathHelpers Class
PathHelpers Members