private bool ShouldDoNothingForCurrentLatch(Latch nextLatch) { // If the latch type doesn't change and the latch is configured to not re-enter itself if unchanged then return true (for do nothing) return(nextLatch.GetType() == _currentLatch.GetType() && _currentLatch.DoNothingOnReEnter); }