110,548
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
namespace ChangeIPAddress
{
class Program
{
static void Main()
{
List<int> x = new List<int>();
x.Add(1);
x.Add(2);
if (x.Exists(i => i == 0)) { }
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
namespace ChangeIPAddress
{
class Program
{
static void Main()
{
List<int> x = new List<int>();
x.Add(1);
x.Add(2);
if (x.Exists(i => i == 0)) { }
if (x.Any(i => i == 0)) { }
}
}
}