Introduction
To resume what's the point, the solution should solve a simple problem in the most "elegant" way by using LINQ.
Check the orginial tip to get the point of this alternative
Using the code
Well, reading the following code should be straightforward :
List<double> myList = new List<double>();
myList.Add(1.0);
myList.Add(2.0);
myList.Add(1.0);
bool differs = (myList.Distinct().Count() > 1);
Console.WriteLine( "All numbers are " + (differs? "not": "") + " the same.");
IT consultant and Project Manager in Paris, specialized in software engineering/design.
He spends most of his time in meetings
He would love to have more time to develop all those ideas/concepts he has in mind.