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

◆ UnmangleTypeName()

static string System.Reflection.Emit.ModuleBuilder.UnmangleTypeName ( string typeName)
inlinestaticpackage

Definition at line 40 of file ModuleBuilder.cs.

41 {
42 int startIndex = typeName.Length - 1;
43 while (true)
44 {
45 startIndex = typeName.LastIndexOf('+', startIndex);
46 if (startIndex == -1)
47 {
48 break;
49 }
50 bool flag = true;
51 int num = startIndex;
52 while (typeName[--num] == '\\')
53 {
54 flag = !flag;
55 }
56 if (flag)
57 {
58 break;
59 }
60 startIndex = num;
61 }
62 return typeName.Substring(startIndex + 1);
63 }

References System.startIndex.

Referenced by System.Reflection.Emit.ModuleBuilder.GetTypeRefNested().