CloneSet415


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20240.963class_member_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12038
src/NHibernate/Collection/Generic/PersistentGenericBag.cs
22041
src/NHibernate/Collection/Generic/PersistentGenericIdentifierBag.cs
Clone Instance
1
Line Count
20
Source Line
38
Source File
src/NHibernate/Collection/Generic/PersistentGenericBag.cs

                public PersistentGenericBag(ISessionImplementor session) : base(session) {
                                                                                         }

                public PersistentGenericBag(ISessionImplementor session, ICollection<T> coll) : base(session, coll as ICollection)
                {
                        gbag = coll as IList<T> ;
                        if (gbag == null)
                        {
                                List<T> l = new List<T> (coll);
                                gbag = l;
                                bag = l;
                        }
                }

                protected IList<T> InternalBag
                {
                        get { return gbag;
                            }
                        set
                        {
                                gbag = value;
                                bag = (IList) gbag;
                        }
                }



Clone Instance
2
Line Count
20
Source Line
41
Source File
src/NHibernate/Collection/Generic/PersistentGenericIdentifierBag.cs

                public PersistentIdentifierBag(ISessionImplementor session) : base(session) {
                                                                                            }

                public PersistentIdentifierBag(ISessionImplementor session, ICollection<T> coll) : base(session, coll as ICollection)
                {
                        gvalues = coll as IList<T> ;
                        if (gvalues == null)
                        {
                                List<T> l = new List<T> (coll);
                                gvalues = l;
                                values = l;
                        }
                }

                protected IList<T> InternalValues
                {
                        get { return gvalues;
                            }
                        set
                        {
                                gvalues = value;
                                values = (IList) gvalues;
                        }
                }



Clone AbstractionParameter Count: 4Parameter Bindings

public [[#variable6ffd6f00]](ISessionImplementor session): base(session)
{
}

public [[#variable6ffd6f00]](ISessionImplementor session, ICollection<T> coll): base(session, coll as ICollection)
{
    [[#variable6ffd6f20]]= coll as IList<T> ;
   if ( [[#variable6ffd6f20]]== null)
   {
      List<T> l = new List<T> (coll);
       [[#variable6ffd6f20]]= l;
       [[#variable6ffd6ee0]]= l;
   }
}

protected IList<T> [[#variable6ffd6ec0]]
{
   get
   {
      return [[#variable6ffd6f20]];
   }
   set
   {
       [[#variable6ffd6f20]]= value;
       [[#variable6ffd6ee0]]= (IList) [[#variable6ffd6f20]];
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6ffd6f00]]
PersistentIdentifierBag 
12[[#6ffd6f00]]
PersistentGenericBag 
21[[#6ffd6f20]]
gvalues 
22[[#6ffd6f20]]
gbag 
31[[#6ffd6ee0]]
values 
32[[#6ffd6ee0]]
bag 
41[[#6ffd6ec0]]
InternalValues 
42[[#6ffd6ec0]]
InternalBag