From a collection of DataRows a Datarow row
is selected in each instance of for each. The row["Mins"]
representing Mins
column in that row which is get converted into Decimal
. Then compared with DbNull.Value
for null check. If the value is null
then 0.0 is taken else the original value from expression Convert.ToDecimal(row["Mins"])
.
Same logic is performing for Convert.ToDecimal(row["MIN"]
& the result of both is get subtracted & stored into row[“Diff_Min”].
Same logic for the statement 2 & 3.
Hope this will clear your doubt.
1
solved I am not able to understand the exact meaning of this code [closed]