I have one patch and some questions.
The patch fixes the file generator/updater in monodoc. I had to do this because I was getting a NullReferenceException.
Question 1: which way is the preferred way to keep the documentation? I'm trying to follow this tutorial: http://people.mosaix.net/chris/tutorials/monodoc/monodoc-tutorial.html But there's also a "monodocer" tool, so I'm not sure which one is the good one.
Question 2: the tutorial suggest using "monodoc --update"; is this part of monodoc based on generator/updater.cs?
BTW: I'm using mono from svn, revision 39211.
Thanks,
Rodolfo
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
Index: generator/updater.cs =================================================================== --- generator/updater.cs (revisiĆ³n: 39199) +++ generator/updater.cs (copia de trabajo) @@ -861,8 +861,9 @@ static XmlElement AddDocsParamNode (XmlDocument document, ParameterInfo parameter) { Type param_type = parameter.ParameterType; + Type param_elem_type = param_type.GetElementType(); XmlElement see_node = document.CreateElement ("see"); - see_node.SetAttribute ("cref", "T:" + param_type.GetElementType().ToString()); + see_node.SetAttribute ("cref", "T:" + (param_elem_type==null ? param_type : param_elem_type).ToString()); XmlElement param = document.CreateElement ("param"); param.SetAttribute ("name", parameter.Name); @@ -1564,11 +1565,10 @@ static string GetName (Type t) { string s = ""; - while (t.DeclaringType != t) { + while (t.DeclaringType!=null && t.DeclaringType != t) { s = "+" + t.Name; t = t.DeclaringType; } - return t.Name + s; } }