| 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.973 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 671 | src/NHibernate/Criterion/Restrictions.cs |
| 2 | 3 | 682 | src/NHibernate/Criterion/Restrictions.cs |
| ||||
/// <summary>
/// Return the conjunction of two expressions
/// </summary>
/// <param name="lhs">The Expression to use as the Left Hand Side.</param>
/// <param name="rhs">The Expression to use as the Right Hand Side.</param>
/// <returns>An <see cref="AndExpression" />.</returns>
public static AbstractCriterion And(ICriterion lhs, ICriterion rhs)
{
return new AndExpression(lhs, rhs);
}
|
| ||||
/// <summary>
/// Return the disjuction of two expressions
/// </summary>
/// <param name="lhs">The Expression to use as the Left Hand Side.</param>
/// <param name="rhs">The Expression to use as the Right Hand Side.</param>
/// <returns>An <see cref="OrExpression" />.</returns>
public static AbstractCriterion Or(ICriterion lhs, ICriterion rhs)
{
return new OrExpression(lhs, rhs);
}
|
| |||
/// <summary>
/// Return the disjuction of two expressions
/// Return the conjunction of two expressions
/// </summary>
/// <param name="lhs">The Expression to use as the Left Hand Side.</param>
/// <param name="rhs">The Expression to use as the Right Hand Side.</param>
/// <returns>An <see cref="OrExpression" />.</returns>
/// <returns>An <see cref="AndExpression" />.</returns>
public static AbstractCriterion [[#variable6f55e3c0]](ICriterion lhs, ICriterion rhs)
{
return new [[#variable6f55e360]](lhs, rhs);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6f55e3c0]] | Or |
| 1 | 2 | [[#6f55e3c0]] | And |
| 2 | 1 | [[#6f55e360]] | OrExpression |
| 2 | 2 | [[#6f55e360]] | AndExpression |