Hi,
I have the misfortune of having to convert an ArcMap AddIn to ArcGIS Pro code. Normally this isn't a problem, but this one happens to be built in VB. I'd like to copy/paste as much 'non-SDK' code as possible so I'd like to keep things in VB as opposed to converting it to my language of choice C#.
Can anyone help convert the following bit of code from C# to VB? Even googling, I can't seem to figure this out:
FeatureLayer currentLayer = map.GetLayersAsFlattenedList().OfType<FeatureLayer>().Where(l => l.Name.Equals(layerName, StringComparison.OrdinalIgnoreCase)).FirstOrDefault();
Thanks