public void Dispose() { if (m_MaterialElementId != ElementId.InvalidElementId) { m_Scope.PopMaterialId(); } }