EmptyClass Sample

Back to summary

Source

namespace XmlSerializersTest.Samples
{
    [Title("Empty Class")]
    public class EmptyClass
    {
    }
}

Standard Serializer

<EmptyClass />

XAML Serializer

<EmptyClass xmlns="clr-namespace:XmlSerializersTest.Samples;assembly=XmlSerializersTest" />

WCF Serializer

<EmptyClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XmlSerializersTest.Samples" />

WCF-ref Serializer

<EmptyClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/XmlSerializersTest.Samples" />