I'm learning about .csv file handling in C#.
Suppose I have a .csv file that contains the following data.
industryName,value,currency
Engineering,1000,USD
Agriculture,2000,EUR
Engineering,3000,LKR
Agriculture,4000,USD
I want to get the summation of the column named value
if the currency is USD only.
For example, summation in this dataset will be 5000
(1000+4000)
It is highly appreciated if someone can give a code snippet with the answer.