Пример #1
0
 public void LoadFromFile(string fileName)
 {
     using (FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read))
     {
         _xqueryEvaluator = _compiler.Compile(fs).Load();
     }
 }
Пример #2
0
 public void Load(string query)
 {
     _xqueryEvaluator = _compiler.Compile(query).Load();
 }
Пример #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
                return;

            if (disposing)
            {
                // free other managed objects that implement
                // IDisposable only
            }

            // release any unmanaged objects set the object references to null
            _processor = null;
            _compiler = null;
            _xqueryEvaluator = null;

            _disposed = true;
        }