I trying to create a third list which is the result of combining two other lists, but I don't know how.
I've also been working on combining the first element in the first list (names) to the first element in the second list (states) and make them as the first element in the third list (employees).
For example, I would like the first element in the employee list to be as "Michael lives in Oregon".
I would really appreciate it if someone could help me with this. Thank you.
using System;
using System.Collections.Generic;
class Program
{
static void Main()
{
// Initializing and Declaring the Lists
List<string> names = new List<string>();
List<string> states = new List<string>();
List<string> employees = new List<string>();
// names
names.Add("Michael");
names.Add("Anna");
names.Add("Connor");
names.Add("Jane");
names.Add("Brian");
// states
states.Add("Oregon");
states.Add("Florida");
states.Add("New York");
states.Add("California");
states.Add("Kentucky");
}
}