سلام بر تمامی برنامه نویسان عزیز 😉 در این مطلب آموزش ویرایش DataTable و خروجی نهایی Xml در #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
کد ویرایش DataTable و خروجی نهایی Xml در #C :
using System;
using System.Data;
using System.IO;
using System.Collections.Generic;
using System.Text;
class Program
{
static DataTable dt;
static void Main(string[] args)
{
dt = new DataTable("Employees");
dt.ReadXml("Employees.xml");
Console.WriteLine("{0} Employees Found", dt.Rows.Count);
foreach (DataRow row in dt.Rows)
{
using System.Data;
using System.IO;
using System.Collections.Generic;
using System.Text;
class Program
{
static DataTable dt;
static void Main(string[] args)
{
dt = new DataTable("Employees");
dt.ReadXml("Employees.xml");
Console.WriteLine("{0} Employees Found", dt.Rows.Count);
foreach (DataRow row in dt.Rows)
{