NAnt SDK Documentation - v0.92 |

# StringUtils.ConvertEmptyToNull Method

Converts an empty string ("") to a null reference (Nothing in Visual Basic).

[Visual Basic]
Public Shared Function ConvertEmptyToNull( _
ByVal value As String _
) As String
[C#]
public static string ConvertEmptyToNull(
string value
);

#### Parameters

value
  The value to convert.

#### Return Value

a null reference (Nothing in Visual Basic) if value is an empty string ("") or a null reference (Nothing in Visual Basic); otherwise, value.

#### See Also

StringUtils Class | NAnt.Core.Util Namespace