ServiceStack.StreamExt.ToBytes C# (CSharp) Méthode

ToBytes() public static méthode

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

            return stream.ReadFully();
        }