C
CSharper
I have a class like the following
Person
- Name
- Age
- Sex
from there I create an array of the same class. Now I need to find out
all the persons with unique name in it along with age and sex,
duplicate name needs to be dropped. Well not a good example want to
learn how the distinct work
Person[] uniqueList =
GetAllPersonNames().case<Person>().ToArray<Person>().Distinct()
it didn't work. GetAppPersonNames return IEnumerable of Person.
Thanks.
Person
- Name
- Age
- Sex
from there I create an array of the same class. Now I need to find out
all the persons with unique name in it along with age and sex,
duplicate name needs to be dropped. Well not a good example want to
learn how the distinct work
Person[] uniqueList =
GetAllPersonNames().case<Person>().ToArray<Person>().Distinct()
it didn't work. GetAppPersonNames return IEnumerable of Person.
Thanks.