GenericList Sample

Back to summary

Source

using System.Collections.Generic;

namespace XmlSerializersTest.Samples
{
    [Title("Generic list")]
    public class GenericList
    {
        public List<string> Strings { get; set; }
    }
}

Standard Serializer

<GenericList>
  <Strings>
    <string>foo</string>
    <string>bar</string>
    <string>baz</string>
  </Strings>
</GenericList>