예제 #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)
 {
 }