How to concat values of item and item1 in the list above : public ActionResult Indexx() { using (db) { FieldInfo[] mytables = db.GetType().GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); List<string> tbllistname = new List<string>(); string[] proinfo = new string[] { " CREATE ", " READ " , " EDIT " , " DELETE " }; foreach (var item in mytables) { foreach (var item1 in proinfo) { tbllistname.Add(item.Name.Split('<', '>')[1]); //CONCAT ITEM1 } } ViewBag.MyTables = tbllistname; } return View(); }
tbllistname.Add(item.Name.Split('<', '>')[1] + " " + item1 );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)