CloneSet501


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
29201.000block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
129221
src/NHibernate/Util/CollectionHelper.cs
229655
src/NHibernate/Util/CollectionHelper.cs
Clone Instance
1
Line Count
29
Source Line
221
Source File
src/NHibernate/Util/CollectionHelper.cs

                {
                        if (c1 == c2)
                        {
                                return true;
                        }

                        if (c1 == null || c2 == null)
                        {
                                return false;
                        }

                        if (c1.Count != c2.Count)
                        {
                                return false;
                        }

                        IEnumerator e1 = c1.GetEnumerator();
                        IEnumerator e2 = c2.GetEnumerator();

                        while (e1.MoveNext())
                        {
                                e2.MoveNext();
                                if ( !Equals(e1.Current, e2.Current))
                                {
                                        return false;
                                }
                        }

                        return true;
                }


Clone Instance
2
Line Count
29
Source Line
655
Source File
src/NHibernate/Util/CollectionHelper.cs

                {
                        if (c1 == c2)
                        {
                                return true;
                        }

                        if (c1 == null || c2 == null)
                        {
                                return false;
                        }

                        if (c1.Count != c2.Count)
                        {
                                return false;
                        }

                        IEnumerator e1 = c1.GetEnumerator();
                        IEnumerator e2 = c2.GetEnumerator();

                        while (e1.MoveNext())
                        {
                                e2.MoveNext();
                                if ( !Equals(e1.Current, e2.Current))
                                {
                                        return false;
                                }
                        }

                        return true;
                }


Clone AbstractionParameter Count: 0Parameter Bindings

{
   if (c1 == c2)
   {
      return true;
   }
   if (c1 == null || c2 == null)
   {
      return false;
   }
   if (c1.Count != c2.Count)
   {
      return false;
   }
   IEnumerator e1 = c1.GetEnumerator();
   IEnumerator e2 = c2.GetEnumerator();
   while (e1.MoveNext())
   {
      e2.MoveNext();
      if ( !Equals(e1.Current, e2.Current))
      {
         return false;
      }
   }
   return true;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None