zoukankan      html  css  js  c++  java
  • Linq to xml:XAttribute对象

                XElement c = new XElement("Customers",
        new XElement("Customer",
            new XElement("Name", "John Doe"),
            new XElement("PhoneNumbers",
                new XElement("Phone",
                    new XAttribute("type", "home"),
                    "555-555-5555"),
                new XElement("Phone",
                    new XAttribute("type", "work"),
                    "666-666-6666")
            )
        )
    );
                Console.WriteLine(c);
    关于作者: 王昕(QQ:475660) 在广州工作生活30余年。十多年开发经验,在Java、即时通讯、NoSQL、BPM、大数据等领域较有经验。
    目前维护的开源产品:https://gitee.com/475660
  • 相关阅读:
    站立会议报告(7)
    团队博客(13)
    团队博客(12)
    意见评论
    团队博客(11)
    团队博客(10)
    团队博客(9)
    团队博客(8)
    站立会议报告(6)
    Java Callable
  • 原文地址:https://www.cnblogs.com/starcrm/p/1362737.html
Copyright © 2011-2022 走看看