SevenZipSharp/SevenZip/SevenZipExtractor.cs
/// <summary>
/// Checks if the specified stream supports extraction.
/// </summary>
/// <param name="stream">The stream to check.</param>
Checks if the specified stream supports extraction.
Checks if the specified stream supports extraction .
private static void ValidateStream(Stream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }
            if (!stream.CanSeek || !stream.CanRead)
            {
                throw new ArgumentException("The specified stream can not seek or read.", "stream");
            }
            if (stream.Length == 0)
            {
                throw new ArgumentException("The specified stream has zero length.", "stream");
            }
        }
private static void ValidateStream ( Stream stream ) { if ( stream == null ) { throw new ArgumentNullException ( " " ) ; } if ( ! stream . CanSeek || ! stream . CanRead ) { throw new ArgumentException ( " " , " " ) ; } if ( stream . Length == 0 ) { throw new ArgumentException ( " " , " " ) ; } }
Checks if the specified stream supports extraction.
Checks if the specified stream supports extraction .
stream
Stream
The stream to check.
The stream to check .