-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Read Operations
Find distinct records with the help of multiple keys within a collection in C#. Here, multiple keys are present in an string array.
For example:
If we have a collection,
collection = { [
{firstName: "John", lastName: "Cena", age: 40},{firstName: "Prashant", lastName: "Gupta", age: 45}] }
and we have an array:
multiplekeys = {"lastName","age"}
How can we find the distinct records in the collection using multiple keys?