public override void CopyValuesFrom(CellLayerBase <T> anotherLayer) { if (CellEntryChanged != null) { throw new InvalidOperationException( "Cannot copy values when there are listeners attached to the CellEntryChanged event."); } base.CopyValuesFrom(anotherLayer); }