在silverlight/c#中編程。從另一個列表中選擇列表項目
我有2所列出樹立正確的現在:
list<string> quote_id = new List<int>();
List<getdata> merge = new List<getdata>();
public class getdata
{
public string month { get; set; }
public string event_action_cd { get; set; }
public string quote_id { get; set; }
}
我真正想要的是與所有出現在兩個列表中的quote_id返回一個列表。
(sql語句:select * from quote_id,merge where quote_id.quote_id = merge.quote_id)
我該怎麼做?我知道Linq可能可以幫助我,但我是Linq運營商的新手。
謝謝!
抱歉是它的新列表,編輯複製/粘貼時出錯。合併功能 - 它使用哪個引用?我試過system.linq但是沒有 –
@ user2799598,它是'using System.Linq'; – Habib