Skip to content

Commit

Permalink
Fix one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek-karas committed Oct 4, 2023
1 parent ed81a8f commit b7ebb3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void WriteString_NotUtf8(int stringLengthInChars)

private static bool IsUsingFastUtf8(BinaryWriter writer)
{
return (bool)writer.GetType().GetField("_useFastUtf8", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(writer);
return (bool)typeof(BinaryWriter).GetField("_useFastUtf8", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(writer);
}

private static string GenerateLargeUnicodeString(int charCount)
Expand Down

0 comments on commit b7ebb3b

Please sign in to comment.