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

◆ Extension

string System.IO.FileSystemInfo.Extension
get

Definition at line 24 of file FileSystemInfo.cs.

25 {
26 get
27 {
28 int length = FullPath.Length;
29 int num = length;
30 while (--num >= 0)
31 {
32 char c = FullPath[num];
33 if (c == '.')
34 {
35 return FullPath.Substring(num, length - num);
36 }
37 if (PathInternal.IsDirectorySeparator(c) || c == Path.VolumeSeparatorChar)
38 {
39 break;
40 }
41 }
42 return string.Empty;
43 }
44 }