public void Dispose() { m_Reference = null; if (m_Holder != null) { m_Holder.Removed = true; m_Holder = null; } if (m_Handles != null) { foreach (var h in m_Handles) { h?.Dispose(); } m_Handles = null; } }
internal ReferenceHandle(object obj, HolderBase holder) { m_Reference = obj; m_Holder = holder; }