diff --git a/docs/api/UIKit/UIView.xml b/docs/api/UIKit/UIView.xml
index cd230ee3fc43..49b44f369d5a 100644
--- a/docs/api/UIKit/UIView.xml
+++ b/docs/api/UIKit/UIView.xml
@@ -308,7 +308,7 @@ var myView = new UIView (new CGRect (0, 0, 100, 100));
Animation
Apple recommends that app developers use the class to implement animations on their objects. Apple also discourages, but has not deprecated, any other animation APIs on the class. Additionally, developers can implement implicit animations for some or all properties by creating a custom views that has a custom property that provides animation actions for animation keys.
- Developers can animate changes in the geometry or appearance of a UIView by creating a new , configuring it, and calling its method. Developers can update the animations (for example, to cancel it) by calling the method while the animation is in progress. The Animate a UIView using UIKit recipe shows how to create an cancel an animation by using the class.
+ Developers can animate changes in the geometry or appearance of a UIView by creating a new , configuring it, and calling its method. Developers can update the animations (for example, to cancel it) by calling the method while the animation is in progress. See Apple's UIViewPropertyAnimator documentation for information about creating and controlling animations.
Alternatively, developers can create animations by calling the
method, configuring the animation, making the
@@ -1651,4 +1651,4 @@ void Setup ()
-
\ No newline at end of file
+
diff --git a/src/AppKit/NSApplication.cs b/src/AppKit/NSApplication.cs
index 18248837792d..30b20ec30e97 100644
--- a/src/AppKit/NSApplication.cs
+++ b/src/AppKit/NSApplication.cs
@@ -32,7 +32,11 @@
namespace AppKit {
public partial class NSApplication : NSResponder {
- ///
+ /// Controls whether calls to AppKit APIs are checked to ensure that they are made on the UI thread.
+ ///
+ /// Accessing AppKit APIs from a background thread can corrupt application state. These checks help identify such accesses.
+ /// The initial value is controlled by the CheckForIllegalCrossThreadCalls build property, which defaults to in debug builds and in release builds.
+ ///
public static bool CheckForIllegalCrossThreadCalls;
/// To be added.
/// To be added.
@@ -92,7 +96,9 @@ public static void Main (string [] args)
}
}
- ///
+ /// Checks that the current call is made on the UI thread.
+ /// Thread checks are enabled and the current thread is not the UI thread.
+ /// This method does nothing when is . Thread checks are enabled by default in debug builds and disabled by default in release builds.
public static void EnsureUIThread ()
{
Runtime.EnsureUIThread ();
diff --git a/src/Compression/Compression.cs b/src/Compression/Compression.cs
index dcd80d9d1ed7..2c77eee61427 100644
--- a/src/Compression/Compression.cs
+++ b/src/Compression/Compression.cs
@@ -652,7 +652,9 @@ private void PurgeBuffers (bool disposing)
}
}
- ///
+ /// Releases the resources used by this stream and optionally disposes the underlying stream.
+ /// to release managed and unmanaged resources; to release only unmanaged resources.
+ /// The underlying stream is disposed only when is and this stream was not configured to leave it open.
protected override void Dispose (bool disposing)
{
try {
diff --git a/src/Foundation/NSUrlSessionHandler.cs b/src/Foundation/NSUrlSessionHandler.cs
index 7d9215652dda..abd60d8636b4 100644
--- a/src/Foundation/NSUrlSessionHandler.cs
+++ b/src/Foundation/NSUrlSessionHandler.cs
@@ -197,7 +197,8 @@ void RemoveInflightData (NSUrlSessionTask task, bool cancel = true)
task?.Dispose ();
}
- ///
+ /// Cancels pending requests and releases the resources used by this handler.
+ /// to release managed and unmanaged resources; to release only unmanaged resources.
protected override void Dispose (bool disposing)
{
var tasks = new List ();
diff --git a/src/System.Net.Http/CFNetworkHandler.cs b/src/System.Net.Http/CFNetworkHandler.cs
index a4e76243f921..3e93e55ba71c 100644
--- a/src/System.Net.Http/CFNetworkHandler.cs
+++ b/src/System.Net.Http/CFNetworkHandler.cs
@@ -152,7 +152,8 @@ public bool UseSystemProxy {
// TODO: Add more properties
- ///
+ /// Invokes the base handler's disposal implementation.
+ /// The disposal flag passed to the base handler.
protected override void Dispose (bool disposing)
{
// TODO: CloseStream remaining stream buckets if there are any
diff --git a/src/UIKit/UIApplication.cs b/src/UIKit/UIApplication.cs
index b8df746455f9..e53f8568188f 100644
--- a/src/UIKit/UIApplication.cs
+++ b/src/UIKit/UIApplication.cs
@@ -26,7 +26,11 @@ public UIKitThreadAccessException () : base ("UIKit Consistency error: you are c
public partial class UIApplication
: UIResponder {
- ///
+ /// Controls whether calls to UIKit APIs are checked to ensure that they are made on the UI thread.
+ ///
+ /// Accessing UIKit APIs from a background thread can corrupt application state. These checks help identify such accesses.
+ /// The initial value is controlled by the CheckForIllegalCrossThreadCalls build property, which defaults to in debug builds and in release builds.
+ ///
public static bool CheckForIllegalCrossThreadCalls;
/// If , the system will try to diagnose potential mistakes where events and delegate-object overrides are in conflict.
public static bool CheckForEventAndDelegateMismatches = true;
@@ -115,7 +119,9 @@ public static void Main (string []? args)
#endif
}
- ///
+ /// Checks that the current call is made on the UI thread.
+ /// Thread checks are enabled and the current thread is not the UI thread.
+ /// This method does nothing when is . Thread checks are enabled by default in debug builds and disabled by default in release builds.
public static void EnsureUIThread ()
{
Runtime.EnsureUIThread ();
diff --git a/src/bgen/Generator.cs b/src/bgen/Generator.cs
index 7ed537018e4b..556d157377ca 100644
--- a/src/bgen/Generator.cs
+++ b/src/bgen/Generator.cs
@@ -7326,7 +7326,7 @@ public void Generate (Type type)
// if there are any [Dispose] attributes then they all must opt-in in order for the generated Dispose method to be optimizable
bool optimizable = !has_dispose_attributes || IsOptimizable (type);
if (BindingTouch.SupportsXmlDocumentation)
- print ("/// ");
+ print ("/// ");
print_generated_code (optimizable: optimizable);
print ("protected override void Dispose (bool disposing)");
print ("{");
diff --git a/tests/bgen/tests/ExpectedXmlDocs.MacCatalyst.xml b/tests/bgen/tests/ExpectedXmlDocs.MacCatalyst.xml
index b1c3b26edbe8..f2fe87cb64f9 100644
--- a/tests/bgen/tests/ExpectedXmlDocs.MacCatalyst.xml
+++ b/tests/bgen/tests/ExpectedXmlDocs.MacCatalyst.xml
@@ -645,7 +645,7 @@
Raised by the object's delegate to signal an event.
-
+
Provides data for an event based on an Objective-C protocol method.
@@ -925,4 +925,4 @@
A delegate that represents the callback for the corresponding Objective-C delegate/protocol method.
-
\ No newline at end of file
+
diff --git a/tests/bgen/tests/ExpectedXmlDocs.iOS.xml b/tests/bgen/tests/ExpectedXmlDocs.iOS.xml
index 7371b27e4156..d7a88c28f583 100644
--- a/tests/bgen/tests/ExpectedXmlDocs.iOS.xml
+++ b/tests/bgen/tests/ExpectedXmlDocs.iOS.xml
@@ -645,7 +645,7 @@
Raised by the object's delegate to signal an event.
-
+
Provides data for an event based on an Objective-C protocol method.
@@ -1155,4 +1155,4 @@
A delegate that represents the callback for the corresponding Objective-C delegate/protocol method.
-
\ No newline at end of file
+
diff --git a/tests/bgen/tests/ExpectedXmlDocs.macOS.xml b/tests/bgen/tests/ExpectedXmlDocs.macOS.xml
index b1c3b26edbe8..f2fe87cb64f9 100644
--- a/tests/bgen/tests/ExpectedXmlDocs.macOS.xml
+++ b/tests/bgen/tests/ExpectedXmlDocs.macOS.xml
@@ -645,7 +645,7 @@
Raised by the object's delegate to signal an event.
-
+
Provides data for an event based on an Objective-C protocol method.
@@ -925,4 +925,4 @@
A delegate that represents the callback for the corresponding Objective-C delegate/protocol method.
-
\ No newline at end of file
+
diff --git a/tests/bgen/tests/ExpectedXmlDocs.tvOS.xml b/tests/bgen/tests/ExpectedXmlDocs.tvOS.xml
index b1c3b26edbe8..f2fe87cb64f9 100644
--- a/tests/bgen/tests/ExpectedXmlDocs.tvOS.xml
+++ b/tests/bgen/tests/ExpectedXmlDocs.tvOS.xml
@@ -645,7 +645,7 @@
Raised by the object's delegate to signal an event.
-
+
Provides data for an event based on an Objective-C protocol method.
@@ -925,4 +925,4 @@
A delegate that represents the callback for the corresponding Objective-C delegate/protocol method.
-
\ No newline at end of file
+