Attempts to resolve a file path by delegating to ResolveFilePath(String), swallowing any exception that escapes and reporting failure via the return value.
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
public bool TryResolveFilePath(string filePathToResolve, scoped out FileInfo? resolvedFilePath)
The file path to resolve.
When this method returns, contains the resolved FileInfo on success; otherwise, null.
true if the file path was resolved successfully; otherwise, false.This wrapper follows the .NET Try* convention: it catches
(not just ) and never propagates an exception upward.
On failure the underlying exception is discarded and resolvedFilePath
is set to null; callers that need the failure cause should use
ResolveFilePath(String) instead.