Example #1
0
 private void Dispose(bool disposing)
 {
     try
     {
         if (!this.disposed && disposing)
         {
             if (this.xInput != null)
             {
                 this.xInput = null;
             }
             if (this.xOutput != null)
             {
                 this.xOutput = null;
             }
             if (this.stream != null)
             {
                 this.stream = null;
             }
         }
     }
     finally
     {
         this.disposed = true;
     }
 }
Example #2
0
 public UnsafeNativeMethods.xSessionOutput GetOutputDelegate()
 {
     this.CheckDisposed();
     if (this.xOutput == null)
     {
         this.xOutput = new UnsafeNativeMethods.xSessionOutput(this.Output);
     }
     return(this.xOutput);
 }