Skip to content

Commit a07b818

Browse files
authored
Fix .NET 5.0 C# TryParse signature. (dotnet#5350)
In `TryParse`, `string value` was correctly updated to `string? value`, but `out bool result` was incorrectly updated to `out bool? result`.
1 parent 21e9128 commit a07b818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System/Boolean.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,7 @@ This field is equal to the string "True".
19931993
<MemberSignature Language="VB.NET" Value="Public Shared Function TryParse (value As String, ByRef result As Boolean) As Boolean" />
19941994
<MemberSignature Language="C++ CLI" Value="public:&#xA; static bool TryParse(System::String ^ value, [Runtime::InteropServices::Out] bool % result);" />
19951995
<MemberSignature Language="F#" Value="static member TryParse : string * bool -&gt; bool" Usage="System.bool.TryParse (value, result)" />
1996-
<MemberSignature Language="C#" Value="public static bool TryParse (string? value, out bool? result);" FrameworkAlternate="net-5.0;netcore-3.0;netcore-3.1" />
1996+
<MemberSignature Language="C#" Value="public static bool TryParse (string? value, out bool result);" FrameworkAlternate="net-5.0;netcore-3.0;netcore-3.1" />
19971997
<MemberType>Method</MemberType>
19981998
<AssemblyInfo>
19991999
<AssemblyName>System.Runtime</AssemblyName>

0 commit comments

Comments
 (0)