mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-19 06:27:15 +00:00
20 lines
401 B
C#
20 lines
401 B
C#
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<T>(this T item, params T[] items)
|
|
{
|
|
if (items == null)
|
|
throw new ArgumentNullException("items");
|
|
|
|
return items.Equals(item);
|
|
}
|
|
}
|
|
}
|