public void Dispose(bool disposeManagedResources) { if (!beDisposed) { beDisposed = true; if (reference > 0 && luaState != null) { luaState.CollectRef(reference, name, !disposeManagedResources); } reference = -1; luaState = null; count = 0; } }
public void Dispose(bool disposeManagedResources) { if (!beDisposed) { beDisposed = true; if (reference > 0 && luaState != null) { luaState.CollectRef(reference, name, !disposeManagedResources); } reference = -1; luaState = null; count = 0; } }