Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 5 | 2 | 0.991 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 788 | src/NHibernate/Type/TypeFactory.cs |
2 | 6 | 796 | src/NHibernate/Type/TypeFactory.cs |
3 | 6 | 804 | src/NHibernate/Type/TypeFactory.cs |
4 | 6 | 841 | src/NHibernate/Type/TypeFactory.cs |
5 | 7 | 859 | 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 } ); } |
| ||||
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 } ); } |
| ||||
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 } ); } |
| ||||
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 } ); } |
| ||||
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 } ); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2b78f380]] | GenericOrderedSet |
1 | 2 | [[#2b78f380]] | GenericSet |
1 | 3 | [[#2b78f380]] | GenericList |
1 | 4 | [[#2b78f380]] | GenericIdBag |
1 | 5 | [[#2b78f380]] | GenericBag |
2 | 1 | [[#2b78f2c0]] | "OrderedSet" |
2 | 2 | [[#2b78f2c0]] | "Set" |
2 | 3 | [[#2b78f2c0]] | "List" |
2 | 4 | [[#2b78f2c0]] | "IdBag" |
2 | 5 | [[#2b78f2c0]] | "Bag" |