C# Class D16.VideoCommander.PlaylistSerializer

Serielizer for play lists.
Datei anzeigen Open project: feg-giessen/videocommander Class Usage Examples

Public Methods

Method Description
Deserialize ( XmlDocument document ) : IEnumerable

Deserializes a play list from specified xml document.

GetAttributeValue ( XmlNode node, string name ) : string

Returns the value of the specified attribute. If the attribute is not present for the specified node, an empty string is returned.

Serialize ( IEnumerable items ) : XmlDocument

Serializes the specified play list items.

Method Details

Deserialize() public method

Deserializes a play list from specified xml document.
public Deserialize ( XmlDocument document ) : IEnumerable
document System.Xml.XmlDocument The serialized play list as xml document.
return IEnumerable

GetAttributeValue() public method

Returns the value of the specified attribute. If the attribute is not present for the specified node, an empty string is returned.
public GetAttributeValue ( XmlNode node, string name ) : string
node System.Xml.XmlNode The xml node.
name string The attribute name.
return string

Serialize() public method

Serializes the specified play list items.
public Serialize ( IEnumerable items ) : XmlDocument
items IEnumerable The play list.
return System.Xml.XmlDocument