예제 #1
0
 /// <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;
 }
예제 #2
0
        /// <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);
        }