public void DuplicateLayer(ILayer layer) { ILayer copiedLayer = DataUtils.DeepClone <ILayer>(layer); layer.AddLayer(copiedLayer); }