28 lines
561 B
C#
28 lines
561 B
C#
using System;
|
|||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Linq;
|
||
|
|
using System.Text;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace JinYuan.Helper
|
||
|
|
{
|
||
|
|
public class StrUtil
|
||
|
|
{
|
||
|
|
public static bool IsExist(List<string> searchList, string[] desArr)
|
||
|
|
{
|
||
|
|
bool result = false;
|
||
|
|
|
||
|
|
foreach (string str in searchList)
|
||
|
|
{
|
||
|
|
if (desArr.Contains(str))
|
||
|
|
{
|
||
|
|
result = true;
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|