I have a class with constructor and some properties set to it. I need to find most commonly repeating property and count of it.
class Car
{
public string Make { get; set; }
public Car(string make)
{
this.Make = make;
}
}
I've created a list called "cars" with 7 members and set these car makes: Audi, Volvo, Volvo, BMW, Audi, Audi, Audi (most common being Audi).
How can I find and output the most common "Make" and count of it?