示例#1
0
        private List <OrderMessageEx> DealMessage(List <OrderMessage> msgs)
        {
            if (msgs == null || msgs.Count == 0)
            {
                return(null);
            }

            var mes = msgs.Select(m => {
                var me = new OrderMessageEx();
                DynamicCopy.CopyProperties(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);
 }