Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit34d83c0

Browse files
[Foundation] Fix nullability in NSUrlRequest. (#24263)
This is file 8 of 47 files with nullability disabled in Foundation.Also (by Copilot):* Improve NSUrlRequest documentation and enable nullability. * Remove empty XML comment sections. * Improve return documentation with see cref attributes. * Fix nullability handling in ToString method. * Remove unnecessary whitespace in documentation.Contributes towards#17285.---------Co-authored-by: GitHub Copilot <noreply@github.com>
1 parent6fda092 commit34d83c0

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

‎src/Foundation/ToString.cs‎renamed to ‎src/Foundation/NSUrlRequest.cs‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,15 @@
2727
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2828
//
2929

30-
// Disable until we get around to enable + fix any issues.
31-
#nullable disable
30+
#nullable enable
3231

3332
namespaceFoundation{
3433
publicpartialclassNSUrlRequest{
3534
/// <summary>Returns a string representation of the value of the current instance.</summary>
36-
/// <returns>
37-
/// </returns>
38-
/// <remarks>
39-
/// </remarks>
35+
/// <returns>The absolute string of the <see cref="Url" /> if it is not <see langword="null" />, otherwise the base class string representation.</returns>
4036
publicoverridestringToString()
4137
{
42-
returnUrlis notnull?Url.AbsoluteString:base.ToString();
38+
returnUrl?.AbsoluteString??base.ToString();
4339
}
4440
}
4541
}

‎src/frameworks.sources‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ FOUNDATION_SOURCES = \
904904
Foundation/NSXpcConnection.cs \
905905
Foundation/NSXpcInterface.cs \
906906
Foundation/ObjCException.cs \
907-
Foundation/ToString.cs \
907+
Foundation/NSUrlRequest.cs \
908908
Foundation/NSItemProvider.cs \
909909

910910
# FSKit

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp