删除数组中的元素
public static string[] CutString()
{
string[] cut = { "12","34","12","442","1"};
string[] ins = { "34","442"};
if (cut.Length <= ins.Length)
{
return null;
}
List<string> result = cut.ToList();
for (int i = 0; i < ins.Length; i++)
{
if (Array.IndexOf(cut, ins[i]) > -1)
{
result.Remove(ins[i]);
}
}
return result.ToArray();
}