The iterating points of the tool. Point is taken by the function, which then retrieves the features at that point. What might be the cause of the persistent variations in the results?
SelectionSet selectionSet = MapView.Active.GetFeatures(mapPoint, true, false);
Dictionary<MapMember, List<long>> result = selectionSet.ToDictionary();
foreach (var entry in result)
{
MapMember layer = entry.Key;
List<long> ObjectIDs = entry.Value;
foreach (long OID in ObjectIDs)
{
dat.Add(string.Format("{0}{1}: {2}{3}", "{\"", layer.Name + "\"", OID, "}"));
}
}