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

◆ IndexOfFileName()

static int System.Reflection.Metadata.PathUtilities.IndexOfFileName ( string path)
inlinestaticpackage

Definition at line 21 of file PathUtilities.cs.

22 {
23 if (path == null)
24 {
25 return -1;
26 }
27 for (int num = path.Length - 1; num >= 0; num--)
28 {
29 char c = path[num];
30 if (c == '\\' || c == '/' || c == ':')
31 {
32 return num + 1;
33 }
34 }
35 return 0;
36 }

Referenced by System.Reflection.Metadata.PathUtilities.GetFileName().