Table of Contents

Class XmlDefaultPropertyAttribute

Namespace
NMF.Serialization
Assembly
NMF.Serialization.dll

Marks a property as default property

[AttributeUsage(AttributeTargets.Property)]
public class XmlDefaultPropertyAttribute : Attribute
Inheritance
XmlDefaultPropertyAttribute
Inherited Members

Constructors

XmlDefaultPropertyAttribute(bool)

Creates a new instance

public XmlDefaultPropertyAttribute(bool isDefault)

Parameters

isDefault bool

True, if the annotated property is the default property, otherwise False

Properties

IsDefault

Gets a value indicating whether this is the default property or not

public bool IsDefault { get; }

Property Value

bool