You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Foundation] Fix nullability in NSMutableOrderedSet<TKey>. (#24423)
This is file 33 of 47 files with nullability disabled in Foundation.
Changes:
* Enabled nullability by replacing '#nullable disable' with '#nullable enable'
* Removed [SupportedOSPlatform] attributes without version numbers
* Replaced 'To be added' comments with proper XML documentation
* Added comprehensive XML comments for all public members
* Added 'see cref' attributes for type references
* Fixed whitespace in XML comments
* Updated exception handling to use ArgumentNullException.ThrowIfNull
* Added null-forgiving operators where necessary for Runtime.GetINativeObject calls
* Made operator overload parameters and return types nullable where appropriate
* Add more tests.
Contributes towards #17285.
/// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
33
-
/// <remarks>
34
-
/// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
35
-
/// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the [Export("initWithCoder:"] attribute declaration.</para>
36
-
/// <para>The state of this object can also be serialized by using the companion method, EncodeTo.</para>
37
-
/// </remarks>
28
+
/// <remarks>
29
+
/// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
30
+
/// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the [Export("initWithCoder:")] attribute declaration.</para>
31
+
/// <para>The state of this object can also be serialized by using the companion method, EncodeTo.</para>
/// <summary>Computes the union of two ordered sets.</summary>
194
+
/// <param name="first">The first ordered set.</param>
195
+
/// <param name="second">The second ordered set.</param>
196
+
/// <returns>A new <see cref="NSMutableOrderedSet{TKey}"/> containing all objects from both ordered sets, or <see langword="null"/> if both are <see langword="null"/>.</returns>
/// <summary>Computes the union of an ordered set and a set.</summary>
211
+
/// <param name="first">The ordered set.</param>
212
+
/// <param name="second">The set to add to the ordered set.</param>
213
+
/// <returns>A new <see cref="NSMutableOrderedSet{TKey}"/> containing all objects from both collections, or <see langword="null"/> if both are <see langword="null"/>.</returns>
/// <summary>Computes the union of two ordered sets.</summary>
228
+
/// <param name="first">The first ordered set.</param>
229
+
/// <param name="second">The second ordered set to add.</param>
230
+
/// <returns>A new <see cref="NSMutableOrderedSet{TKey}"/> containing all objects from both ordered sets, or <see langword="null"/> if both are <see langword="null"/>.</returns>
/// <summary>Computes the difference between two ordered sets.</summary>
245
+
/// <param name="first">The ordered set to subtract from.</param>
246
+
/// <param name="second">The ordered set to subtract.</param>
247
+
/// <returns>A new <see cref="NSMutableOrderedSet{TKey}"/> containing objects in <paramref name="first"/> but not in <paramref name="second"/>, or <see langword="null"/> if <paramref name="first"/> is <see langword="null"/>.</returns>
/// <summary>Computes the difference between an ordered set and a set.</summary>
261
+
/// <param name="first">The ordered set to subtract from.</param>
262
+
/// <param name="second">The set to subtract.</param>
263
+
/// <returns>A new <see cref="NSMutableOrderedSet{TKey}"/> containing objects in <paramref name="first"/> but not in <paramref name="second"/>, or <see langword="null"/> if <paramref name="first"/> is <see langword="null"/>.</returns>
/// <summary>Computes the difference between two ordered sets.</summary>
277
+
/// <param name="first">The ordered set to subtract from.</param>
278
+
/// <param name="second">The ordered set to subtract.</param>
279
+
/// <returns>A new <see cref="NSMutableOrderedSet{TKey}"/> containing objects in <paramref name="first"/> but not in <paramref name="second"/>, or <see langword="null"/> if <paramref name="first"/> is <see langword="null"/>.</returns>
0 commit comments