/// <summary>
/// 判断一个数据是否在一个数组列表内,例如
/// FindInArray(new string {"123", "abc"}, "123")
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="array"></param>
/// <param name="value"></param>
/// <returns>若在数组中找到,返回true,否则返回false</returns>
public static bool FindInArray<T>(T[] array, T value)
{
foreach (T item in array)
if (item.Equals(value)) return true;
return false;
}