C# Array.Contains () compilation error July 22, 2023 by Tarik You need to add using System.Linq; at the beginning of your program.