using System.Collections.Generic;
public static void Main()
List<object> list = new List<object> { "text", "123", 123 };
.ForEach(Console.WriteLine);
Console.WriteLine("------------");
List<object> list2 = new List<object> { "text", "123", "456" };
.ForEach(Console.WriteLine);