ServiceStack.StreamExt.ToBytes C# (CSharp) Method

ToBytes() public static method

public static ToBytes ( this stream ) : byte[]
stream this
return byte[]
        public static byte[] ToBytes(this Stream stream)
        {
            if (stream == null)
                throw new ArgumentNullException(nameof(stream));

            return stream.ReadFully();
        }