···502502 catch (Exception ex)
503503 {
504504 candidate = null;
505505- if (ex is ArgumentException ||
506506- ex is UnauthorizedAccessException ||
507507- ex is PathTooLongException ||
508508- ex is NotSupportedException)
505505+ if (ex is ArgumentException or UnauthorizedAccessException or PathTooLongException or NotSupportedException)
509506 {
510507 _trace.TraceEvent(TraceEventType.Error, 0,
511508 "Error while handling file path \"{0}\". Treating file as non-existent instead of reporting exception: {1}",