OneSimpleProperty Sample

Back to summary

Source

using System.Runtime.Serialization;

namespace XmlSerializersTest.Samples
{
    [Title("One property of built-in type")]
    public class OneSimpleProperty
    {
        public int Value { get; set; }
    }
}

Standard Serializer

<OneSimpleProperty>
  <Value>42</Value>
</OneSimpleProperty>