title: How to check if an ArrayList of objects contains my object?
body: <p>I have an <code>ArrayList</code> of objects. Some of these objects are of this class:</p>
  
  <pre><code>public class NewCompactSimilar
  {
      public List&lt;int&gt; offsets;
      public List&lt;String&gt; words;
      public int pageID;
  
      public NewCompactSimilar()
      {
          offsets = new List&lt;int&gt;();
          words = new List&lt;string&gt;();          
      }
  }
  </code></pre>
  
  <p>But the list can also contain objects of other classes.</p>
  
  <p>I need to check if my <code>ArrayList</code> contains an object that is identical to my object.</p>
  
  <p>So, how can I do that?</p>