CloneSet410


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25250.980class_member_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12532
src/NHibernate/Event/MergeEvent.cs
22534
src/NHibernate/Event/SaveOrUpdateEvent.cs
Clone Instance
1
Line Count
25
Source Line
32
Source File
src/NHibernate/Event/MergeEvent.cs

                public MergeEvent(string entityName, object original, object id, IEventSource source)
                        : this(entityName, original, source)
                {
                        if (id == null)
                                throw new ArgumentNullException("id", "attempt to create merge event with null identifier");

                        RequestedId = id;
                }

                public object Original
                {
                        get { return original;
                            }
                        set { original = value;
                            }
                }

                public string EntityName
                {
                        get { return entityName;
                            }
                        set { entityName = value;
                            }
                }

                public object RequestedId
                {
                        get { return requestedId;
                            }
                        set { requestedId = value;
                            }
                }



Clone Instance
2
Line Count
25
Source Line
34
Source File
src/NHibernate/Event/SaveOrUpdateEvent.cs

                public SaveOrUpdateEvent(string entityName, object original, object id, IEventSource source)
                        : this(entityName, original, source)
                {
                        if (id == null)
                                throw new ArgumentNullException("id", "attempt to create saveOrUpdate event with null identifier");

                        requestedId = id;
                }

                public object Entity
                {
                        get { return entity;
                            }
                        set { entity = value;
                            }
                }

                public string EntityName
                {
                        get { return entityName;
                            }
                        set { entityName = value;
                            }
                }

                public object RequestedId
                {
                        get { return requestedId;
                            }
                        set { requestedId = value;
                            }
                }



Clone AbstractionParameter Count: 5Parameter Bindings

public [[#variable6fd504e0]](string entityName, object original, object id, IEventSource source): this(entityName, original, source)
{
   if (id == null)
      throw new ArgumentNullException("id", [[#variable6fd50580]]);
    [[#variable6fd504c0]]= id;
}

public object [[#variable6fd50340]]
{
   get
   {
      return [[#variable6fd50280]];
   }
   set
   {
       [[#variable6fd50280]]= value;
   }
}

public string EntityName
{
   get
   {
      return entityName;
   }
   set
   {
      entityName = value;
   }
}

public object RequestedId
{
   get
   {
      return requestedId;
   }
   set
   {
      requestedId = value;
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6fd504e0]]
SaveOrUpdateEvent 
12[[#6fd504e0]]
MergeEvent 
21[[#6fd50580]]
"attempt to create saveOrUpdate event with null identifier" 
22[[#6fd50580]]
"attempt to create merge event with null identifier" 
31[[#6fd504c0]]
requestedId 
32[[#6fd504c0]]
RequestedId 
41[[#6fd50340]]
Entity 
42[[#6fd50340]]
Original 
51[[#6fd50280]]
entity 
52[[#6fd50280]]
original