Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 1 | 0.996 | pp_set_accessor_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 96 | src/NHibernate/Collection/Generic/PersistentGenericList.cs |
2 | 15 | 357 | src/NHibernate/Collection/PersistentList.cs |
| ||||
set { if (index < 0) { throw new IndexOutOfRangeException("negative index"); } object old = PutQueueEnabled ? ReadElementByIndex(index): Unknown; if (old == Unknown) { Write(); glist[index] = value; } else { QueueOperation(new SetDelayedOperation(this, index, value, old)); } } |
| ||||
set { if (index < 0) { throw new IndexOutOfRangeException("negative index"); } object old = PutQueueEnabled ? ReadElementByIndex(index): Unknown; if (old == Unknown) { Write(); list[index] = value; } else { QueueOperation(new SetDelayedOperation(this, index, value, old)); } } |
| |||
set { if (index < 0) { throw new IndexOutOfRangeException("negative index"); } object old = PutQueueEnabled ? ReadElementByIndex(index): Unknown; if (old == Unknown) { Write(); [[#variable47036700]][index] = value; } else { QueueOperation(new SetDelayedOperation(this, index, value, old)); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#47036700]] | list |
1 | 2 | [[#47036700]] | glist |