Just like the title says.
I\'ve tried doing str.Replace(\"\",\"0\"); but it gave me error because oldValue has zero length.
str.Replace(\"\",\"0\");
oldValue
Is it possi
Try This...
public string Method1() { string retString = string.Empty; //Do Something return string.IsNullOrEmpty(retString)?"0":retString; }