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.963 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 95 | src/NHibernate/Criterion/Restrictions.cs |
2 | 3 | 100 | src/NHibernate/Criterion/Restrictions.cs |
| ||||
/// <summary> /// Apply a "like" constraint to the project /// </summary> /// <param name="projection">The projection.</param> /// <param name="value">The value for the Property.</param> /// <param name="matchMode">The match mode.</param> /// <returns>A <see cref="LikeExpression"/>.</returns> public static SimpleExpression Like(IProjection projection, string value, MatchMode matchMode) { return new SimpleExpression(projection, matchMode.ToMatchString(value), " like "); } |
| ||||
public static SimpleExpression Like(string propertyName, string value, MatchMode matchMode) { return new SimpleExpression(propertyName, matchMode.ToMatchString(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> /// <param name="matchMode">The match mode.</param> /// <returns>A <see cref="LikeExpression"/>.</returns> public static SimpleExpression Like( [[#variable28f18780]] [[#variable28f18700]], string value, MatchMode matchMode) { return new SimpleExpression( [[#variable28f18700]], matchMode.ToMatchString(value), " like "); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28f18780]] | string |
1 | 2 | [[#28f18780]] | IProjection |
2 | 1 | [[#28f18700]] | propertyName |
2 | 2 | [[#28f18700]] | projection |