CloneSet1098


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11220.987class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111453
src/Iesi.Collections/Generic/Set.cs
211223
src/Iesi.Collections/Set.cs
Clone Instance
1
Line Count
11
Source Line
453
Source File
src/Iesi.Collections/Generic/Set.cs

                /// <summary>
                /// Performs ExclusiveOr when called trhough non-generic ISet interface
                /// </summary>
                /// <param name="a"></param>
                /// <returns></returns>
                protected virtual ISet NonGenericExclusiveOr(ISet a)
                {
                        ISet resultSet = (ISet) this.Clone();
                        foreach (object element in a)
                        {
                                if (resultSet.Contains(element))
                                        resultSet.Remove(element);
                                else
                                        resultSet.Add(element);
                        }
                        return resultSet;
                }



Clone Instance
2
Line Count
11
Source Line
223
Source File
src/Iesi.Collections/Set.cs

                /// <summary>
                /// Performs an "exclusive-or" of the two sets, keeping only the elements that
                /// are in one of the sets, but not in both.  The original sets are not modified
                /// during this operation.  The result set is a clone of this set containing
                /// the elements from the exclusive-or operation.
                /// </summary>
                /// <param name="a">A set of elements.</param>
                /// <returns>A set containing the result of <c>a ^ b</c>.</returns>
                public virtual ISet ExclusiveOr(ISet a)
                {
                        ISet resultSet = (ISet) this.Clone();
                        foreach (object element in a)
                        {
                                if (resultSet.Contains(element))
                                        resultSet.Remove(element);
                                else
                                        resultSet.Add(element);
                        }
                        return resultSet;
                }



Clone AbstractionParameter Count: 2Parameter Bindings

 [[#variable6e0bf440]]virtual ISet [[#variable26fa0860]](ISet a)
{
   ISet resultSet = (ISet)this.Clone();
   foreach (object element in a)
   {
      if (resultSet.Contains(element))
         resultSet.Remove(element);
      else
         resultSet.Add(element);
   }
   return resultSet;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6e0bf440]]
/// <summary>
/// Performs an "exclusive-or" of the two sets, keeping only the elements that
/// are in one of the sets, but not in both.  The original sets are not modified
/// during this operation.  The result set is a clone of this set containing
/// the elements from the exclusive-or operation.
/// </summary>
/// <param name="a">A set of elements.</param>
/// <returns>A set containing the result of <c>a ^ b</c>.</returns>
public 
12[[#6e0bf440]]
/// <summary>
/// Performs ExclusiveOr when called trhough non-generic ISet interface
/// </summary>
/// <param name="a"></param>
/// <returns></returns>
protected 
21[[#26fa0860]]
ExclusiveOr 
22[[#26fa0860]]
NonGenericExclusiveOr