CloneSet268


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17240.954block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117249
src/NHibernate/Collection/Generic/PersistentGenericMap.cs
217363
src/NHibernate/Collection/PersistentMap.cs
Clone Instance
1
Line Count
17
Source Line
249
Source File
src/NHibernate/Collection/Generic/PersistentGenericMap.cs

                {
                        int c = Count;
                        TKey[] keys = new TKey[c];
                        TValue[] values = new TValue[c];
                        if (Keys != null)
                        {
                                Keys.CopyTo(keys, arrayIndex);
                        }
                        if (Values != null)
                        {
                                Values.CopyTo(values, arrayIndex);
                        }
                        for (int i = arrayIndex; i < c; i++)
                        {
                                if (keys[i] != null || values[i] != null)
                                {
                                        array.SetValue(new KeyValuePair<TKey, TValue> (keys[i], values[i]), i);
                                }
                        }
                }


Clone Instance
2
Line Count
17
Source Line
363
Source File
src/NHibernate/Collection/PersistentMap.cs

                {
                        int c = Count;
                        object[] keys = new object[c];
                        object[] values = new object[c];
                        if (Keys != null)
                        {
                                Keys.CopyTo(keys, index);
                        }
                        if (Values != null)
                        {
                                Values.CopyTo(values, index);
                        }
                        for (int i = index; i < c; i++)
                        {
                                if (keys[i] != null || values[i] != null)
                                {
                                        array.SetValue(new DictionaryEntry(keys[i], values[i]), i);
                                }
                        }
                }


Clone AbstractionParameter Count: 4Parameter Bindings

{
   int c = Count;
    [[#variable70aad280]][] keys = new [[#variable70aad280]][c];
    [[#variable70aad200]][] values = new [[#variable70aad200]][c];
   if (Keys != null)
   {
      Keys.CopyTo(keys, [[#variable70aad160]]);
   }
   if (Values != null)
   {
      Values.CopyTo(values, [[#variable70aad160]]);
   }
   for (int i = [[#variable70aad160]]; i < c; i++)
   {
      if (keys[i] != null || values[i] != null)
      {
         array.SetValue(new [[#variable70aad020]](keys[i], values[i]), i);
      }
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70aad280]]
TKey 
12[[#70aad280]]
object 
21[[#70aad200]]
TValue 
22[[#70aad200]]
object 
31[[#70aad160]]
arrayIndex 
32[[#70aad160]]
index 
41[[#70aad020]]
KeyValuePair<TKey, TValue> 
42[[#70aad020]]
DictionaryEntry