标签:c# oar ring 比较 temp 个数 new int 数据
string[] arrRate = new string[] { "op1010", "op1020", "op1030", "op1040" , "op1050", "op1060", "op1070", "op1080", "op1090", "op1110" };//A
string[] arrTemp = new string[] { "op1010", "op1020", "op1030", "op1045" , "op1050", "op1060", "op1070", "op1080", "op1090" };//B
string[] arrUpd = arrRate.Intersect(arrTemp).ToArray();//相同的数据 (结果:"op1010", "op1020", "op1030", "op1050", "op1060", "op1070", "op1080", "op1090")
string[] arrAdd = arrRate.Except(arrTemp).ToArray();//A中有B中没有的 (结果:"op1040")
string[] arrNew = arrTemp.Except(arrRate).ToArray();//B中有A中没有的 (结果:"op1045")
标签:c# oar ring 比较 temp 个数 new int 数据
原文地址:https://www.cnblogs.com/luna-hehe/p/9146142.html