* mono-api-info.cs: don't add Finalizers to the api definition.
svn path=/trunk/mcs/; revision=121669
+2008-12-17 Jb Evain <jbevain@novell.com>
+
+ * mono-api-info.cs: don't add Finalizers to the api definition.
+
2008-12-08 Jb Evain <jbevain@novell.com>
* Util.cs
2003-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* CorCompare.exe.sources: not needed now.
-
+
* Makefile: updated to build the 3 exes we have now.
* mono-api-info.cs: new program. Given an assembly name, it generates
if (!MustDocumentMethod(method))
continue;
+ if (IsFinalizer (method))
+ continue;
+
list.Add (method);
}
return (MethodDefinition []) list.ToArray (typeof (MethodDefinition));
}
+ static bool IsFinalizer (MethodDefinition method)
+ {
+ if (method.Name != "Finalize")
+ return false;
+
+ if (!method.IsVirtual)
+ return false;
+
+ if (method.Parameters.Count != 0)
+ return false;
+
+ return true;
+ }
+
private MethodDefinition [] GetConstructors (TypeDefinition type)
{
ArrayList list = new ArrayList ();