예제 #1
0
        public void Add(MemberBase a_mb)
        {
            this._nameToMember[a_mb.Name] = a_mb;
            //			DataRow row = m_dtMembers.NewRow();
            //			m_dtMembers.Rows.Add(row);
            //
            //			row["Name"] = a_mb.Name;
            //			row["Hash"] = a_mb.GetHashCode();

            m_hashToMember[a_mb.GetHashCode()] = a_mb;

            m_aMembers.Add(a_mb);
        }
예제 #2
0
 public void Remove(MemberBase a_mb)
 {
     if (a_mb.Name==null)
     {
         return;
     }
     this._nameToMember.Remove(a_mb.Name);
     //			DataRow[] rows = m_dtMembers.Select("Hash = "+a_mb.GetHashCode());
     //			foreach (DataRow row in rows)
     //				m_dtMembers.Rows.Remove(row);
     m_hashToMember.Remove(a_mb.GetHashCode());
     m_aMembers.Remove(a_mb);
 }