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

CanOptimizeWriteListSequence() private method

private CanOptimizeWriteListSequence ( TypeDesc listElementTypeDesc ) : bool
listElementTypeDesc TypeDesc
return bool
        bool CanOptimizeWriteListSequence(TypeDesc listElementTypeDesc) {
            // check to see if we can write values of the attribute sequentially
            // currently we have only one data type (XmlQualifiedName) that we can not write "inline", 
            // because we need to output xmlns:qx="..." for each of the qnames
            return (listElementTypeDesc != null && listElementTypeDesc != QnameTypeDesc);
        }