public AttachObject AddObject(object obj) { AttachObject attachObj = new AttachObject(obj); int key = attachObj.GetHashCode(); this.attachObjects.Add(key, attachObj); return attachObj; }
public AttachObject AddObject(object obj) { AttachObject attachObj = new AttachObject(obj); int key = attachObj.GetHashCode(); this.attachObjects.Add(key, attachObj); return(attachObj); }
public AttachObject GetObject(object obj) { AttachObject attach = null; if (obj != null) { this.attachObjects.TryGetValue(obj.GetHashCode(), out attach); } return(attach); }