public override bool Equals(object obj) { if (!(obj is InventoryFolder)) { return(false); } InventoryFolder o = (InventoryFolder)obj; return(o.ID == ID); }