代码如下:
private void FrmMain_Load(object sender, EventArgs e) { var list1 = Supplier.GetSuppliers(); var list2 = Product.GetProducts(); var listEnd = from a in list1 join b in list2 on new { id = a.SupplierID, name = a.Name } equals new { id = b.SupplierID, name = b.Name } select new { }; }