Share via


XmlWriterExtensions Members

The XmlWriterExtensions type exposes the following members.

Methods

  Name Description
Ff661271.pubmethod(en-us,PandP.20).gifFf661271.static(en-us,PandP.20).gif WriteAttributeIfNotEmpty
A helper method to make it easier to output attributes. If the attributeValue is null or an empty string, output nothing, else output the given XML attribute.
Ff661271.pubmethod(en-us,PandP.20).gifFf661271.static(en-us,PandP.20).gif WriteElement
A helper method to make it more foolproof to write elements. This takes care of writing the start and end elment tags, and takes a nested closure with the code to write the content of the tag. That way the caller doesn't need to worry about the details of getting the start and end tags correct.

See Also

XmlWriterExtensions Class

Microsoft.Practices.Unity.Configuration.ConfigurationHelpers Namespace