Answers for "how to export xml in linq c#"

C#
0

how to export xml in linq c#

var xmlDoc = new XElement("TestPoints",
                from test in g.dc.users
                select
                new XElement("TestPoint",
                    new XElement("Id", test.id_user),
                    new XElement("Value", test.username)
                    )
                );
            xmlDoc.Save("test.xml");
Posted by: Guest on May-05-2022

C# Answers by Framework

Browse Popular Code Answers by Language