Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 1 | 0.994 | null_coalescing_expression |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 109 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
2 | 8 | 120 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
| ||||
session.CreateCriteria( typeof(Student)). SetProjection( Projections.Conditional( Expression.Eq("id", 27L), Projections.Constant("yes"), Projections.Constant("no"))). UniqueResult<string> () |
| ||||
session.CreateCriteria( typeof(Student)). SetProjection( Projections.Conditional( Expression.Eq("id", 42L), Projections.Constant("yes"), Projections.Constant("no"))). UniqueResult<string> () |
| |||
session.CreateCriteria( typeof(Student)).SetProjection(Projections.Conditional(Expression.Eq("id", [[#variable54b9cba0]]), Projections.Constant("yes"), Projections.Constant("no"))).UniqueResult<string> () |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54b9cba0]] | 27L |
1 | 2 | [[#54b9cba0]] | 42L |