Comrades, there is a DataTable in it there is an Article column.
How to write to the array (or where it would be better) the number of records encountered.
For example, there are 5 entries
- 228
- 105
- 228
- 100
- 105
I need him to record what
228 - 2 times
105 - 2
100 - 1
How much better to write?
I know how to write to a variable for a specific criterion, but it is necessary that he write out what has happened and how much.
FaceOutCount = dt.AsEnumerable().Where(x => x["ФИО подозреваемого"].ToString() == "н/л").ToList().Count; I will then need to rewrite it in Word (but this is me)
I hope lucidly wrote, in words it sounds easier))
Help)