Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
40 | 2 | 2 | 0.982 | class_member_declarations[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 40 | 392 | src/NHibernate/Collection/PersistentBag.cs |
2 | 40 | 399 | src/NHibernate/Collection/PersistentIdentifierBag.cs |
| ||||
public bool IsFixedSize { get { return false; } } #endregion #region ICollection Members public bool IsSynchronized { get { return false; } } public int Count { get { return ReadSize() ? CachedSize: bag.Count; } } public void CopyTo(Array array, int index) { for (int i = index; i < Count; i++) { array.SetValue(this[i], i); } } public object SyncRoot { get { return this ; } } #endregion #region IEnumerable Members public IEnumerator GetEnumerator() { Read(); return bag.GetEnumerator(); } |
| ||||
public bool IsFixedSize { get { return false; } } #endregion #region ICollection Members public bool IsSynchronized { get { return false; } } public int Count { get { return ReadSize() ? CachedSize: values.Count; } } public void CopyTo(Array array, int index) { for (int i = index; i < Count; i++) { array.SetValue(this[i], i); } } public object SyncRoot { get { return values.SyncRoot; } } #endregion #region IEnumerable Members public IEnumerator GetEnumerator() { Read(); return values.GetEnumerator(); } |
| |||
public bool IsFixedSize { get { return false; } } #endregion #region ICollection Members public bool IsSynchronized { get { return false; } } public int Count { get { return ReadSize() ? CachedSize: [[#variable5e482b40]].Count; } } public void CopyTo(Array array, int index) { for (int i = index; i < Count; i++) { array.SetValue(this[i], i); } } public object SyncRoot { get { return [[#variable5e482960]]; } } #endregion #region IEnumerable Members public IEnumerator GetEnumerator() { Read(); return [[#variable5e482b40]].GetEnumerator(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5e482b40]] | bag |
1 | 2 | [[#5e482b40]] | values |
2 | 1 | [[#5e482960]] | this |
2 | 2 | [[#5e482960]] | values.SyncRoot |