type we're trying to load can't be found (e.g. if a type implements
an internal interface, there won't be an XML file for that internal
interface). Ignore the exception.
svn path=/trunk/mcs/; revision=143312
+2009-10-02 Jonathan Pryor <jpryor@novell.com>
+
+ * Mono.Documentation/XmlDocUtils.cs: GetInterfaces() can throw if the
+ type we're trying to load can't be found (e.g. if a type implements
+ an internal interface, there won't be an XML file for that internal
+ interface). Ignore the exception.
+
2009-09-25 Jonathan Pryor <jpryor@novell.com>
* Monodoc/ecma-provider.cs: Don't return 'null' from GetPublicUrl(),
string tk = "T:" + t;
if (!ifaces.ContainsKey (tk)) {
ifaces.Add (tk, null);
- XmlDocument d = loader (t);
- if (d != null)
- GetInterfaces (ifaces, d, loader);
+ try {
+ XmlDocument d = loader (t);
+ if (d != null)
+ GetInterfaces (ifaces, d, loader);
+ }
+ catch (FileNotFoundException e) {
+ // ignore; interface documentation couldn't be found.
+ }
}
}
}