GoXam for WPF v3
Elements<T> Method
Northwoods.GoXam.Model Namespace > XHelper Class : Elements<T> Method
the item data type
the name for the new XElement
the name for the child elements
Generate an XElement containing nested child XElements, one for each item in the given collection.
Syntax
public static XElement Elements<T>( 
   XName n,
   XName c,
   IEnumerable v,
   Func<T,string> conv
)

Parameters

n
the name for the new XElement
c
the name for the child elements
v
conv

Type Parameters

T
the item data type

Return Value

an XElement or null if the given collection was null or empty
See Also

Reference

XHelper Class
XHelper Members