Class XmlAttributeAttribute
Attribute to decide whether the specified property should be serialized as attribute.
Inherited Members
Namespace: NMF.Serialization
Assembly: NMF.Serialization.dll
Syntax
[AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
public sealed class XmlAttributeAttribute : Attribute
Remarks
A property can only be serialized as attribute, if the property Type supports conversion to and from string
Constructors
| Edit this page View SourceXmlAttributeAttribute(bool)
Creates a XmlAttributeAttribute
Declaration
public XmlAttributeAttribute(bool serializeAsAttribute)
Parameters
Type | Name | Description |
---|---|---|
bool | serializeAsAttribute | Value that indicates if the element should be serialized as Xml-attribute |
Properties
| Edit this page View SourceSerializeAsAttribute
Value that indicates whether the element should be serialized as Xml-Attribute
Declaration
public bool SerializeAsAttribute { get; }
Property Value
Type | Description |
---|---|
bool |