Core/CafeLib.Core/Extensions/StreamExtensions.cs
/// <summary>
/// Converts a stream to a text string
/// </summary>
/// <param name="stream"></param>
/// <returns>text string</returns>
Converts a stream to a text string
Converts a stream to a text string
public static string ToTextString(this Stream stream)
        {
            using (stream)
            {
                using var reader = new StreamReader(stream);
                return reader.ReadToEnd();
            }
        }
public static string ToTextString ( this Stream stream ) { using ( stream ) { using var reader = new StreamReader ( stream ) ; return reader . ReadToEnd ( ) ; } }
Converts a stream to a text string
Converts a stream to a text string
None
Stream
this
stream
None