System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteListElement C# (CSharp) Method

WriteListElement() protected method

protected WriteListElement ( XmlTypeMapping typeMap, object ob, string element, string namesp ) : void
typeMap XmlTypeMapping
ob object
element string
namesp string
return void
		protected virtual void WriteListElement (XmlTypeMapping typeMap, object ob, string element, string namesp)
		{
			if (_format == SerializationFormat.Encoded)
			{
				string n, ns;
				int itemCount = GetListCount (typeMap.TypeData, ob);
				((ListMap) typeMap.ObjectMap).GetArrayType (itemCount, out n, out ns);
				string arrayType = (ns != string.Empty) ? FromXmlQualifiedName (new XmlQualifiedName(n,ns)) : n;
				WriteAttribute ("arrayType", XmlSerializer.EncodingNamespace, arrayType);
			}
			WriteListContent (null, typeMap.TypeData, (ListMap) typeMap.ObjectMap, ob, null);
		}