static XpressMethodsWrapper()
 {
     XpressMethodsWrapper.xpressMethodsWrapper   = null;
     XpressMethodsWrapper.LockForCreatingWrapper = new XpressMethodsWrapper.Lock();
     XpressMethodsWrapper.XpressPath             = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\\Microsoft SQL Server\\130\\shared\\msasxpress.dll";
     XpressMethodsWrapper.XpressAvailable        = File.Exists(XpressMethodsWrapper.XpressPath);
 }
 protected override void Dispose(bool disposing)
 {
     if (this.disposed)
     {
         return;
     }
     try
     {
         this.CloseCompressionHandlesAndBuffers();
         if (disposing)
         {
             this.baseXmlaStream.Dispose();
         }
         this.xpressWrapper = null;
         this.disposed      = true;
         if (disposing)
         {
             GC.SuppressFinalize(this);
         }
     }
     catch (IOException)
     {
     }
     catch (Win32Exception)
     {
     }
     finally
     {
         base.Dispose(disposing);
     }
 }