NDepend.API Documentation
GetNullOrEmptyDescElseGetString Method
NDepend.Helpers Namespace > ExtensionMethodsString Class : GetNullOrEmptyDescElseGetString Method
The string reference.
If str is null, returns the string "null".
If str is empty, returns the string "empty".
Else return str.
Syntax
[Extension()]
public static string GetNullOrEmptyDescElseGetString( 
   string str
)

Parameters

str
The string reference.
Requirements

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

See Also

Reference

ExtensionMethodsString Class
ExtensionMethodsString Members