public void LoadFromFile(string fileName) { using (FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read)) { _xqueryEvaluator = _compiler.Compile(fs).Load(); } }
public void Load(string query) { _xqueryEvaluator = _compiler.Compile(query).Load(); }
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; }