功能:Asp.net(C#) 用 Linq 实现 数组A与数组B的交集
用途:比较图片相似程度,以此可以达到程序识别图片
int[] A = new int[] { 1, 2, 4, 6, 7, 8, 9 };
int[] B = new int[] { 1, 2, 3, 4, 5, 8, 9 };
var q = from a in A join b in B on a equals b select b;
foreach (var n in q)
{
Response.Write(n+",");
}
阅读(1870) | 评论(0) | 转发(0) |