System.Diagnostics.StackTraceSymbols.TryOpenFile C# (CSharp) Method

TryOpenFile() private static method

private static TryOpenFile ( string path ) : Stream
path string
return System.IO.Stream
        private static Stream TryOpenFile(string path)
        {
            if (!File.Exists(path))
            {
                return null;
            }

            try
            {
                return File.OpenRead(path);
            }
            catch
            {
                return null;
            }
        }
    }