C# Class PaulStovell.TrialBalance.DomainModel.PackageDataProvider.AccountXElementAdapter

An adapter for converting Accounts into XElements, and vice-versa.
Mostra file Open project: PaulStovell/trial-balance Class Usage Examples

Public Methods

Method Description
FromXElement ( XElement element ) : Account

Converts a given T:XElement into an T:Account.

ToXElement ( Account account ) : XElement

Converts a given Account into an T:XElement.

Method Details

FromXElement() public method

Converts a given T:XElement into an T:Account.
public FromXElement ( XElement element ) : Account
element XElement The to convert.
return Account

ToXElement() public method

Converts a given Account into an T:XElement.
public ToXElement ( Account account ) : XElement
account Account The to convert.
return XElement