CloneSet171


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7520.991class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16788
src/NHibernate/Type/TypeFactory.cs
26796
src/NHibernate/Type/TypeFactory.cs
36804
src/NHibernate/Type/TypeFactory.cs
46841
src/NHibernate/Type/TypeFactory.cs
57859
src/NHibernate/Type/TypeFactory.cs
Clone Instance
1
Line Count
6
Source Line
788
Source File
src/NHibernate/Type/TypeFactory.cs

                public static CollectionType GenericBag(string role, string propertyRef, System.Type elementClass)
                {
                        MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ("Bag", new [] { elementClass
                                                                                                                  } , GenericCollectionSimpleSignature);

                        return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new object[] { role, propertyRef, false
                                                                                                      } );
                }



Clone Instance
2
Line Count
6
Source Line
796
Source File
src/NHibernate/Type/TypeFactory.cs

                public static CollectionType GenericIdBag(string role, string propertyRef, System.Type elementClass)
                {
                        MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ("IdBag", new [] { elementClass
                                                                                                                    } ,                                                                                                                                                                                                                   GenericCollectionSimpleSignature);

                        return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new object[] { role, propertyRef, false
                                                                                                      } );
                }



Clone Instance
3
Line Count
6
Source Line
804
Source File
src/NHibernate/Type/TypeFactory.cs

                public static CollectionType GenericList(string role, string propertyRef, System.Type elementClass)
                {
                        MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ("List", new [] { elementClass
                                                                                                                   } ,                                                                                                                                                                                                                    GenericCollectionSimpleSignature);

                        return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new object[] { role, propertyRef, false
                                                                                                      } );
                }



Clone Instance
4
Line Count
6
Source Line
841
Source File
src/NHibernate/Type/TypeFactory.cs

                public static CollectionType GenericSet(string role, string propertyRef, System.Type elementClass)
                {
                        MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ("Set", new [] { elementClass
                                                                                                                  } ,                                                                                                                                                                                                                     GenericCollectionSimpleSignature);

                        return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new object[] { role, propertyRef, false
                                                                                                      } );
                }



Clone Instance
5
Line Count
7
Source Line
859
Source File
src/NHibernate/Type/TypeFactory.cs

                public static CollectionType GenericOrderedSet(string role, string propertyRef,
                                                                                                                                                                                                        System.Type elementClass)
                {
                        MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ("OrderedSet", new [] { elementClass
                                                                                                                         } ,                                                                                                                                                                                                              GenericCollectionSimpleSignature);

                        return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new object[] { role, propertyRef, false
                                                                                                      } );
                }



Clone AbstractionParameter Count: 2Parameter Bindings

public static CollectionType [[#variable2b78f380]](string role, string propertyRef, System.Type elementClass)
{
   MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ( [[#variable2b78f2c0]], new []
                                                                                                       {
                                                                                                          elementClass
                                                                                                       } , GenericCollectionSimpleSignature);
   return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new object[]
                                                                    {
                                                                       role, propertyRef, false
                                                                    } );
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2b78f380]]
GenericOrderedSet 
12[[#2b78f380]]
GenericSet 
13[[#2b78f380]]
GenericList 
14[[#2b78f380]]
GenericIdBag 
15[[#2b78f380]]
GenericBag 
21[[#2b78f2c0]]
"OrderedSet" 
22[[#2b78f2c0]]
"Set" 
23[[#2b78f2c0]]
"List" 
24[[#2b78f2c0]]
"IdBag" 
25[[#2b78f2c0]]
"Bag"