Contains doesn't work as I expected
<p>I'm wondering why I cannot compare these objects:</p>

<pre><code>public class myCustomClass
{
    public string Value { get; set; }
    public List&lt;string&gt; Keys { get; set; }
}
</code></pre>

<p>I receive a <code>List&lt;myCustomClass&gt;</code></p>

<p>I created a <code>Comparer</code> and looks like</p>

<pre><code>var comparer = new myCustomClass{
    Value = "somethingToCompare"
};
</code></pre>

<p>And when I do <code>MyList.Contains(comparer)</code> is <code>false</code>.</p>

<p>EDIT: <code>MyList</code> values have "somethingToCompare", but my comparer doesn't have keys so it's always false.</p>

<p>My question is, can I only compare if my value exists inside my List, without comparing my Keys?</p>