Пример #1
0
        public override bool Equals(object obj)
        {
            obj.GetType();
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            MarketItem temp = (MarketItem)obj;

            if (temp._Price != this._Price || temp.DateBought != this.DateBought || temp.Description != this.Description || temp.Discount != this.Discount ||
                temp.Gender != this.Gender || temp.Id != this.Id || temp.Image != this.Image || temp.Name != this.Name || temp.AddedToMarket != this.AddedToMarket ||
                temp.Race != this.Race || temp.TimeLimit != this.TimeLimit)
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
 public void AddToInventory(MarketItem item)
 {
     _Inventory.Add(item);
 }