コード例 #1
0
        public void MergeByBIDWith(BookEvaluaionList another)
        {
            var sub = another.Data.Except <BookEvaluaion>(Data, new BookEvaluaionCompareByBID());

            foreach (var item in sub)
            {
                Add(item);
            }
        }
コード例 #2
0
        public void MergeByBUIDWith(BookEvaluaionList another)
        {
            var sub = this.Data.Except <BookEvaluaion>(another.Data, new BookEvaluaionCompareByBUID());

            this.Data = new List <BookEvaluaion>();
            foreach (var item in another.Data)
            {
                this.Add(item);
            }
            foreach (var item in sub)
            {
                this.Add(item);
            }
        }