//----------------------------------------------------------------------------------------------------------------------------------------------------- internal void AddMember(MemberBase member) { m_Members.Add(member); if (member.MemberDeclaration != null) { m_MembersByDeclarations.Add(member.MemberDeclaration, member); m_MembersByName[member.Name] = member; } }
//----------------------------------------------------------------------------------------------------------------------------------------------------- internal void MoveMember(MemberBase member, ClassType destination) { m_Members.Remove(member); MemberBase memberByName; if (m_MembersByName.TryGetValue(member.Name, out memberByName) && memberByName == member) { m_MembersByName.Remove(member.Name); } destination.AddMember(member); }