GoXam for WPF v3
Attribute(XName,Int32,Int32) Method
Northwoods.GoXam.Model Namespace > XHelper Class > Attribute Method : Attribute(XName,Int32,Int32) Method
the attribute name, often the same as the data's property name
the property value
the default value for the property
Generate an XAttribute for an Int32 value, unless the value is equal to the given default value.
Syntax
public static XAttribute Attribute( 
   XName n,
   int v,
   int defval
)

Parameters

n
the attribute name, often the same as the data's property name
v
the property value
defval
the default value for the property

Return Value

an XAttribute or null
See Also

Reference

XHelper Class
XHelper Members
Overload List