最近想把一些CSV檔代入DataTable
這是我目前陣列裡的資料

寫入時會遇到標題上所顯示的問題
所以想請問我該如何做才能變成說
姓名,姓名1,姓名2,姓名3?
我目前只能取到姓名的最後一個索引
程式碼大略是這樣
 DataTable dt = new DataTable("tmp");
 string[] split = SplitCsvLine(line);   
 var splitlist = split.ToList();
  foreach (var a in splitlist)
  {
      objCellValue = a;
      cellValue = objCellValue == null ? "" : objCellValue.ToString();
      if (dt.Columns.Contains(cellValue))
       {
        var lastindex = splitlist.LastIndexOf(cellValue);
        if (lastindex > 0)
            {                             
                                 
                                    
            }
                                                                                   
       }
      dt.Columns.Add(cellValue, typeof(string));
}
split 就是圖中陣列的值
直接改CSV不是很快嗎?
所以想請問我該如何做才能變成說
姓名,姓名1,姓名2,姓名3?
I suggest add column name(s) like "姓名xx" into a List for checking.
If find in the list, then +1 and make the new column name(s) 姓名,姓名1,姓名2,姓名3