Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 244.6k

remove comma when string is null c#

Apr 26 2016 5:44 AM
how to remove comma in string value i.e
 
 
i add to value like=
name = firstname+","+nickname;
 
show= devendra,dev
 
but when nickname ins not available then it show like:
 
devendra,
but i want when nickname is empty then is show only
 
devendra 

Answers (3)