private void _setLength(long len) { var e = new InterceptableStreamLengthEventArgs(len, null); this.ChangeLength(this, e); if (e.Exception != null) { throw e.Exception; } }
// 非公開メソッド private long _getLength() { var e = new InterceptableStreamLengthEventArgs(0, null); this.GettingLength(this, e); if (e.Exception != null) { throw e.Exception; } return(e.Length); }