Just like the title says.
I\'ve tried doing str.Replace(\"\",\"0\");
but it gave me error because oldValue
has zero length.
Is it possi
It is not possible to replace string.Empty by "0". It will throw ArgumentException.
An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll.
Additional information: String cannot be of zero length.
You can try following code:
if(retString == string.Empty)
{
retString = "0";
}