Пример #1
0
		public StreamWrapper (GMime.Stream stream)
		{
			if (stream == null)
				throw new ArgumentNullException ();
			
			this.stream = stream;
		}
Пример #2
0
		public override void Close ()
		{
			if (stream == null)
				throw new ObjectDisposedException ("GMimeStream", "The stream has been closed");
			
			stream.Dispose ();
			stream = null;
		}
        public StreamWrapper(GMime.Stream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException();
            }

            this.stream = stream;
        }
        public override void Close()
        {
            if (stream == null)
            {
                throw new ObjectDisposedException("GMimeStream", "The stream has been closed");
            }

            stream.Dispose();
            stream = null;
        }