Answers for "c# string to memorystream"

C#
1

c# string to memorystream

public static MemoryStream GenerateStreamFromString(string value)
{
    return new MemoryStream(Encoding.UTF8.GetBytes(value ?? ""));
}
Posted by: Guest on April-23-2020

C# Answers by Framework

Browse Popular Code Answers by Language