Hi,
The codes below pick up the first layer. If I want a layername instead of 1st. How do I do that ? Thank you!
// get the currently selected features in the map
var selectedFeatures = ArcGIS.Desktop.Mapping.MapView.Active.Map.GetSelection();
// get the first layer and its corresponding selected feature OIDs
var firstSelectionSet = selectedFeatures.First();