Parse XML to dynamic object in C#
<? xml version="1.0" encoding="utf-8" ?> < contacts > < contact id = '1' > < firstName > Michael </ firstName > < lastName > Jordan </ lastName > < age > 40 </ age > < dob > 1965 </ dob > < salary > 100.35 </ salary > </ contact > < contact id = '2' > < firstName > Scottie </ firstName > < lastName > Pippen </ lastName > < age > 38 </ age > < dob > 1967 </ dob > < salary > 55.28 </ salary > </ contact > </ contacts > public class XmlToDynamic { public static void Parse(dynamic parent, XElement node) { if (node.HasElements) { if (node.Elements(node.Elements().First().Name.LocalName).Count() > 1) { //list var item = new ExpandoObject(); var list = new List<dynamic
Although casinos might earn some cash from meals, entertainment, and other venues, the breadwinner for the trade is the video games. A significant portion of casino income are end result of|the outcomes of} the accrual of the entire losses from casino patrons every year. Ministar Roulette is the proper recreation for beginners and advanced gamers alike who wanting to|want to|wish to} play roulette an exciting new method. Get the entire fun and 토토사이트 pleasure of a reside desk recreation with extra consolation and less intimidation. Play Wheel of Fortune, Double Diamond, Blazing 7s or one other classic favourite.
ReplyDelete