Class XmlOppositeAttribute
- Namespace
- NMF.Serialization
- Assembly
- NMF.Serialization.dll
Specifies that the given different property is an opposite
[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public sealed class XmlOppositeAttribute : Attribute
- Inheritance
-
XmlOppositeAttribute
- Inherited Members
Constructors
XmlOppositeAttribute(string)
Creates a new instance
public XmlOppositeAttribute(string oppositeProperty)
Parameters
oppositeProperty
stringthe name of the opposite property
XmlOppositeAttribute(Type, string)
Creates a new instance
public XmlOppositeAttribute(Type oppositeType, string oppositeProperty)
Parameters
Properties
OppositeProperty
Gets the name of the opposite property
public string OppositeProperty { get; }
Property Value
OppositeType
Gets the opposite type
public Type OppositeType { get; }