using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace bnhtrade.Core { static class Extensions { public static bool In(this T item, params T[] items) { if (items == null) throw new ArgumentNullException("items"); return items.Equals(item); } } }