CloneSet402


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33260.955class_member_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1337
src/NHibernate.Test/SqlTest/Order.cs
2338
src/NHibernate.Test/SqlTest/Product.cs
Clone Instance
1
Line Count
33
Source Line
7
Source File
src/NHibernate.Test/SqlTest/Order.cs

                [Serializable]
                public class OrderIdType
                {
                        private string orgid;

                        private string ordernumber;

                        public string Orgid
                        {
                                get { return orgid;
                                    }
                                set { orgid = value;
                                    }
                        }

                        public string Ordernumber
                        {
                                get { return ordernumber;
                                    }
                                set { ordernumber = value;
                                    }
                        }

                        public override bool Equals(object obj)
                        {
                                OrderIdType that = obj as OrderIdType;
                                return that != null && that.orgid == orgid && that.ordernumber == ordernumber;
                        }

                        public override int GetHashCode()
                        {
                                return orgid.GetHashCode();
                        }

                }

                private OrderIdType orderId;

                private Product product;

                private Person person;



Clone Instance
2
Line Count
33
Source Line
8
Source File
src/NHibernate.Test/SqlTest/Product.cs

                [Serializable]
                public class ProductIdType
                {
                        private string orgid;

                        private string productnumber;

                        public string Orgid
                        {
                                get { return orgid;
                                    }
                                set { orgid = value;
                                    }
                        }

                        public string Productnumber
                        {
                                get { return productnumber;
                                    }
                                set { productnumber = value;
                                    }
                        }

                        public override bool Equals(object obj)
                        {
                                ProductIdType that = obj as ProductIdType;
                                return that != null && that.orgid == orgid && that.productnumber == productnumber;
                        }

                        public override int GetHashCode()
                        {
                                return orgid.GetHashCode();
                        }

                }

                private ProductIdType productId;

                private string name;

                private Person person;



Clone AbstractionParameter Count: 6Parameter Bindings

[Serializable]
public class [[#variable6cd1d9c0]]
{
   private string orgid;

   private string [[#variable6cd1d900]];

   public string Orgid
   {
      get
      {
         return orgid;
      }
      set
      {
         orgid = value;
      }
   }

   public string [[#variable5eb5b980]]
   {
      get
      {
         return [[#variable6cd1d900]];
      }
      set
      {
          [[#variable6cd1d900]]= value;
      }
   }

   public override bool Equals(object obj)
   {
       [[#variable6cd1d9c0]]that = obj as [[#variable6cd1d9c0]];
      return that != null && that.orgid == orgid && that. [[#variable6cd1d900]]== [[#variable6cd1d900]];
   }

   public override int GetHashCode()
   {
      return orgid.GetHashCode();
   }

}

private [[#variable6cd1d9c0]] [[#variable6cd1d880]];

private [[#variable5eb68b60]] [[#variable6cd1d940]];

private Person person;

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6cd1d9c0]]
OrderIdType 
12[[#6cd1d9c0]]
ProductIdType 
21[[#6cd1d900]]
ordernumber 
22[[#6cd1d900]]
productnumber 
31[[#5eb5b980]]
Ordernumber 
32[[#5eb5b980]]
Productnumber 
41[[#6cd1d880]]
orderId 
42[[#6cd1d880]]
productId 
51[[#5eb68b60]]
Product 
52[[#5eb68b60]]
string 
61[[#6cd1d940]]
product 
62[[#6cd1d940]]
name