Created
December 26, 2020 16:05
-
-
Save mr5z/c04364c15ed0a2f223072c82526c786f to your computer and use it in GitHub Desktop.
Aaaa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Correct | |
public static async Task<string> StreamToString(Stream stream) | |
{ | |
using var reader = new StreamReader(stream); | |
return await reader.ReadToEndAsync(); | |
} | |
// Incorrect | |
public static Task<string> StreamToString(Stream stream) | |
{ | |
using var reader = new StreamReader(stream); | |
return reader.ReadToEndAsync(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment