Al Programming
Free source code programming in C#, VB.Net, Java, SQL
Search This Blog
Tuesday, January 6, 2015
IsNumeric equivalent in LINQ example
C#
>
LINQ
>
IsNumeric
IsNumeric equivalent in LINQ example.
double
value;
var
total = (
from
DataRow
dr
in
dataTable.Rows
where
double
.TryParse(dr[
"value"
],
out
value)
select
Convert
.ToDouble(dr[
"value"
])).Sum();
Newer Post
Older Post
Home