コード例 #1
0
        public BHomework(Homework homework)
        {
            var       config       = new MapperConfiguration(cfg => cfg.CreateMap <Homework, BHomework>());
            Mapper    mapper       = new Mapper(config);
            BHomework tmpBHomework = mapper.Map <BHomework>(homework);

            this.Name        = tmpBHomework.Name;
            this.Deskription = tmpBHomework.Deskription;
        }
コード例 #2
0
 private bool Equals(BHomework other)
 {
     return(Name == other.Name &&
            Deskription == other.Deskription);
 }