CloneSet881


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17250.950class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11744
src/NHibernate/Util/StringHelper.cs
21763
src/NHibernate/Util/StringHelper.cs
Clone Instance
1
Line Count
17
Source Line
44
Source File
src/NHibernate/Util/StringHelper.cs

                public static string Join(string separator, IEnumerable objects)
                {
                        StringBuilder buf = new StringBuilder();
                        bool first = true;

                        foreach (object obj in objects)
                        {
                                if ( !first)
                                {
                                        buf.Append(separator);
                                }

                                first = false;
                                buf.Append(obj);
                        }

                        return buf.ToString();
                }



Clone Instance
2
Line Count
17
Source Line
63
Source File
src/NHibernate/Util/StringHelper.cs

                public static SqlString Join(SqlString separator, IEnumerable objects)
                {
                        SqlStringBuilder buf = new SqlStringBuilder();
                        bool first = true;

                        foreach (object obj in objects)
                        {
                                if ( !first)
                                {
                                        buf.Add(separator);
                                }

                                first = false;
                                buf.AddObject(obj);
                        }

                        return buf.ToSqlString();
                }



Clone AbstractionParameter Count: 5Parameter Bindings

public static [[#variable2c2383e0]]Join( [[#variable2c2383e0]]separator, IEnumerable objects)
{
    [[#variable2c2382c0]]buf = new [[#variable2c2382c0]]();
   bool first = true;
   foreach (object obj in objects)
   {
      if ( !first)
      {
         buf. [[#variable2bf83cc0]](separator);
      }
      first = false;
      buf. [[#variable26f0a900]](obj);
   }
   return buf. [[#variable2c2382e0]]();
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2c2383e0]]
SqlString 
12[[#2c2383e0]]
string 
21[[#2c2382c0]]
SqlStringBuilder 
22[[#2c2382c0]]
StringBuilder 
31[[#2bf83cc0]]
Add 
32[[#2bf83cc0]]
Append 
41[[#26f0a900]]
AddObject 
42[[#26f0a900]]
Append 
51[[#2c2382e0]]
ToSqlString 
52[[#2c2382e0]]
ToString