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

◆ WriteMemberElementsElse()

void System.Xml.Serialization.XmlSerializationReaderILGen.WriteMemberElementsElse ( Member anyElement,
string elementElseString )
inlineprivate

Definition at line 1988 of file XmlSerializationReaderILGen.cs.

1989 {
1990 if (anyElement != null)
1991 {
1992 ElementAccessor[] elements = anyElement.Mapping.Elements;
1993 for (int i = 0; i < elements.Length; i++)
1994 {
1995 ElementAccessor elementAccessor = elements[i];
1996 if (elementAccessor.Any && elementAccessor.Name.Length == 0)
1997 {
1998 WriteElement(anyElement.ArraySource, anyElement.ArrayName, anyElement.ChoiceArraySource, elementAccessor, anyElement.Mapping.ChoiceIdentifier, (anyElement.Mapping.CheckSpecified == SpecifiedAccessor.ReadWrite) ? anyElement.CheckSpecifiedSource : null, checkForNull: false, readOnly: false, -1, i);
1999 break;
2000 }
2001 }
2002 }
2003 else
2004 {
2006 }
2007 }
void WriteElement(string source, string arrayName, string choiceSource, ElementAccessor element, ChoiceIdentifierAccessor choice, string checkSpecified, bool checkForNull, bool readOnly, int fixupIndex, int elementIndex)

References System.Xml.Dictionary, System.Text.RegularExpressions.i, System.Xml.Serialization.XmlSerializationReaderILGen.ILGenElementElseString(), and System.Xml.Serialization.XmlSerializationReaderILGen.WriteElement().

Referenced by System.Xml.Serialization.XmlSerializationReaderILGen.WriteMemberElementsIf().