CloneSet100


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
59520.979compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1591
src/NHibernate/Criterion/EqPropertyExpression.cs
2591
src/NHibernate/Criterion/GePropertyExpression.cs
3591
src/NHibernate/Criterion/GtPropertyExpression.cs
4591
src/NHibernate/Criterion/LePropertyExpression.cs
5591
src/NHibernate/Criterion/LtPropertyExpression.cs
Clone Instance
1
Line Count
59
Source Line
1
Source File
src/NHibernate/Criterion/EqPropertyExpression.cs

using System;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that represents an "equal" constraint 
        /// between two properties.
        /// </summary>
        [Serializable]
        public class EqPropertyExpression : PropertyExpression
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsPropertyName">Name of the LHS property.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public EqPropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The LHS projection.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public EqPropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The projection.</param>
                /// <param name="rhsPropertyName">Name of the RHS property.</param>
                public EqPropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class
                /// that compares two mapped properties using an "equal" constraint.
                /// </summary>
                /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param>
                /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param>
                public EqPropertyExpression(string lhsPropertyName, string rhsPropertyName)
                        : base(lhsPropertyName, rhsPropertyName)
                {
                }

                /// <summary>
                /// Get the Sql operator to use for the <see cref="EqPropertyExpression"/>.
                /// </summary>
                /// <value>The string "<c> = </c>"</value>
                protected override string Op
                {
                        get { return " = ";
                            }
                }

        }
}


Clone Instance
2
Line Count
59
Source Line
1
Source File
src/NHibernate/Criterion/GePropertyExpression.cs

using System;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that represents an "greater than or equal" constraint
        /// between two properties.
        /// </summary>
        [Serializable]
        public class GePropertyExpression : PropertyExpression
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="GePropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsPropertyName">Name of the LHS property.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public GePropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="GePropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The LHS projection.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public GePropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="GePropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The projection.</param>
                /// <param name="rhsPropertyName">Name of the RHS property.</param>
                public GePropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="GePropertyExpression"/> class
                /// that compares two mapped properties using an "greater than or equal" constraint.
                /// </summary>
                /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param>
                /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param>
                public GePropertyExpression(string lhsPropertyName, string rhsPropertyName)
                        : base(lhsPropertyName, rhsPropertyName)
                {
                }

                /// <summary>
                /// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>.
                /// </summary>
                /// <value>The string "<c> &lt; </c>"</value>
                protected override string Op
                {
                        get { return " >= ";
                            }
                }

        }
}


Clone Instance
3
Line Count
59
Source Line
1
Source File
src/NHibernate/Criterion/GtPropertyExpression.cs

using System;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that represents an "greater than" constraint 
        /// between two properties.
        /// </summary>
        [Serializable]
        public class GtPropertyExpression : PropertyExpression
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsPropertyName">Name of the LHS property.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public GtPropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The LHS projection.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public GtPropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The projection.</param>
                /// <param name="rhsPropertyName">Name of the RHS property.</param>
                public GtPropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class
                /// that compares two mapped properties using an "greater than" constraint.
                /// </summary>
                /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param>
                /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param>
                public GtPropertyExpression(string lhsPropertyName, string rhsPropertyName)
                        : base(lhsPropertyName, rhsPropertyName)
                {
                }

                /// <summary>
                /// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>.
                /// </summary>
                /// <value>The string "<c> &lt; </c>"</value>
                protected override string Op
                {
                        get { return " > ";
                            }
                }

        }
}


Clone Instance
4
Line Count
59
Source Line
1
Source File
src/NHibernate/Criterion/LePropertyExpression.cs

using System;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that represents an "less than or equal" constraint 
        /// between two properties.
        /// </summary>
        [Serializable]
        public class LePropertyExpression : PropertyExpression
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsPropertyName">Name of the LHS property.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public LePropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The LHS projection.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public LePropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The projection.</param>
                /// <param name="rhsPropertyName">Name of the RHS property.</param>
                public LePropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="LePropertyExpression"/> class
                /// that compares two mapped properties using an "less than or equal" constraint.
                /// </summary>
                /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param>
                /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param>
                public LePropertyExpression(string lhsPropertyName, string rhsPropertyName)
                        : base(lhsPropertyName, rhsPropertyName)
                {
                }

                /// <summary>
                /// Get the Sql operator to use for the <see cref="LePropertyExpression"/>.
                /// </summary>
                /// <value>The string "<c> &lt;= </c>"</value>
                protected override string Op
                {
                        get { return " <= ";
                            }
                }

        }
}


Clone Instance
5
Line Count
59
Source Line
1
Source File
src/NHibernate/Criterion/LtPropertyExpression.cs

using System;

namespace NHibernate.Criterion
{
        /// <summary>
        /// An <see cref="ICriterion"/> that represents an "less than" constraint 
        /// between two properties.
        /// </summary>
        [Serializable]
        public class LtPropertyExpression : PropertyExpression
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsPropertyName">Name of the LHS property.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public LtPropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The LHS projection.</param>
                /// <param name="rhsProjection">The RHS projection.</param>
                public LtPropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
                /// </summary>
                /// <param name="lhsProjection">The projection.</param>
                /// <param name="rhsPropertyName">Name of the RHS property.</param>
                public LtPropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class
                /// that compares two mapped properties using an "less than" constraint.
                /// </summary>
                /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param>
                /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param>
                public LtPropertyExpression(string lhsPropertyName, string rhsPropertyName)
                        : base(lhsPropertyName, rhsPropertyName)
                {
                }

                /// <summary>
                /// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>.
                /// </summary>
                /// <value>The string "<c> &lt; </c>"</value>
                protected override string Op
                {
                        get { return " < ";
                            }
                }

        }
}


Clone AbstractionParameter Count: 2Parameter Bindings

using System;
namespace NHibernate.Criterion
{
   /// <summary>
   /// An <see cref="ICriterion"/> that represents an "equal" constraint 
   /// An <see cref="ICriterion"/> that represents an "greater than or equal" constraint
   /// An <see cref="ICriterion"/> that represents an "greater than" constraint 
   /// An <see cref="ICriterion"/> that represents an "less than or equal" constraint 
   /// An <see cref="ICriterion"/> that represents an "less than" constraint 
   /// between two properties.
   /// </summary>
   [Serializable]
   public class [[#variable50665260]]: PropertyExpression
   {
      /// <summary>
      /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="GePropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
      /// </summary>
      /// <param name="lhsPropertyName">Name of the LHS property.</param>
      /// <param name="rhsProjection">The RHS projection.</param>
      public [[#variable50665260]](string lhsPropertyName, IProjection rhsProjection): base(lhsPropertyName, rhsProjection)
      {
      }

      /// <summary>
      /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="GePropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
      /// </summary>
      /// <param name="lhsProjection">The LHS projection.</param>
      /// <param name="rhsProjection">The RHS projection.</param>
      public [[#variable50665260]](IProjection lhsProjection, IProjection rhsProjection): base(lhsProjection, rhsProjection)
      {
      }

      /// <summary>
      /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="GePropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
      /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
      /// </summary>
      /// <param name="lhsProjection">The projection.</param>
      /// <param name="rhsPropertyName">Name of the RHS property.</param>
      public [[#variable50665260]](IProjection lhsProjection, string rhsPropertyName): base(lhsProjection, rhsPropertyName)
      {
      }

      /// <summary>
      /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class
      /// that compares two mapped properties using an "equal" constraint.
      /// Initializes a new instance of the <see cref="GePropertyExpression"/> class
      /// that compares two mapped properties using an "greater than or equal" constraint.
      /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class
      /// that compares two mapped properties using an "greater than" constraint.
      /// Initializes a new instance of the <see cref="LePropertyExpression"/> class
      /// that compares two mapped properties using an "less than or equal" constraint.
      /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class
      /// that compares two mapped properties using an "less than" constraint.
      /// </summary>
      /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param>
      /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param>
      public [[#variable50665260]](string lhsPropertyName, string rhsPropertyName): base(lhsPropertyName, rhsPropertyName)
      {
      }

      /// <summary>
      /// Get the Sql operator to use for the <see cref="EqPropertyExpression"/>.
      /// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>.
      /// Get the Sql operator to use for the <see cref="LePropertyExpression"/>.
      /// </summary>
      /// <value>The string "<c> = </c>"</value>
      /// <value>The string "<c> &lt; </c>"</value>
      /// <value>The string "<c> &lt;= </c>"</value>
      protected override string Op
      {
         get
         {
            return [[#variable6bdb95c0]];
         }
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#50665260]]
EqPropertyExpression 
12[[#50665260]]
GePropertyExpression 
13[[#50665260]]
GtPropertyExpression 
14[[#50665260]]
LePropertyExpression 
15[[#50665260]]
LtPropertyExpression 
21[[#6bdb95c0]]
" = " 
22[[#6bdb95c0]]
" >= " 
23[[#6bdb95c0]]
" > " 
24[[#6bdb95c0]]
" <= " 
25[[#6bdb95c0]]
" < "