mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-19 14:37:16 +00:00
Feature repricing min max (#10)
amazon settlement import/export improvements
This commit is contained in:
19
src/bnhtrade.Core/Extensions.cs
Normal file
19
src/bnhtrade.Core/Extensions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user