Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 1 | 0.995 | class_member_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 98 | src/NHibernate/Collection/Generic/PersistentGenericBag.cs |
2 | 24 | 119 | src/NHibernate/Collection/Generic/PersistentGenericList.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); } } |
| ||||
#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); } } |
| |||
#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#667ed7a0]] | glist |
1 | 2 | [[#667ed7a0]] | gbag |