Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.973 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 273 | src/NHibernate/Criterion/Restrictions.cs |
2 | 5 | 286 | src/NHibernate/Criterion/Restrictions.cs |
| ||||
/// <summary> /// Apply an "in" constraint to the projection /// </summary> /// <param name="projection">The projection.</param> /// <param name="values">An ICollection of values.</param> /// <returns>An <see cref="InExpression"/>.</returns> public static AbstractCriterion In(IProjection projection, ICollection values) { object[] ary = new object[values.Count]; values.CopyTo(ary, 0); return new InExpression(projection, ary); } |
| ||||
/// <summary> /// Apply an "in" constraint to the named property /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="values">An ICollection of values.</param> /// <returns>An <see cref="InExpression" />.</returns> public static AbstractCriterion In(string propertyName, ICollection values) { object[] ary = new object[values.Count]; values.CopyTo(ary, 0); return new InExpression(propertyName, ary); } |
| |||
/// <summary> /// Apply an "in" constraint to the named property /// Apply an "in" constraint to the projection /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="projection">The projection.</param> /// <param name="values">An ICollection of values.</param> /// <returns>An <see cref="InExpression" />.</returns> /// <returns>An <see cref="InExpression"/>.</returns> public static AbstractCriterion In( [[#variable2d2a7320]] [[#variable2d2a7300]], ICollection values) { object[] ary = new object[values.Count]; values.CopyTo(ary, 0); return new InExpression( [[#variable2d2a7300]], ary); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2d2a7320]] | string |
1 | 2 | [[#2d2a7320]] | IProjection |
2 | 1 | [[#2d2a7300]] | propertyName |
2 | 2 | [[#2d2a7300]] | projection |