title: CS1936 C# Could not find an implementation of the query pattern for source type 'Student'. 'Where' not found
body: <pre><code> private void DrawChart()
      {
          chart1.Series["Series1"].Points.Clear();
  
  
          var Student_A = from s in Student
                          where ((s.CW1 * 0.3) + (s.CW2 * 0.3) + (s.Exam * 0.4)) &gt;= 70
                          where ((s.CW1 * 0.3) + (s.CW2 * 0.3) + (s.Exam * 0.4)) &lt;= 100
                          select s;
  
          listBox1.Items[0] = "A" + GetStars(Student_A.Tolist().Count);
          chart1.Series["Series1"].Points.Add(1).Label = Student_A.ToList().Count.ToString();
          chart1.Series["Series1"].Points[0].LegendText = "A";
       }
  </code></pre>
  
  <p>CS1936 C# Could not find an implementation of the query pattern for source type 'Student'. 'Where' not found.</p>
  
  <p>Getting this error while trying to add data to a pie chart, I have included <code>using System.Linq;</code> 
  Student is an object
  but there is also an array called StudentList where the students are saved to be shown and stored in a datatable, thanks.</p>