Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ CheckChoiceIdentifierType()

Type System.Xml.Serialization.XmlReflectionImporter.CheckChoiceIdentifierType ( Type type,
bool isArrayLike,
string identifierName,
string memberName )
inlineprivate

Definition at line 1448 of file XmlReflectionImporter.cs.

1449 {
1450 if (type.IsArray)
1451 {
1452 if (!isArrayLike)
1453 {
1455 }
1456 type = type.GetElementType();
1457 }
1458 else if (isArrayLike)
1459 {
1461 }
1462 if (!type.IsEnum)
1463 {
1465 }
1466 return type;
1467 }
static string XmlChoiceIdentifierTypeEnum
Definition SR.cs:1646
static string XmlChoiceIdentifierArrayType
Definition SR.cs:1644
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlChoiceIdentifierType
Definition SR.cs:1642
Definition SR.cs:7

References System.SR.Format(), System.type, System.SR.XmlChoiceIdentifierArrayType, System.SR.XmlChoiceIdentifierType, and System.SR.XmlChoiceIdentifierTypeEnum.

Referenced by System.Xml.Serialization.XmlReflectionImporter.GetChoiceIdentifierType(), and System.Xml.Serialization.XmlReflectionImporter.GetChoiceIdentifierType().