for(int i = 0;i < number;i++) { stringInList[i] = (i + 1) + ". " + stringInList[i]; }
List<string> tempList = new List<string>() { "bbb", "aaa", "ccc" }; tempList = tempList.OrderBy(rec => rec).Select((item, index) => (index + 1).ToString() + "." + item).ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)