Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryOpenFile()

static Stream System.Diagnostics.StackTraceSymbols.TryOpenFile ( string path)
inlinestaticprivate

Definition at line 130 of file StackTraceSymbols.cs.

131 {
132 if (!File.Exists(path))
133 {
134 return null;
135 }
136 try
137 {
138 return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete);
139 }
140 catch
141 {
142 return null;
143 }
144 }
static bool Exists([NotNullWhen(true)] string? path)
Definition File.cs:97

References System.IO.File.Exists().

Referenced by System.Diagnostics.StackTraceSymbols.TryGetPEReader(), and System.Diagnostics.StackTraceSymbols.TryOpenReaderFromAssemblyFile().