using System;
using System.Linq;
public class Program
{
public static void Main()
string[] nonEmptyArray = { "A", "B", "A" };
Console.WriteLine("Single: {0}", nonEmptyArray.SingleOrDefault(v => v == "B"));
}