text: public void DecRef(){int rc = refCount.DecrementAndGet();if (rc == 0){bool success = false;try{Release();success = true;}finally{if (!success){refCount.IncrementAndGet();}}}else if (rc < 0){throw new InvalidOperationException("too many DecRef() calls: refCount is " + rc + " after decrement");}}