コード例 #1
0
        public HotelBase(HotelBase toCopy)
        {
            var baseObject = (HotelBase)toCopy;

            foreach (var f in baseObject.GetType().GetProperties())
            {
                if (this.GetType().GetProperty(f.Name) != null)
                {
                    f.SetValue(this, f.GetValue(toCopy));
                }
            }
        }
コード例 #2
0
 public HotelForList(HotelBase hotelBase) : base(hotelBase)
 {
 }