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
[ObjCRuntime] Enable nullability and clean up TypeConverter. (#24733)
This is file 2 of 7 files with nullability disabled in ObjCRuntime.
* Enable nullability (#nullable enable).
* Add nullability-aware argument validation and element-type checks using ThrowHelper for static analysis.
* Improve XML documentation comments: fix formatting/order, grammar, and add relevant see cref references.
Contributes towards #17285.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/ObjCRuntime/TypeConverter.cs
+28-20Lines changed: 28 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,15 @@
3
3
usingSystem.Reflection;
4
4
usingSystem.Collections.Generic;
5
5
6
-
// Disable until we get around to enable + fix any issues.
7
-
#nullable disable
6
+
#nullable enable
8
7
9
8
namespaceObjCRuntime{
10
9
11
-
/// <summary>Converts Obj-C type encodings to managed types.</summary>
12
-
/// <remarks>
13
-
/// <para>This class provides a way of converting Objective-C encoded type strings to .NET and viceversa. The full details about type encodings are available <format type="html"><a href="https://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/gcc/Type-encoding.html">here</a></format>.
14
-
/// </para>
15
-
/// </remarks>
10
+
/// <summary>Converts Objective-C type encodings to managed types and vice versa.</summary>
11
+
/// <remarks>
12
+
/// <para>This class provides a way to convert Objective-C encoded type strings to .NET types and vice versa.</para>
13
+
/// <para>The full details about type encodings are available <see href="https://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/gcc/Type-encoding.html">here</see>.</para>
14
+
/// </remarks>
16
15
publicstaticclassTypeConverter{
17
16
#if !COREBUILD
18
17
/*
@@ -21,15 +20,19 @@ public static class TypeConverter {
0 commit comments