using System; using System.Linq; using System.Collections; using System.Collections.Generic; public class Test { public static void Main() { Int32 x = 5; if (x == 1 || x == 2 || x == 5 || x == 13 || x == 14){ Console.WriteLine("Elongated If: Match!"); } Int32[] test = new[]{1, 2, 5, 13, 14}; if (test.Contains(x)){ Console.WriteLine("LINQ: Match!"); } if ((new ArrayList(test)).Contains(x)){ Console.WriteLine("ArrayList: Match!"); } if ((new List(test)).Contains(x)){ Console.WriteLine("List: Match!"); } } }