[mono-api-html] Several indexer properties (Item) can have the name (with different...
authorSebastien Pouliot <sebastien@xamarin.com>
Fri, 11 Oct 2013 20:44:59 +0000 (16:44 -0400)
committerSebastien Pouliot <sebastien@xamarin.com>
Fri, 11 Oct 2013 20:44:59 +0000 (16:44 -0400)
mcs/tools/corcompare/mono-api-html/PropertyComparer.cs

index 6c5bc81962dfac5bba23706991f6ef46f368720f..0971e71b3d8734821678fcb27e6a62484304ad64 100644 (file)
@@ -41,6 +41,14 @@ namespace Xamarin.ApiDiff {
                        get { return "property"; }
                }
 
+               public override bool Find (XElement e)
+               {
+                       if (!base.Find (e))
+                               return false;
+                       // the same Item (indexer) property can have different parameters
+                       return e.GetAttribute ("params") == Source.GetAttribute ("params");
+               }
+
                public override string GetDescription (XElement e)
                {
                        string name = e.Attribute ("name").Value;