Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.994 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 821 | src/NHibernate/Type/TypeFactory.cs |
2 | 8 | 831 | src/NHibernate/Type/TypeFactory.cs |
| ||||
public static CollectionType GenericSortedList(string role, string propertyRef, object comparer, System.Type indexClass, System.Type elementClass) { var signature = new [] { typeof(string), typeof(string), typeof(bool), typeof(IComparer < > ).MakeGenericType(indexClass) } ; MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ("SortedList", new [] { indexClass, elementClass } , signature); return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new [] { role, propertyRef, false, comparer } ); } |
| ||||
public static CollectionType GenericSortedDictionary(string role, string propertyRef, object comparer, System.Type indexClass, System.Type elementClass) { var signature = new [] { typeof(string), typeof(string), typeof(bool), typeof(IComparer < > ).MakeGenericType(indexClass) } ; MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ("SortedDictionary", new [] { indexClass, elementClass } , signature); return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new [] { role, propertyRef, false, comparer } ); } |
| |||
public static CollectionType [[#variable28b4dc80]](string role, string propertyRef, object comparer, System.Type indexClass, System.Type elementClass) { var signature = new [] { typeof(string), typeof(string), typeof(bool), typeof(IComparer < > ).MakeGenericType(indexClass) } ; MethodInfo mi = ReflectHelper.GetGenericMethodFrom<ICollectionTypeFactory> ( [[#variable28b4dc20]], new [] { indexClass, elementClass } , signature); return (CollectionType)mi.Invoke(Instance.CollectionTypeFactory, new [] { role, propertyRef, false, comparer } ); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28b4dc80]] | GenericSortedDictionary |
1 | 2 | [[#28b4dc80]] | GenericSortedList |
2 | 1 | [[#28b4dc20]] | "SortedDictionary" |
2 | 2 | [[#28b4dc20]] | "SortedList" |