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

◆ Version

Version System.Environment.Version
staticget

Definition at line 218 of file Environment.cs.

219 {
220 get
221 {
222 string text = typeof(object).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;
223 ReadOnlySpan<char> readOnlySpan = text.AsSpan();
224 int num = readOnlySpan.IndexOfAny('-', '+', ' ');
225 if (num != -1)
226 {
227 readOnlySpan = readOnlySpan.Slice(0, num);
228 }
229 if (!System.Version.TryParse(readOnlySpan, out Version result))
230 {
231 return new Version();
232 }
233 return result;
234 }
235 }
static Version Version
static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out Version? result)
Definition Version.cs:324

Referenced by System.Environment.GetOSVersion().