System.Xml.XmlCachedStream.XmlCachedStream C# (CSharp) Méthode

XmlCachedStream() private méthode

private XmlCachedStream ( Uri uri, Stream stream ) : System
uri System.Uri
stream Stream
Résultat System
        internal XmlCachedStream( Uri uri, Stream stream ) 
            : base() {

            this.uri = uri;

            try {
                byte[] bytes = new byte[MoveBufferSize];
                int read = 0;
                while ( ( read = stream.Read( bytes, 0, MoveBufferSize ) ) > 0 ) {
                    this.Write( bytes, 0, read );
                }
                base.Position = 0;
            }
            finally {
                stream.Close();
            }
        }
    }
XmlCachedStream