Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix cref format for generated notification documentation

  • Loading branch information...
commit d5d666808040de03d85bcfc510972b8f6deae4e3 1 parent aa1f63d
Marek Safar authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  tools/docfixer/document-generated-code.cs
6  tools/docfixer/document-generated-code.cs
@@ -289,7 +289,8 @@ public static void DocumentNotificationNestedType (Type t, PropertyInfo pi, stri
289 289
 		var class_summary = class_doc.XPathSelectElement ("Type/Docs/summary");
290 290
 		var class_remarks = class_doc.XPathSelectElement ("Type/Docs/remarks");
291 291
 
292  
-		class_summary.Value = "Notification posted by the <see cref =\"T:" + t.FullName + "\"/> class.";
  292
+		class_summary.RemoveAll ();
  293
+		class_summary.Add (XElement.Parse ("<para>Notification posted by the <see cref =\"T:" + t.FullName + "\"/> class.</para>"));
293 294
 		class_remarks.RemoveAll ();
294 295
 		class_remarks.Add (XElement.Parse ("<para>This is a static class which contains various helper methods that allow developers to observe events posted " +
295 296
 						   "in the iOS notification hub (<see cref=\"T:MonoTouch.Foundation.NSNotificationCenter\"/>).</para>"));
@@ -317,7 +318,8 @@ public static void DocumentNotificationNestedType (Type t, PropertyInfo pi, stri
317 318
 				Console.WriteLine ("Looking for {0}, and this is the class\n{1}", notification.Item1, class_doc);
318 319
 			handler.Value = "Method to invoke when the notification is posted.";
319 320
 			summary.Value = "Registers a method to be notified when the " + notification.Item2 + " notification is posted.";
320  
-			returns.Value = "The returned NSObject represents the registered notification.   Either call Dispose on the object to stop receiving notifications, or pass it to <see cref=\"M:MonoTouch.Foundation.NSNotification.RemoveObserver\"/>";
  321
+			returns.RemoveAll ();
  322
+			returns.Add (XElement.Parse ("<para>The returned NSObject represents the registered notification.   Either call Dispose on the object to stop receiving notifications, or pass it to <see cref=\"M:MonoTouch.Foundation.NSNotification.RemoveObserver\"/></para>"));
321 323
 			remarks.RemoveAll ();
322 324
 			remarks.Add (XElement.Parse ("<para>The following example shows how you can use this method in your code</para>"));
323 325
 

0 notes on commit d5d6668

Please sign in to comment.
Something went wrong with that request. Please try again.