How to find unique values in jagged array
- by David Liddle
I would like to know how I can count the number of unique values in a jagged array.
My domain object contains a string property that has space delimitered values.
class MyObject
{
string MyProperty; //e.g = "v1 v2 v3"
}
Given a list of MyObject's how can I determine the number of unique values?
The following linq code returns an array of…