コード例 #1
0
        public ISimpleSet <T> Diff(ISimpleSet <T> other)
        {
            var set = new SimpleHashSet <T>();

            foreach (var item in this)
            {
                if (!other.Contains(item))
                {
                    set.Add(item);
                }
            }
            return(set);
        }
コード例 #2
0
 public bool Contains(long studentId, long courseId) => Set.Contains(new CreditData(studentId, courseId));