Пример #1
0
 public ComStream(Microsoft.Expression.Project.NativeMethods.IStream iStream)
 {
     if (iStream == null)
     {
         throw new ArgumentNullException("iStream");
     }
     this.iStream = iStream;
 }
Пример #2
0
 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);
 }