CloneSet1653


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.982class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1875
src/Iesi.Collections/Generic/DictionarySet.cs
28148
src/Iesi.Collections/Generic/DictionarySet.cs
Clone Instance
1
Line Count
8
Source Line
75
Source File
src/Iesi.Collections/Generic/DictionarySet.cs

                /// <summary>
                /// Adds all the elements in the specified collection to the set if they are not already present.
                /// </summary>
                /// <param name="c">A collection of objects to add to the set.</param>
                /// <returns><see langword="true" /> is the set changed as a result of this operation, <see langword="false" /> if not.</returns>
                public override bool AddAll(ICollection<T> c)
                {
                        bool changed = false;
                        foreach (T o in c)
                        {
                                changed |= this.Add(o);
                        }
                        return changed;
                }



Clone Instance
2
Line Count
8
Source Line
148
Source File
src/Iesi.Collections/Generic/DictionarySet.cs

                /// <summary>
                /// Remove all the specified elements from this set, if they exist in this set.
                /// </summary>
                /// <param name="c">A collection of elements to remove.</param>
                /// <returns><see langword="true" /> if the set was modified as a result of this operation.</returns>
                public override bool RemoveAll(ICollection<T> c)
                {
                        bool changed = false;
                        foreach (T o in c)
                        {
                                changed |= this.Remove(o);
                        }
                        return changed;
                }



Clone AbstractionParameter Count: 2Parameter Bindings

/// <summary>
/// Remove all the specified elements from this set, if they exist in this set.
/// Adds all the elements in the specified collection to the set if they are not already present.
/// </summary>
/// <param name="c">A collection of elements to remove.</param>
/// <returns><see langword="true" /> if the set was modified as a result of this operation.</returns>
/// <param name="c">A collection of objects to add to the set.</param>
/// <returns><see langword="true" /> is the set changed as a result of this operation, <see langword="false" /> if not.</returns>
public override bool [[#variable28b06600]](ICollection<T> c)
{
   bool changed = false;
   foreach (T o in c)
   {
      changed |= this. [[#variable284019e0]](o);
   }
   return changed;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28b06600]]
RemoveAll 
12[[#28b06600]]
AddAll 
21[[#284019e0]]
Remove 
22[[#284019e0]]
Add