byte array As Stream - CSharp System

CSharp examples for System:Byte Array

Description

byte array As Stream

Demo Code


using System.Threading.Tasks;
using System.Linq;
using System.IO;//from ww w . j a v a2 s  .c  om
using System.Collections.Generic;
using System;

public class Main{
        public static Stream AsStream(this byte[] array) =>
            new MemoryStream(array);
}

Related Tutorials