public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } com.wd.free.item.FreeItem other = (com.wd.free.item.FreeItem)obj; if (key == null) { if (other.key != null) { return(false); } } else { if (!key.Equals(other.key)) { return(false); } } return(true); }
public virtual com.wd.free.item.FreeItem Clone() { if (cloneBytes == null) { cloneBytes = SerializeUtil.ObjectToByte(this); } com.wd.free.item.FreeItem fi = (com.wd.free.item.FreeItem)SerializeUtil.ByteToObject(cloneBytes); fi.gridHeight = this.gridHeight; fi.gridWidth = this.gridHeight; return(fi); }