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

WriteMember() private method

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

Same methods

XmlSerializationWriterCodeGen::WriteMember ( string source, AttributeAccessor attribute, TypeDesc memberTypeDesc, string parent ) : void