title: Dictionary using an object as a key C#
body: <pre><code>private readonly Dictionary&lt;ExcelCellIdentifier, int&gt; allInfoByIdentifier = new Dictionary&lt;ExcelCellIdentifier, int&gt;();
  
  public class ExcelCellIdentifier
  {
      public ExcelCellIdentifier(string ticker, string identifier)
      {
          Ticker = ticker;
          Identifier = identifier;
      }
      public string Ticker { get; set; }
      public string Identifier { get; set; }
  }
  </code></pre>
  
  <p>Then at some point I would like to search for the int by creating an ExcelCellIdentifier object with the same ticker and identifier, like:</p>
  
  <pre><code>ExcelCellIdentifier ex = new ExcelCellIdentifier("Ticker1", "Identifier1");
  int a = allInfoByIdentifier[ex];
  //a is a value stored before hand
  </code></pre>
  
  <p>Is this possible?</p>