Returns null if the input string is null or contains only whitespace, otherwise returns the input string unchanged.

public static string NullIfWhitespace(string input)
Returns:
string

Parameters

input string
In this article