public static string FirstLocation(this Result result) { PhysicalLocation pLoc = result.EnumeratePhysicalLocations().FirstOrDefault(); if (pLoc == null) { return(""); } return($"{UriSuffix(pLoc.FileUri(result.Run), 15)}{RegionString(pLoc.Region)}"); }
public static string FirstLocation(this Result result) { PhysicalLocation pLoc = result.EnumeratePhysicalLocations().FirstOrDefault(); if (pLoc == null) { return(""); } Uri uri = pLoc.FileUri(result.Run); return($"{Path.GetFileName(uri?.OriginalString)}{RegionString(pLoc.Region)}"); }