Method NullIfEmpty
NullIfEmpty(String)
Returns null if value
is an empty string, otherwise returns value
.
Declaration
public static string NullIfEmpty(this string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value to convert to null if it is an empty string. |
Returns
Type | Description |
---|---|
System.String |