Table of Contents

Class XmlAttributeAttribute

Namespace
NMF.Serialization
Assembly
NMF.Serialization.dll

Attribute to decide whether the specified property should be serialized as attribute.

[AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
public sealed class XmlAttributeAttribute : Attribute
Inheritance
XmlAttributeAttribute
Inherited Members

Remarks

A property can only be serialized as attribute, if the property Type supports conversion to and from string

Constructors

XmlAttributeAttribute(bool)

Creates a XmlAttributeAttribute

public XmlAttributeAttribute(bool serializeAsAttribute)

Parameters

serializeAsAttribute bool

Value that indicates if the element should be serialized as Xml-attribute

Properties

SerializeAsAttribute

Value that indicates whether the element should be serialized as Xml-Attribute

public bool SerializeAsAttribute { get; }

Property Value

bool