コード例 #1
0
        public SetCustom ExceptWith(SetCustom other)
        {
            SetCustom result = new SetCustom(_items);

            foreach (var item in other)
            {
                result.Remove(item);
            }
            return(result);
        }
コード例 #2
0
        public bool Subset(SetCustom other)
        {
            SetCustom result = new SetCustom(_items);

            foreach (var item in other._items)
            {
                result.Remove(item);
            }

            if (result == null)
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }