C# Linq unique not work on lists : <p>I am trying with the following code to check if a list contains duplicated data:</p>

<pre><code>    internal class Program
{
    private static void Main(string[] args)
    {
        var list = new List&lt;Obj&gt;() { new Obj() { id = "1", name = "1" }, new Obj() { id = "1", name = "1" } };
        Console.WriteLine(AllItemsAreUnique(list));
    }

    public static bool AllItemsAreUnique&lt;T&gt;(IEnumerable&lt;T&gt; items)
    {
        return items.Distinct().Count() == items.Count();
    }
}

internal class Obj
{
    public string id;
    public string name;
}
</code></pre>

<p>And the result is true! Why?</p>
