Linq query to find unique and duplicate rows and assign values
From a datatable I want to find duplicate rows for a particular column and for this rows I need to increment value as 1,2,3, etc . For other rows value should be 1. How to do in linq csharp..Col1 col2
And 1
See 1
Things 1
She 1
And 2
Hi 2
Vil 2