Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 3 | 0.951 | class_member_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 9 | src/NHibernate/DebugHelpers/CollectionProxy.cs |
2 | 15 | 13 | src/NHibernate/DebugHelpers/DictionaryProxy.cs |
| ||||
private readonly ICollection set; public CollectionProxy(ICollection dic) { this.set = dic; } [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)] public object[] Items { get { object[] entries = new object[set.Count]; set.CopyTo(entries, 0); return entries; } } |
| ||||
private readonly IDictionary set; public DictionaryProxy(IDictionary dic) { this.set = dic; } [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)] public DictionaryEntry[] Items { get { DictionaryEntry[] entries = new DictionaryEntry[set.Count]; set.CopyTo(entries, 0); return entries; } } |
| |||
private readonly [[#variable27019060]]set; public [[#variable27018fe0]]( [[#variable27019060]]dic) { this.set = dic; } [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)] public [[#variable27018f60]][] Items { get { [[#variable27018f60]][] entries = new [[#variable27018f60]][set.Count]; set.CopyTo(entries, 0); return entries; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27019060]] | IDictionary |
1 | 2 | [[#27019060]] | ICollection |
2 | 1 | [[#27018fe0]] | DictionaryProxy |
2 | 2 | [[#27018fe0]] | CollectionProxy |
3 | 1 | [[#27018f60]] | DictionaryEntry |
3 | 2 | [[#27018f60]] | object |