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

◆ GetVersionInfo()

static FileVersionInfo System.Diagnostics.FileVersionInfo.GetVersionInfo ( string fileName)
inlinestatic

Definition at line 120 of file FileVersionInfo.cs.

121 {
122 if (!Path.IsPathFullyQualified(fileName))
123 {
124 fileName = Path.GetFullPath(fileName);
125 }
126 if (!File.Exists(fileName))
127 {
128 throw new FileNotFoundException(fileName);
129 }
130 return new FileVersionInfo(fileName);
131 }
unsafe FileVersionInfo(string fileName)
static bool Exists([NotNullWhen(true)] string? path)
Definition File.cs:97
static string GetFullPath(string path)
Definition Path.cs:881
static bool IsPathFullyQualified(string path)
Definition Path.cs:264

References System.Diagnostics.FileVersionInfo.FileVersionInfo(), System.IO.File.Exists(), System.IO.Path.GetFullPath(), and System.IO.Path.IsPathFullyQualified().