create new list with keys of list objects c# code example Example: c# new list object var intList = new List<int>();