public InventoryBase(InventoryBase item) { ID = item.ID; ParentID = item.ParentID; Name = item.Name; OwnerID = item.OwnerID; ExtraData = item.ExtraData; // FIXME: Copy by value, not reference }
public override bool Equals(object obj) { if (!(obj is InventoryBase)) { return(false); } InventoryBase o = (InventoryBase)obj; return(o.ID == ID); }