CloneSet878


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22220.983class_member_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122570
src/NHibernate/Collection/PersistentList.cs
222674
src/NHibernate/Collection/PersistentSet.cs
Clone Instance
1
Line Count
22
Source Line
570
Source File
src/NHibernate/Collection/PersistentList.cs

                        private readonly PersistentList enclosingInstance;

                        private readonly object value;

                        public SimpleRemoveDelayedOperation(PersistentList enclosingInstance, object value)
                        {
                                this.enclosingInstance = enclosingInstance;
                                this.value = value;
                        }

                        public object AddedInstance
                        {
                                get { return null;
                                    }
                        }

                        public object Orphan
                        {
                                get { return value;
                                    }
                        }

                        public void Operate()
                        {
                                enclosingInstance.list.Remove(value);
                        }



Clone Instance
2
Line Count
22
Source Line
674
Source File
src/NHibernate/Collection/PersistentSet.cs

                        private readonly PersistentSet enclosingInstance;

                        private readonly object value;

                        public SimpleRemoveDelayedOperation(PersistentSet enclosingInstance, object value)
                        {
                                this.enclosingInstance = enclosingInstance;
                                this.value = value;
                        }

                        public object AddedInstance
                        {
                                get { return null;
                                    }
                        }

                        public object Orphan
                        {
                                get { return value;
                                    }
                        }

                        public void Operate()
                        {
                                enclosingInstance.set.Remove(value);
                        }



Clone AbstractionParameter Count: 2Parameter Bindings

private readonly [[#variable54bafbe0]]enclosingInstance;

private readonly object value;

public SimpleRemoveDelayedOperation( [[#variable54bafbe0]]enclosingInstance, object value)
{
   this.enclosingInstance = enclosingInstance;
   this.value = value;
}

public object AddedInstance
{
   get
   {
      return null;
   }
}

public object Orphan
{
   get
   {
      return value;
   }
}

public void Operate()
{
   enclosingInstance. [[#variable54bafb80]].Remove(value);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54bafbe0]]
PersistentSet 
12[[#54bafbe0]]
PersistentList 
21[[#54bafb80]]
set 
22[[#54bafb80]]
list