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

◆ GetClrNameAndNamespace()

static void System.Runtime.Serialization.DataContract.GetClrNameAndNamespace ( string fullTypeName,
out string localName,
out string ns )
inlinestaticpackageinherited

Definition at line 2008 of file DataContract.cs.

2009 {
2010 int num = fullTypeName.LastIndexOf('.');
2011 if (num < 0)
2012 {
2013 ns = string.Empty;
2014 localName = fullTypeName.Replace('+', '.');
2015 }
2016 else
2017 {
2018 ns = fullTypeName.Substring(0, num);
2019 localName = fullTypeName.Substring(num + 1).Replace('+', '.');
2020 }
2021 int num2 = localName.IndexOf('[');
2022 if (num2 >= 0)
2023 {
2024 localName = localName.Substring(0, num2);
2025 }
2026 }

Referenced by System.Runtime.Serialization.GenericNameProvider.GenericNameProvider(), and System.Runtime.Serialization.DataContract.GetDefaultStableName().