private List <OrderMessageEx> DealMessage(IEnumerable <OrderMessage> msgs) { if (msgs == null || msgs.Count() == 0) { return(new List <OrderMessageEx>()); } var mes = msgs.Select(m => { var me = new OrderMessageEx(); DynamicCopy.CopyTo(m, me); return(me); }).ToList(); var f = mes.First().Sender; mes.ForEach(m => { m.Left = m.Sender.Equals(f); }); return(mes); }
public CheckableSuccinctProduct(SuccinctProduct p) { //DynamicCopy.CopyProperties(p, this); DynamicCopy.CopyTo(p, this); }