C# Class D16.VideoCommander.PlaylistSerializer

Serielizer for play lists.
Afficher le fichier Open project: feg-giessen/videocommander Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GetAttributeValue() public méthode

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.
Résultat string

Serialize() public méthode

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