[mono-api-info] Rework SkipAttribute to use ordinal string comparison, and no string...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 27 Jan 2016 16:37:11 +0000 (17:37 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Thu, 28 Jan 2016 13:49:06 +0000 (14:49 +0100)
mcs/tools/corcompare/mono-api-info.cs

index 1e5fcd0e02167661f07bf87bbbf48720d161b7a1..4abfffd894633b8951ed31e7fd5899c980793e00 100644 (file)
@@ -1405,10 +1405,10 @@ namespace CorCompare
 
                static bool SkipAttribute (CustomAttribute attribute)
                {
-                       var type_name = Utils.CleanupTypeName (attribute.Constructor.DeclaringType);
-
-                       return !TypeHelper.IsPublic (attribute)
-                               || type_name.EndsWith ("TODOAttribute");
+                       if (!TypeHelper.IsPublic (attribute))
+                               return true;
+                       
+                       return attribute.Constructor.DeclaringType.Name.EndsWith ("TODOAttribute", StringComparison.Ordinal);
                }
 
                public static void OutputAttributes (XmlWriter writer, params ICustomAttributeProvider[] providers)