コード例 #1
0
ファイル: Set.cs プロジェクト: RanadeepPolavarapu/LoLNotes
 /// <summary>
 /// Returns union of two sets.
 /// </summary>
 public static Set Union(Set a, Set b)
 {
     a.CheckComparer(b);
     Set result = new Set(a.Comparer);
     SetOp.Union(a, b, a.Comparer, new Inserter(result));
     return result;
 }
コード例 #2
0
ファイル: Set.cs プロジェクト: ResQue1980/LoLTeamChecker
        /// <summary>
        /// Returns intersection of two sets.
        /// </summary>
        /// <remarks>Intersection contains elements present in both sets.</remarks>
        public static Set Intersection(Set a, Set b)
        {
            a.CheckComparer(b);
            Set result = new Set(a.Comparer);

            SetOp.Inersection(a, b, a.Comparer, new Inserter(result));
            return(result);
        }
コード例 #3
0
ファイル: Set.cs プロジェクト: ResQue1980/LoLTeamChecker
        /// <summary>
        /// Returns symmetric difference of two sets.
        /// </summary>
        /// <remarks>
        /// Symmetric difference contains elements present in one of the sets, but not in both
        /// </remarks>
        public static Set SymmetricDifference(Set a, Set b)
        {
            a.CheckComparer(b);
            Set result = new Set(a.Comparer);

            SetOp.SymmetricDifference(a, b, a.Comparer, new Inserter(result));
            return(result);
        }
コード例 #4
0
ファイル: Set.cs プロジェクト: mstaessen/fluorinefx
        /// <summary>
        /// Returns union of two sets.
        /// </summary>
        public static Set Union(Set a, Set b)
        {
            a.CheckComparer(b);
            var result = new Set(a.Comparer);

            SetOp.Union(a, b, a.Comparer, new Inserter(result));
            return(result);
        }
コード例 #5
0
ファイル: Set.cs プロジェクト: Joy011024/PickUpData
        public static Set Union(Set a, Set b)
        {
            a.CheckComparer(b);
            Set collection = new Set(a.Comparer);

            SetOp.Union(a, b, a.Comparer, new Inserter(collection));
            return(collection);
        }
コード例 #6
0
ファイル: Set.cs プロジェクト: Joy011024/PickUpData
        public static Set SymmetricDifference(Set a, Set b)
        {
            a.CheckComparer(b);
            Set collection = new Set(a.Comparer);

            SetOp.SymmetricDifference(a, b, a.Comparer, new Inserter(collection));
            return(collection);
        }
コード例 #7
0
ファイル: Set.cs プロジェクト: RanadeepPolavarapu/LoLNotes
 /// <summary>
 /// Returns symmetric difference of two sets.
 /// </summary>
 /// <remarks>
 /// Symmetric difference contains elements present in one of the sets, but not in both
 /// </remarks>
 public static Set SymmetricDifference(Set a, Set b)
 {
     a.CheckComparer(b);
     Set result = new Set(a.Comparer);
     SetOp.SymmetricDifference(a, b, a.Comparer, new Inserter(result));
     return result;
 }