/// <summary cref="IEncodeable.IsEqual(IEncodeable)" /> public override bool IsEqual(IEncodeable encodeable) { if (Object.ReferenceEquals(this, encodeable)) { return(true); } ScooterType value = encodeable as ScooterType; if (value == null) { return(false); } if (!base.IsEqual(encodeable)) { return(false); } if (!Utils.IsEqual(m_noOfSeats, value.m_noOfSeats)) { return(false); } return(true); }
/// <summary cref="Object.MemberwiseClone" /> public new object MemberwiseClone() { ScooterType clone = (ScooterType)base.MemberwiseClone(); clone.m_noOfSeats = (uint)Utils.Clone(this.m_noOfSeats); return(clone); }
/// <summary> /// Конструктор для создания скутера /// </summary> /// <param name="name">Имя скутера</param> /// <param name="priceRent">Цена аренды в сутки</param> /// <param name="type">Тип скутера</param> public Scooter(string name, double priceRent, ScooterType type) { this.name = name; this.priceRent = priceRent; this.type = type; }