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
boolTrue, 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; }