// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Data; namespace E { public class Program { public static void Main(string[] args) { DataTable dt = new DataTable("T"); dt.Columns.Add(new DataColumn("C1", typeof(int))); dt.Columns.Add(new DataColumn("C2", typeof(string))); dt.WriteXmlSchema(Console.Out); dt.Columns["C1"].Caption = "This is C1"; dt.Columns["C2"].Caption = "This is C2"; dt.WriteXmlSchema(Console.Out); } } }