Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.952 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 67 | src/NHibernate/Criterion/Restrictions.cs |
2 | 3 | 83 | src/NHibernate/Criterion/Restrictions.cs |
| ||||
/// <summary> /// Apply a "like" constraint to the named property /// </summary> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="value">The value for the Property.</param> /// <returns>A <see cref="LikeExpression" />.</returns> public static SimpleExpression Like(string propertyName, object value) { return new SimpleExpression(propertyName, value, " like "); } |
| ||||
/// <summary> /// Apply a "like" constraint to the project /// </summary> /// <param name="projection">The projection.</param> /// <param name="value">The value for the Property.</param> /// <returns>A <see cref="LikeExpression"/>.</returns> public static SimpleExpression Like(IProjection projection, object value) { return new SimpleExpression(projection, value, " like "); } |
| |||
/// <summary> /// Apply a "like" constraint to the project /// Apply a "like" constraint to the named property /// </summary> /// <param name="projection">The projection.</param> /// <param name="propertyName">The name of the Property in the class.</param> /// <param name="value">The value for the Property.</param> /// <returns>A <see cref="LikeExpression"/>.</returns> /// <returns>A <see cref="LikeExpression" />.</returns> public static SimpleExpression Like( [[#variable5539a5a0]] [[#variable5539a500]], object value) { return new SimpleExpression( [[#variable5539a500]], value, " like "); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5539a5a0]] | IProjection |
1 | 2 | [[#5539a5a0]] | string |
2 | 1 | [[#5539a500]] | projection |
2 | 2 | [[#5539a500]] | propertyName |