CloneSet307


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24210.995class_member_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12498
src/NHibernate/Collection/Generic/PersistentGenericBag.cs
224119
src/NHibernate/Collection/Generic/PersistentGenericList.cs
Clone Instance
1
Line Count
24
Source Line
98
Source File
src/NHibernate/Collection/Generic/PersistentGenericBag.cs

                #endregion
                #region ICollection<T> Members
                void ICollection<T>.Add(T item)
                {
                        if ( !IsOperationQueueEnabled)
                        {
                                Write();
                                gbag.Add(item);
                        }
                        else
                        {
                                QueueOperation(new SimpleAddDelayedOperation(this, item));
                        }
                }

                bool ICollection<T>.Contains(T item)
                {
                        bool ? exists = ReadElementExistence(item);
                        return !exists.HasValue ? gbag.Contains(item):  exists.Value;
                }

                void ICollection<T>.CopyTo(T[] array, int arrayIndex)
                {
                        for (int i = arrayIndex; i < Count; i++)
                        {
                                array.SetValue(this[i], i);
                        }
                }



Clone Instance
2
Line Count
24
Source Line
119
Source File
src/NHibernate/Collection/Generic/PersistentGenericList.cs

                #endregion
                #region ICollection<T> Members
                void ICollection<T>.Add(T item)
                {
                        if ( !IsOperationQueueEnabled)
                        {
                                Write();
                                glist.Add(item);
                        }
                        else
                        {
                                QueueOperation(new SimpleAddDelayedOperation(this, item));
                        }
                }

                bool ICollection<T>.Contains(T item)
                {
                        bool ? exists = ReadElementExistence(item);
                        return !exists.HasValue ? glist.Contains(item):  exists.Value;
                }

                void ICollection<T>.CopyTo(T[] array, int arrayIndex)
                {
                        for (int i = arrayIndex; i < Count; i++)
                        {
                                array.SetValue(this[i], i);
                        }
                }



Clone AbstractionParameter Count: 1Parameter Bindings

#endregion
#region ICollection<T> Members
void ICollection<T>.Add(T item)
{
   if ( !IsOperationQueueEnabled)
   {
      Write();
       [[#variable667ed7a0]].Add(item);
   }
   else
   {
      QueueOperation(new SimpleAddDelayedOperation(this, item));
   }
}

bool ICollection<T>.Contains(T item)
{
   bool ? exists = ReadElementExistence(item);
   return !exists.HasValue ?
           [[#variable667ed7a0]].Contains(item): exists.Value;
}

void ICollection<T>.CopyTo(T[] array, int arrayIndex)
{
   for (int i = arrayIndex; i < Count; i++)
   {
      array.SetValue(this[i], i);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#667ed7a0]]
glist 
12[[#667ed7a0]]
gbag