public class StatusA
{
public String StatusID { get; set; }
public String BID { get; set; }
}
public class StatusB : StatusA
{
public Boolean IsDone { get; set; }
}
public class ValueA
{
public String VID { get; set; }
}
public class ValueB:ValueA
{
public String StatusID { get; set; }
public String BID { get; set; }
}
public class ddd
{
public List<StatusA> Statusa = new List<StatusA>();
public List<StatusB> Statusb = new List<StatusB>();
public List<Value> ValueA = new List<Value>();
public List<Value> ValueB = new List<Value>();
------解决方案-------------------- 用linq吧
var s = from sa in Statusa
from sb in Statusb
from va in ValueA
from vb in ValueB
where sa.BID.Trim() == sb.BID.Trim() && sb.IsDone && sb.StatusID.Trim() == vb.StatusID.Trim() && sb.BID == vb.BID && vb.VID.Trim() == va.VID.Trim()
select new { sa, sb, va, vb }; ------解决方案-------------------- 各位早安。。。
我是群里来的。。。 ------解决方案--------------------