/// <summary> /// Creates and returns a new <see cref="DynamicObject"/> from the given xml <paramref name="node"/>. /// </summary> /// <param name="node"></param> /// <returns>Dynamic object</returns> public static dynamic Parse(XElement node) { var xml = new DynamicXml(); dynamic obj = new ExpandoObject(); xml.Parse(obj, node); return obj; }
/// <summary> /// Creates and returns a new <see cref="DynamicObject"/> from the given xml <paramref name="node"/>. /// </summary> /// <param name="node"></param> /// <returns>Dynamic object</returns> public static dynamic Parse(XElement node) { var xml = new DynamicXml(); dynamic obj = new ExpandoObject(); xml.Parse(obj, node); return(obj); }