public ComStream(Microsoft.Expression.Project.NativeMethods.IStream iStream) { if (iStream == null) { throw new ArgumentNullException("iStream"); } this.iStream = iStream; }
protected override void Dispose(bool disposing) { try { if (disposing && this.iStream != null) { while (Marshal.ReleaseComObject(this.iStream) > 0) { } } } finally { this.iStream = null; } base.Dispose(disposing); }