Permalink
Browse files

Compare property attributes

  • Loading branch information...
1 parent 73a689b commit a2b4a2638eb90a169f3b27d57273135a8db3c3e9 @marek-safar marek-safar committed Jun 21, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 gui-compare/CompareContext.cs
@@ -482,6 +482,16 @@ void CompareTypeParameters (ComparisonNode parent, ICompGenericParameter referen
break;
}
}
+
+ if (m1[0].Name[0] == m2[0].Name[0]) {
+ CompareAttributes (comparison, (ICompAttributeContainer)m1[0], (ICompAttributeContainer)m2[0]);
+ if (m1.Count > 1)
+ CompareAttributes (comparison, (ICompAttributeContainer)m1[1], (ICompAttributeContainer)m2[1]);
+ } else {
+ CompareAttributes (comparison, (ICompAttributeContainer)m1[0], (ICompAttributeContainer)m2[1]);
+ if (m1.Count > 1)
+ CompareAttributes (comparison, (ICompAttributeContainer)m1[1], (ICompAttributeContainer)m2[0]);
+ }
}
// Compare indexer parameters

0 comments on commit a2b4a26

Please sign in to comment.