CloneSet2433


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3220.974class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1354
src/NHibernate/Type/IdentifierBagType.cs
2361
src/NHibernate/Type/MapType.cs
Clone Instance
1
Line Count
3
Source Line
54
Source File
src/NHibernate/Type/IdentifierBagType.cs

                /// <summary>
                /// Wraps an <see cref="IList"/> in a <see cref="PersistentIdentifierBag"/>.
                /// </summary>
                /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param>
                /// <param name="collection">The unwrapped <see cref="IList"/>.</param>
                /// <returns>
                /// An <see cref="PersistentIdentifierBag"/> that wraps the non NHibernate <see cref="IList"/>.
                /// </returns>
                public override IPersistentCollection Wrap(ISessionImplementor session, object collection)
                {
                        return new PersistentIdentifierBag(session, (ICollection) collection);
                }



Clone Instance
2
Line Count
3
Source Line
61
Source File
src/NHibernate/Type/MapType.cs

                /// <summary>
                /// Wraps an <see cref="IDictionary"/> in a <see cref="PersistentMap"/>.
                /// </summary>
                /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param>
                /// <param name="collection">The unwrapped <see cref="IDictionary"/>.</param>
                /// <returns>
                /// An <see cref="PersistentMap"/> that wraps the non NHibernate <see cref="IDictionary"/>.
                /// </returns>
                public override IPersistentCollection Wrap(ISessionImplementor session, object collection)
                {
                        return new PersistentMap(session, (IDictionary) collection);
                }



Clone AbstractionParameter Count: 2Parameter Bindings

/// <summary>
/// Wraps an <see cref="IList"/> in a <see cref="PersistentIdentifierBag"/>.
/// Wraps an <see cref="IDictionary"/> in a <see cref="PersistentMap"/>.
/// </summary>
/// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param>
/// <param name="collection">The unwrapped <see cref="IList"/>.</param>
/// <param name="collection">The unwrapped <see cref="IDictionary"/>.</param>
/// <returns>
/// An <see cref="PersistentIdentifierBag"/> that wraps the non NHibernate <see cref="IList"/>.
/// An <see cref="PersistentMap"/> that wraps the non NHibernate <see cref="IDictionary"/>.
/// </returns>
public override IPersistentCollection Wrap(ISessionImplementor session, object collection)
{
   return new [[#variable5848d840]](session, ( [[#variable5848d7a0]])collection);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5848d840]]
PersistentIdentifierBag 
12[[#5848d840]]
PersistentMap 
21[[#5848d7a0]]
ICollection 
22[[#5848d7a0]]
IDictionary