title: How do I find the mode of a list<double>?
body: <p>I have a list:</p>
  
  <pre><code>List&lt;double&gt; final=new List&lt;double&gt;();
  final.Add(1);
  final.Add(2);
  final.Add(3);
  </code></pre>
  
  <p>What sort of method could I use to find the mode of this list? Also, if there are two modes, the function would return the smaller of the two.</p>