CloneSet1373


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.992class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115374
src/NHibernate/Collection/PersistentBag.cs
214245
src/NHibernate/Collection/PersistentList.cs
Clone Instance
1
Line Count
15
Source Line
374
Source File
src/NHibernate/Collection/PersistentBag.cs

                public int Add(object value)
                {
                        if ( !IsOperationQueueEnabled)
                        {
                                Write();
                                return bag.Add(value);
                        }
                        else
                        {
                                QueueOperation(new SimpleAddDelayedOperation(this, value));

                                //TODO: take a look at this - I don't like it because it changes the 
                                // meaning of Add - instead of returning the index it was added at 
                                // returns a "fake" index - not consistent with IList interface...
                                return - 1;
                        }
                }



Clone Instance
2
Line Count
14
Source Line
245
Source File
src/NHibernate/Collection/PersistentList.cs

                #region IList Members
                public int Add(object value)
                {
                        if ( !IsOperationQueueEnabled)
                        {
                                Write();
                                return list.Add(value);
                        }
                        else
                        {
                                QueueOperation(new SimpleAddDelayedOperation(this, value));
                                //TODO: take a look at this - I don't like it because it changes the 
                                // meaning of Add - instead of returning the index it was added at 
                                // returns a "fake" index - not consistent with IList interface...
                                return - 1;
                        }
                }



Clone AbstractionParameter Count: 1Parameter Bindings

#region IList Members
public int Add(object value)
{
   if ( !IsOperationQueueEnabled)
   {
      Write();
      return [[#variable2d329fc0]].Add(value);
   }
   else
   {
      QueueOperation(new SimpleAddDelayedOperation(this, value));
      //TODO: take a look at this - I don't like it because it changes the 
      // meaning of Add - instead of returning the index it was added at 
      // returns a "fake" index - not consistent with IList interface...
      return - 1;
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2d329fc0]]
bag 
12[[#2d329fc0]]
list