Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 6 | 0.963 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 99 | src/NHibernate/Impl/EnumerableImpl.cs |
2 | 3 | 88 | src/NHibernate/Loader/Criteria/CriteriaLoader.cs |
| ||||
// move through each of the ITypes contained in the IDataReader and convert them // to their objects. for (int i = 0; i < _types.Length; i++) { // The IType knows how to extract its value out of the IDataReader. If the IType // is a value type then the value will simply be pulled out of the IDataReader. If // the IType is an Entity type then the IType will extract the id from the IDataReader // and use the ISession to load an instance of the object. currentResults[i] = _types[i].NullSafeGet(_reader, _names[i], _sess, null); } |
| ||||
for (int i = 0; i < result.Length; i++) { result[i] = types[i].NullSafeGet(rs, columnAliases[i], session, null); } |
| |||
// move through each of the ITypes contained in the IDataReader and convert them // to their objects. for (int i = 0; i < [[#variable28f8a1a0]].Length; i++) { [[#variable2723f320]][i] = [[#variable292f3fc0]][i].NullSafeGet( [[#variable28f8a9c0]], [[#variable28f8a8a0]][i], [[#variable28f8a800]], null); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28f8a1a0]] | _types |
1 | 2 | [[#28f8a1a0]] | result |
2 | 1 | [[#2723f320]] | // The IType knows how to extract its value out of the IDataReader. If the IType // is a value type then the value will simply be pulled out of the IDataReader. If // the IType is an Entity type then the IType will extract the id from the IDataReader // and use the ISession to load an instance of the object. currentResults |
2 | 2 | [[#2723f320]] | result |
3 | 1 | [[#292f3fc0]] | _types |
3 | 2 | [[#292f3fc0]] | types |
4 | 1 | [[#28f8a9c0]] | _reader |
4 | 2 | [[#28f8a9c0]] | rs |
5 | 1 | [[#28f8a8a0]] | _names |
5 | 2 | [[#28f8a8a0]] | columnAliases |
6 | 1 | [[#28f8a800]] | _sess |
6 | 2 | [[#28f8a800]] | session |