Table of Contents

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 string

the name of the opposite property

XmlOppositeAttribute(Type, string)

Creates a new instance

public XmlOppositeAttribute(Type oppositeType, string oppositeProperty)

Parameters

oppositeType Type

the opposite type

oppositeProperty string

the name of the opposite property

Properties

OppositeProperty

Gets the name of the opposite property

public string OppositeProperty { get; }

Property Value

string

OppositeType

Gets the opposite type

public Type OppositeType { get; }

Property Value

Type