Esempio n. 1
0
        private void _setLength(long len)
        {
            var e = new InterceptableStreamLengthEventArgs(len, null);

            this.ChangeLength(this, e);

            if (e.Exception != null)
            {
                throw e.Exception;
            }
        }
Esempio n. 2
0
        // 非公開メソッド

        private long _getLength()
        {
            var e = new InterceptableStreamLengthEventArgs(0, null);

            this.GettingLength(this, e);

            if (e.Exception != null)
            {
                throw e.Exception;
            }

            return(e.Length);
        }