Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Some fixes
  • Loading branch information
hrrrrustic committed May 20, 2023
commit 7333ca3a4b1bdabca280db77caf1390eb81f6e13
3 changes: 1 addition & 2 deletions src/libraries/System.Private.CoreLib/src/System/Convert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3050,7 +3050,6 @@ public static string ToHexString(ReadOnlySpan<byte> bytes)

public static bool TryToHexString(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten)
{
charsWritten = 0;
var length = source.Length;

if (length > int.MaxValue / 2)
Expand All @@ -3072,7 +3071,7 @@ public static bool TryToHexString(ReadOnlySpan<byte> source, Span<char> destinat
return true;

FalseResult:
bytesWritten = 0;
charsWritten = 0;
return false;
}
} // class Convert
Expand Down