internal static LockOperation GetLockOperation(db_lockop_t o) { switch (o) { case db_lockop_t.DB_LOCK_DUMP: return DUMP; case db_lockop_t.DB_LOCK_GET: return GET; case db_lockop_t.DB_LOCK_GET_TIMEOUT: return GET_TIMEOUT; case db_lockop_t.DB_LOCK_INHERIT: return INHERIT; case db_lockop_t.DB_LOCK_PUT: return PUT; case db_lockop_t.DB_LOCK_PUT_ALL: return PUT_ALL; case db_lockop_t.DB_LOCK_PUT_OBJ: return PUT_OBJ; case db_lockop_t.DB_LOCK_PUT_READ: return PUT_READ; case db_lockop_t.DB_LOCK_TIMEOUT: return TIMEOUT; case db_lockop_t.DB_LOCK_TRADE: return TRADE; case db_lockop_t.DB_LOCK_UPGRADE_WRITE: return UPGRADE_WRITE; } throw new ArgumentException("Unknown db_lockop_t value."); }
static internal LockOperation GetLockOperation(db_lockop_t o) { switch (o) { case db_lockop_t.DB_LOCK_DUMP: return(DUMP); case db_lockop_t.DB_LOCK_GET: return(GET); case db_lockop_t.DB_LOCK_GET_TIMEOUT: return(GET_TIMEOUT); case db_lockop_t.DB_LOCK_INHERIT: return(INHERIT); case db_lockop_t.DB_LOCK_PUT: return(PUT); case db_lockop_t.DB_LOCK_PUT_ALL: return(PUT_ALL); case db_lockop_t.DB_LOCK_PUT_OBJ: return(PUT_OBJ); case db_lockop_t.DB_LOCK_PUT_READ: return(PUT_READ); case db_lockop_t.DB_LOCK_TIMEOUT: return(TIMEOUT); case db_lockop_t.DB_LOCK_TRADE: return(TRADE); case db_lockop_t.DB_LOCK_UPGRADE_WRITE: return(UPGRADE_WRITE); } throw new ArgumentException("Unknown db_lockop_t value."); }
private LockOperation(db_lockop_t o) { op = o; }