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