C# How to replace 0 (zero) with space

try this

return new FaultEntity()
{
   Nr = token[0]=="0"?" ":token[0],
   ...
};

for an integer value

int data = 10102;
string st = data.ToString();
var con = st.Replace('0', ' ');

Browse More Popular Posts

Leave a Comment