XmlHelper class
Helpers for converting arbitrary objects into XElement instances.
public static class XmlHelper
Public Members
name | description |
---|---|
static ToHashtable(…) | Converts an XElement into a Hashtable. Nested elements become nested Hashtables; repeated elements become lists. Attributes are stored as keys prefixed with “@”, xsi:nil=”true” becomes null . |
static ToXml(…) | Converts an object to an XElement with the specified name, handling nulls, primitives, dictionaries, enumerables, and complex types. |
See Also
- namespace Kestrun.Utilities