コード例 #1
0
        public bool IsOnList(string name, bool onlineOnly = false)
        {
            var isOnList = onlineOnly
                ? OnlineList.Contains(name)
                : List.Contains(name) || TemporaryAdd.Contains(name);

            return(isOnList && !TemporaryRemove.Contains(name));
        }
コード例 #2
0
        public bool Remove(string name, bool isTemporary = false)
        {
            OnlineList.Remove(name);

            return(isTemporary
                ? TemporaryAdd.Remove(name) || TemporaryRemove.Add(name)
                : List.Remove(name));
        }