decimal decAmount = MyDataTable.AsEnumerable().Sum(c => Convert.ToDecimal(c.Field<string>("Amount")));

Last modified: July 15, 2019

Author

Comments

Write a Reply or Comment