using System.Collections.Generic;
using System.Collections;
static void imprimirColeccion(List<string> nombres)
for(int i=0; i < nombres.Count; i++)
Console.WriteLine(nombres.ElementAt(i));
public static void Main()
ArrayList n1 = new ArrayList();
ArrayList n2 = new ArrayList();
ArrayList nombresGeneral = n1;
nombresGeneral.AddRange(n2);
Console.WriteLine("Todos los nombres");
imprimirColeccion(nombresGeneral.Cast<string>().ToList());
Console.WriteLine("\nSin repeticiones");
imprimirColeccion(nombresGeneral.Cast<string>().ToList().Distinct().ToList());