private void EnsureNotGlobal() { if (IsGlobal) throw new InvalidOperationException("Global reference cannot be updated."); }