IEnumerable<fishbiscuits> a = GetFishBiscuits(0);
IEnumerable<fishbiscuits> b = GetFishBiscuits(1);
if ([any of the results in either list match])
{
// Do something ie
Console.WriteLine("I see both a and b love at least one of the same type of fish biscuit!");
}
您能否使用 linq 查看两个 IEnumerables 数据是否包含任何公共(public)条目?
最佳答案
关于c# - 您能否使用 linq 查看两个 IEnumerables 数据是否包含任何公共(public)条目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5222531/