Selecting rows with distinct column values using LINQ?

If you are only retrieving the string value of that column, you can avoid writing an equality comparer by selecting a string (instead of an object containing a string property).

You have to use the Distinct method on the sequence, and you will need to provide a custom implementation of IEqualityComparer, because of this you will need an explicit class for the object you are creating.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions