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

◆ SplitName()

static void System.RuntimeType.SplitName ( string fullname,
out string name,
out string ns )
inlinestaticprivate

Definition at line 1833 of file RuntimeType.cs.

1834 {
1835 name = null;
1836 ns = null;
1837 if (fullname == null)
1838 {
1839 return;
1840 }
1841 int num = fullname.LastIndexOf(".", StringComparison.Ordinal);
1842 if (num != -1)
1843 {
1844 ns = fullname.Substring(0, num);
1845 int num2 = fullname.Length - ns.Length - 1;
1846 if (num2 != 0)
1847 {
1848 name = fullname.Substring(num + 1, num2);
1849 }
1850 else
1851 {
1852 name = "";
1853 }
1854 }
1855 else
1856 {
1857 name = fullname;
1858 }
1859 }

Referenced by System.RuntimeType.GetInterface(), System.RuntimeType.GetNestedType(), and System.RuntimeType.GetNestedTypeCandidates().