METHOD
DistinctBy
Eliminates duplicates according to selected keys; result order is not guaranteed.
Formal Syntax & Structure
csharp syntaxcsharp
rows.DistinctBy(r => r.Zone)Working Example
Example Snippetcsharp
// Documentary fragment; supply surrounding declarations as needed.rows.DistinctBy(r => r.Zone)