public bool Open() { if (_fdb == null) { return(false); } _dsID = _fdb.DatasetID(_dsname); if (_dsID < 0) { return(false); } _sRef = this.SpatialReference; _state = DatasetState.opened; _sIndexDef = _fdb.SpatialIndexDef(_dsID); return(true); }
async public Task <bool> Open() { if (_fdb == null) { return(false); } _dsID = await _fdb.DatasetID(_dsname); if (_dsID < 0) { return(false); } _sRef = await this.GetSpatialReference(); _state = DatasetState.opened; _sIndexDef = await _fdb.SpatialIndexDef(_dsID); return(true); }