我在互联网上寻找了一段时间,但却没有找到我真正需要的内容。我的问题是我有两个linq语句,我打算将它们合并成一个列表集合,但我想要删除那些重复的值。具体来说,以下是一个场景:
query 1 = "this is a test","Yes", "This is a remark"
"this is a test2","No", "This is the second remark"
query 2 = "this is a test","",""
"this is a test2","",""
"this is a test3","",""
"this is a test4","",""
现在我希望发生的事情是这样的:
"this is a test","Yes", "This is a remark"
"this is a test2","No", "This is the second remark",
"this is a test3","",""
"this is a test4","",""
我该如何在LINQ中实现这个功能?提前感谢您!