CloneSet775


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.980class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110301
src/NHibernate/Criterion/Restrictions.cs
210322
src/NHibernate/Criterion/Restrictions.cs
Clone Instance
1
Line Count
10
Source Line
301
Source File
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);
                }



Clone Instance
2
Line Count
10
Source Line
322
Source File
src/NHibernate/Criterion/Restrictions.cs

                /// <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);
                }



Clone AbstractionParameter Count: 2Parameter Bindings

/// <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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70bfeca0]]
string 
12[[#70bfeca0]]
IProjection 
21[[#70bfec80]]
propertyName 
22[[#70bfec80]]
projection