title: Find a value in List<>
body: <p>i have a problem when i want to find value in <code>List&lt;&gt;</code> but i am not getting the integer value. Here is my code from that i want to find the value in the List . </p>
  
  <pre><code>private void txtnapsaserach_TextChanged(object sender, EventArgs e)
  {
      try
      {
         //decimal find = decimal.Parse(txtnapsaserach.Text);
  
         if (decimal.Parse(txtnapsaserach.Text) &gt; 0)
         {
         List&lt;NapsaTable&gt; _napsatabs = this.napsaTableBindingSource.List as List&lt;NapsaTable&gt;;
         this.napsaTableBindingSource.DataSource = 
          _napsatabs.Where(p =&gt;p.NapsaRate.Equals(txtnapsaserach.Text)).ToList();
  
         }
      }
      catch (Exception Ex)
      {
      }
  }
  </code></pre>
  
  <p>Is any solution for me . Because this works for me when i try to find string value.</p>
  
  <p>Thanks in advance.</p>