What is the query for getting the classes which are using parallel inheritance hierarchies?
Asked
Active
Viewed 48 times
1
-
I assume you refer to "parallel inheritance hierarchies" as explained here: http://stackoverflow.com/questions/18434577 This is an interesting question to mull over. What would be the criteria you'd use to match the hierarchies? Similar class names? another? – Patrick from NDepend team Mar 24 '14 at 14:12
-
My intention is that, but instead matching by names, is it possible to do match with fields(similar structure)? – Rajan R.G Mar 26 '14 at 09:13
-
Please be more explicit about "match with fields". Do you mean that parallel base classes must have same number of instance fields with same name and same visibility? – Patrick from NDepend team Mar 26 '14 at 09:29
-
Yes, matching a name will be very rare scenario. But if the instance fields is more or less matching (~2 fields) and the type matches exactlly... – Rajan R.G Mar 28 '14 at 06:07