System.Xml.Serialization.ReflectionXmlSerializationWriter.WriteMember C# (CSharp) Method

WriteMember() private method

private WriteMember ( object o, object choiceSource, ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors, XmlMapping parentMapping = null ) : void
o object
choiceSource object
elements ElementAccessor
text TextAccessor
choice ChoiceIdentifierAccessor
memberTypeDesc TypeDesc
writeAccessors bool
parentMapping XmlMapping
return void
        private void WriteMember(object o, object choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors, XmlMapping parentMapping = null)
        {
            if (memberTypeDesc.IsArrayLike &&
                !(elements.Length == 1 && elements[0].Mapping is ArrayMapping))
            {
                WriteArray(o, choiceSource, elements, text, choice, memberTypeDesc);
            }
            else
            {
                WriteElements(o, choiceSource, elements, text, choice, "a", writeAccessors, memberTypeDesc.IsNullable, parentMapping);
            }
        }

Same methods

ReflectionXmlSerializationWriter::WriteMember ( object memberValue, AttributeAccessor attribute, TypeDesc memberTypeDesc, object parent ) : void