how to remove the duplicate values from string list in c#
<p>i used this code:</p>

<pre><code>List&lt;string&gt; lists=new List&lt;string&gt;("apple","orange","banana","apple","mang0","orange");
string names;
names=lists.Distinct()
</code></pre>

<p>is that correct?</p>
