Convert byte array To Memory Stream - CSharp System

CSharp examples for System:Byte Array

Description

Convert byte array To Memory Stream

Demo Code


using System.IO;/*from w ww . j a  v  a  2 s. c o m*/
using System.Text;

public class Main{
        public static MemoryStream ToMemoryStream(this byte[] data)
        {
            return new MemoryStream(data);
        }
}

Related Tutorials