Is List.ConvertAll the only way to apply TrimStart to elements of a
List<stringor is there a better way ?
Currently I'm doing this...
List<stringlst = new List<string>();
lst.AddRange(ne w string[] {"A test", " that you", " need to see!" });
lst = lst.ConvertAll< string>(delegat e(string line) { return
line.TrimStart( null); });
thanks
Sunit
List<stringor is there a better way ?
Currently I'm doing this...
List<stringlst = new List<string>();
lst.AddRange(ne w string[] {"A test", " that you", " need to see!" });
lst = lst.ConvertAll< string>(delegat e(string line) { return
line.TrimStart( null); });
thanks
Sunit
Comment