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