c# - remove a char from string or replace it by another in string array -
we have array of string this:
string[] names = new [] {"jo!oje","kaba!b","!zorrat","kotlet!","fat!!"};
and want remove '!'
each string. how can it?
names = names.select(x => x.replace("!", "")).toarray();
Comments
Post a Comment