title: how to remove an element from a list of user define class?
body: <p>I am fairly new to c#, please be gentle to me, I have been searching through the net for a few hours without success, I want to remove an element from my user defined class. How do I do it?</p>
  
  <p>below is the snippet of the code. </p>
  
  <pre><code>public class Level2
  {
      public double price { get; set; }
      public long volume { get; set; }
  
      public Level2(double price, long volume)
      {
          this.price = price;
          this.volume = volume;
      }
  }
  
  static void Main()
  {
  
      List&lt;Level2&gt; bid = new List&lt;Level2&gt;();
  
      ask.Add(new Level2(200, 500));
      ask.Add(new Level2(300, 400));
      ask.Add(new Level2(300, 600));
  
  
      // how to remove this element ???
      ask.Remove(300, 400);       //doesn't work
  
   }
  </code></pre>
  
  <p>I think I need to implement IEnumerable of some sort, but how does the syntax look like? can someone please give me a working snippet? thanks a lot </p>