int[] i = new int[] { 13,13,25,};
if (i.Contains(13))
{
Console.WriteLine("包含!");
}
把数值转换成字符串,然后使用字符串替换函数
object[] newArray = new object[arrayList.length];
int index=0;
for(int i=0;i
if(arrayList[i].ToString().IndexOf("3")<0)
{
newArray[index++] = arrayList[i];
}
}
public void doSth(int[] array,string s)
{
string temp;
foreach(int i in array)
{
temp=i.ToString()
if(temp.Contains(s))
{
temp.Replace(s,"")
i=Convert.ToInt32(temp);
}
}
}