Exemplo n.º 1
0
 public AttachObject AddObject(object obj)
 {
     AttachObject attachObj = new AttachObject(obj);
     int key = attachObj.GetHashCode();
     this.attachObjects.Add(key, attachObj);
     return attachObj;
 }
Exemplo n.º 2
0
        public AttachObject AddObject(object obj)
        {
            AttachObject attachObj = new AttachObject(obj);
            int          key       = attachObj.GetHashCode();

            this.attachObjects.Add(key, attachObj);
            return(attachObj);
        }
Exemplo n.º 3
0
        public AttachObject GetObject(object obj)
        {
            AttachObject attach = null;

            if (obj != null)
            {
                this.attachObjects.TryGetValue(obj.GetHashCode(), out attach);
            }

            return(attach);
        }