CloneSet360


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
53230.988class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
153521
src/NHibernate/Util/SequencedHashMap.cs
253573
src/NHibernate/Util/SequencedHashMap.cs
Clone Instance
1
Line Count
53
Source Line
521
Source File
src/NHibernate/Util/SequencedHashMap.cs

                #endregion
                private class KeyCollection : ICollection
                {
                        private SequencedHashMap _parent;

                        public KeyCollection(SequencedHashMap parent)
                        {
                                _parent = parent;
                        }

                        #region System.Collections.ICollection Members

                        public int Count
                        {
                                get { return _parent.Count;
                                    }
                        }

                        public bool IsSynchronized
                        {
                                get { return false;
                                    }
                        }

                        public object SyncRoot
                        {
                                get { return this ;
                                    }
                        }

                        public void CopyTo(Array array, int index)
                        {
                                foreach (object obj in this )
                                {
                                        array.SetValue(obj, index++);
                                }
                        }

                        #endregion
                        #region System.Collections.IEnumerable Members
                        public IEnumerator GetEnumerator()
                        {
                                return new OrderedEnumerator(_parent, ReturnType.ReturnKey);
                        }

                        #endregion
                        public bool Contains(object o)
                        {
                                return _parent.ContainsKey(o);
                        }

                }



Clone Instance
2
Line Count
53
Source Line
573
Source File
src/NHibernate/Util/SequencedHashMap.cs

                private class ValuesCollection : ICollection
                {
                        private SequencedHashMap _parent;

                        public ValuesCollection(SequencedHashMap parent)
                        {
                                _parent = parent;
                        }

                        #region System.Collections.ICollection Members

                        public int Count
                        {
                                get { return _parent.Count;
                                    }
                        }

                        public bool IsSynchronized
                        {
                                get { return false;
                                    }
                        }

                        public object SyncRoot
                        {
                                get { return this ;
                                    }
                        }

                        public void CopyTo(Array array, int index)
                        {
                                foreach (object obj in this )
                                {
                                        array.SetValue(obj, index++);
                                }
                        }

                        #endregion
                        #region System.Collections.IEnumerable Members
                        public IEnumerator GetEnumerator()
                        {
                                return new OrderedEnumerator(_parent, ReturnType.ReturnValue);
                        }

                        #endregion
                        public bool Contains(object o)
                        {
                                return _parent.ContainsValue(o);
                        }

                }



Clone AbstractionParameter Count: 3Parameter Bindings

#endregion
private class [[#variable5e435c80]]: ICollection
{
   private SequencedHashMap _parent;

   public [[#variable5e435c80]](SequencedHashMap parent)
   {
      _parent = parent;
   }

   #region System.Collections.ICollection Members
   public int Count
   {
      get
      {
         return _parent.Count;
      }
   }

   public bool IsSynchronized
   {
      get
      {
         return false;
      }
   }

   public object SyncRoot
   {
      get
      {
         return this ;
      }
   }

   public void CopyTo(Array array, int index)
   {
      foreach (object obj in this )
      {
         array.SetValue(obj, index++);
      }
   }

   #endregion
   #region System.Collections.IEnumerable Members
   public IEnumerator GetEnumerator()
   {
      return new OrderedEnumerator(_parent, ReturnType. [[#variable5e435b80]]);
   }

   #endregion
   public bool Contains(object o)
   {
      return _parent. [[#variable5e435ae0]](o);
   }

}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e435c80]]
KeyCollection 
12[[#5e435c80]]
ValuesCollection 
21[[#5e435b80]]
ReturnKey 
22[[#5e435b80]]
ReturnValue 
31[[#5e435ae0]]
ContainsKey 
32[[#5e435ae0]]
ContainsValue