c# - how do you remove the space -


got immutable part, miss that, all

hi all,

string test = "john, jane";  test.replace(" ","");  string[] tolist = test.split(',', ' ', ';'); 

how remove space in string or space shows potentially?

why there 3 items in array , not 2?

to remove space, replace empty string:

test = test.replace(" ", ""); 

note just calling string.replace won't - strings immutable, return value of string.replace reference new string relevant replacements.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -