CloneSet240


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
47250.970compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1471
src/NHibernate.DomainModel/Middle.cs
2471
src/NHibernate.DomainModel/Outer.cs
Clone Instance
1
Line Count
47
Source Line
1
Source File
src/NHibernate.DomainModel/Middle.cs

using System;

namespace NHibernate.DomainModel
{
        /// <summary>
        /// Summary description for Middle.
        /// </summary>
        [Serializable]
        public class Middle
        {
                private MiddleKey _id;

                private string _bla;

                public MiddleKey Id
                {
                        get { return _id;
                            }
                        set { _id = value;
                            }
                }

                public string Bla
                {
                        get { return _bla;
                            }
                        set { _bla = value;
                            }
                }

                #region System.Object Members
                public override bool Equals(object obj)
                {
                        if (this == obj) return true;

                        Middle cidMaster = obj as Middle;
                        if (cidMaster == null) return false;

                        if (_id != null ? !_id.Equals(cidMaster.Id):  cidMaster.Id != null) return false;

                        return true;
                }

                public override int GetHashCode()
                {
                        return (_id != null ? _id.GetHashCode():  0);
                }

                #endregion
        }
}


Clone Instance
2
Line Count
47
Source Line
1
Source File
src/NHibernate.DomainModel/Outer.cs

using System;

namespace NHibernate.DomainModel
{
        /// <summary>
        /// Summary description for Outer.
        /// </summary>
        [Serializable]
        public class Outer
        {
                private OuterKey _id;

                private string _bubu;

                public OuterKey Id
                {
                        get { return _id;
                            }
                        set { _id = value;
                            }
                }

                public string Bubu
                {
                        get { return _bubu;
                            }
                        set { _bubu = value;
                            }
                }

                #region System.Object Members
                public override bool Equals(object obj)
                {
                        if (this == obj) return true;

                        Outer rhs = obj as Outer;
                        if (rhs == null) return false;

                        if (_id != null ? !_id.Equals(rhs.Id):  rhs.Id != null) return false;

                        return true;
                }

                public override int GetHashCode()
                {
                        return (_id != null ? _id.GetHashCode():  0);
                }

                #endregion
        }
}


Clone AbstractionParameter Count: 5Parameter Bindings

using System;
namespace NHibernate.DomainModel
{
   /// <summary>
   /// Summary description for Middle.
   /// Summary description for Outer.
   /// </summary>
   [Serializable]
   public class [[#variable687ae2e0]]
   {
      private [[#variable687ae240]]_id;

      private string [[#variable687ae1c0]];

      public [[#variable687ae240]]Id
      {
         get
         {
            return _id;
         }
         set
         {
            _id = value;
         }
      }

      public string [[#variable687ae120]]
      {
         get
         {
            return [[#variable687ae1c0]];
         }
         set
         {
             [[#variable687ae1c0]]= value;
         }
      }

      #region System.Object Members
      public override bool Equals(object obj)
      {
         if (this == obj)
            return true;
          [[#variable687ae2e0]] [[#variable687ae0c0]]= obj as [[#variable687ae2e0]];
         if ( [[#variable687ae0c0]]== null)
            return false;
         if (_id != null ?
             !_id.Equals( [[#variable687ae0c0]].Id): [[#variable687ae0c0]].Id != null)
            return false;
         return true;
      }

      public override int GetHashCode()
      {
         return (_id != null ?
                 _id.GetHashCode(): 0);
      }

   #endregion
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#687ae2e0]]
Middle 
12[[#687ae2e0]]
Outer 
21[[#687ae240]]
MiddleKey 
22[[#687ae240]]
OuterKey 
31[[#687ae1c0]]
_bla 
32[[#687ae1c0]]
_bubu 
41[[#687ae120]]
Bla 
42[[#687ae120]]
Bubu 
51[[#687ae0c0]]
cidMaster 
52[[#687ae0c0]]
rhs