datatable 添加列之前判断是否存在该列时间:2022-05-13 15:17:04 if (!dt.Columns.Contains("BDate")) { DataColumn dc1 = new DataColumn("BDate", typeof(DateTime)); dt.Columns.Add(dc1); }