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

            this.attachObjects.Add(key, attachObj);
            return(attachObj);
        }
示例#3
0
        public AttachObject GetObject(object obj)
        {
            AttachObject attach = null;

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

            return(attach);
        }