src/SyncTool.Utilities/main/StringExtensions.cs
/// <summary>
/// Creates a in-memory stream and writes the string content to it
/// </summary>
Creates a in-memory stream and writes the string content to it
Creates a in - memory stream and writes the string content to it
public static Stream ToStream(this string s)
        {
            MemoryStream stream = new MemoryStream();
            StreamWriter writer = new StreamWriter(stream);
            writer.Write(s);
            writer.Flush();
            stream.Position = 0;
            return stream;
        }
public static Stream ToStream ( this string s ) { MemoryStream stream = new MemoryStream ( ) ; StreamWriter writer = new StreamWriter ( stream ) ; writer . Write ( s ) ; writer . Flush ( ) ; stream . Position = 0 ; return stream ; }
Creates a in-memory stream and writes the string content to it
Creates a in - memory stream and writes the string content to it
string
this