/// <summary> /// /// </summary> /// <param name="friendList"></param> internal void RemoveFriendList( Friend friendList ) { Monitor.Enter( m_LockFriendList ); { m_FriendList.Remove( friendList ); } Monitor.Exit( m_LockFriendList ); }
/// <summary> /// /// </summary> /// <param name="friendList"></param> internal void AddFriendList( Friend friendList ) { Monitor.Enter( m_LockFriendList ); { m_FriendList.Add( friendList ); } Monitor.Exit( m_LockFriendList ); }