We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed81a8f commit b7ebb3bCopy full SHA for b7ebb3b
src/libraries/System.IO/tests/BinaryWriter/BinaryWriter.EncodingTests.cs
@@ -190,7 +190,7 @@ public void WriteString_NotUtf8(int stringLengthInChars)
190
191
private static bool IsUsingFastUtf8(BinaryWriter writer)
192
{
193
- return (bool)writer.GetType().GetField("_useFastUtf8", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(writer);
+ return (bool)typeof(BinaryWriter).GetField("_useFastUtf8", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(writer);
194
}
195
196
private static string GenerateLargeUnicodeString(int charCount)
0 commit comments