| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 2 | 0.980 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 301 | src/NHibernate/Criterion/Restrictions.cs |
| 2 | 10 | 322 | src/NHibernate/Criterion/Restrictions.cs |
| ||||
/// <summary>
/// Apply an "in" constraint to the named property. This is the generic equivalent
/// of <see cref="In(string, ICollection)" />, renamed to avoid ambiguity.
/// </summary>
/// <param name="propertyName">The name of the Property in the class.</param>
/// <param name="values">An <see cref="System.Collections.Generic.ICollection{T}" />
/// of values.</param>
/// <returns>An <see cref="InExpression" />.</returns>
public static AbstractCriterion InG<T>(string propertyName, ICollection<T> values)
{
object[] array = new object[values.Count];
int i = 0;
foreach (T item in values)
{
array[i] = item;
i++;
}
return new InExpression(propertyName, array);
}
|
| ||||
/// <summary>
/// Apply an "in" constraint to the projection. This is the generic equivalent
/// of <see cref="In(string, ICollection)"/>, renamed to avoid ambiguity.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="projection">The projection.</param>
/// <param name="values">An <see cref="System.Collections.Generic.ICollection{T}"/>
/// of values.</param>
/// <returns>An <see cref="InExpression"/>.</returns>
public static AbstractCriterion InG<T>(IProjection projection, ICollection<T> values)
{
object[] array = new object[values.Count];
int i = 0;
foreach (T item in values)
{
array[i] = item;
i++;
}
return new InExpression(projection, array);
}
|
| |||
/// <summary>
/// Apply an "in" constraint to the named property. This is the generic equivalent
/// of <see cref="In(string, ICollection)" />, renamed to avoid ambiguity.
/// Apply an "in" constraint to the projection. This is the generic equivalent
/// of <see cref="In(string, ICollection)"/>, renamed to avoid ambiguity.
/// </summary>
/// <param name="propertyName">The name of the Property in the class.</param>
/// <param name="values">An <see cref="System.Collections.Generic.ICollection{T}" />
/// <typeparam name="T"></typeparam>
/// <param name="projection">The projection.</param>
/// <param name="values">An <see cref="System.Collections.Generic.ICollection{T}"/>
/// of values.</param>
/// <returns>An <see cref="InExpression" />.</returns>
/// <returns>An <see cref="InExpression"/>.</returns>
public static AbstractCriterion InG<T>( [[#variable70bfeca0]] [[#variable70bfec80]], ICollection<T> values)
{
object[] array = new object[values.Count];
int i = 0;
foreach (T item in values)
{
array[i] = item;
i++;
}
return new InExpression( [[#variable70bfec80]], array);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#70bfeca0]] | string |
| 1 | 2 | [[#70bfeca0]] | IProjection |
| 2 | 1 | [[#70bfec80]] | propertyName |
| 2 | 2 | [[#70bfec80]] | projection |