StringUtils.

ConvertEmptyToNull(string) Method

Summary

Converts an empty string ("") to null.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Containing Type
StringUtils

Syntax

public static string ConvertEmptyToNull(string value)

Parameters

Name Type Description
value string The value to convert.

Return Value

Type Description
string null if value is an empty string ("") or null; otherwise, value.