Nagappan
public text v1 · immutable static void Main(string[] args)
{
try
{
DataTable table = new DataTable();
table.Columns.Add("Col_0.Value", Type.GetType("System.Int32"));
table.Columns.Add("Col_1", Type.GetType("System.Int32"));
table.Columns.Add("Result", Type.GetType("System.Int32"), "IIF(Col_0.Value > 10, Col_1 + 5, 0)");
DataRow row = table.NewRow();
row["Col_0.Value"] = 20;
row["Col_1"] = 10;
table.Rows.Add(row);
Console.ReadLine();
}
catch (Exception ex)
{
throw ex;
}
}