Abp.IO.Extensions.StreamExtensions.GetAllBytes C# (CSharp) Метод

GetAllBytes() публичный статический Метод

public static GetAllBytes ( this stream ) : byte[]
stream this
Результат byte[]
        public static byte[] GetAllBytes(this Stream stream)
        {
            using (var memoryStream = new MemoryStream())
            {
                stream.CopyTo(memoryStream);
                return memoryStream.ToArray();
            }
        }
    }
StreamExtensions