title: Linq select statement prints project.class name as result in output console
body: <p>I created a class called employees, created three employees. I then created a <code>List&lt;&gt;</code> to store the employee objects</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace AutomationTest
  {
      public class Employees
      {
          public String ID { get; set; }
          public String Name { get; set; }
          public List&lt;int&gt; Salary { get; set; }
  
          public static List&lt;Employees&gt; GetEmployeesSalaries()
          {
              List&lt;Employees&gt; employees = new List&lt;Employees&gt;();
              List&lt;int&gt; johnsalary = new List&lt;int&gt; { 1100,1200,1300 };
              List&lt;int&gt; jamessalary = new List&lt;int&gt; { 1400, 1450, 1500 };
              List&lt;int&gt; timsalary = new List&lt;int&gt; { 1600, 1700, 17500 };
  
              employees.Add(new Employees { ID = "N001", Name = "John", Salary = johnsalary  });
              employees.Add(new Employees { ID = "N002", Name = "James", Salary = jamessalary });    
              employees.Add(new Employees { ID = "N003", Name = "Tim", Salary = timsalary });
  
              return employees;
          }       
      }  
  }
  </code></pre>
  
  <p>I then created the query statement but got the project.class name on the console output as Automationtest.Employee</p>
  
  <pre><code>using System.Text;
  using System.Threading.Tasks;    
  namespace AutomationTest
  {
      class Program 
      {
          static void Main(string[] args)
          {
              IEnumerable&lt;Employees&gt; querysalary = (Employees.GetEmployeesSalaries().Where(i =&gt; i.Name.Contains("m"))).ToList&lt;Employees&gt;();
  
              //IEnumerable&lt;Employees&gt; querysalary = from empl in Employees.GetEmployeesSalaries()
              // where empl.Name.Contains("a") select empl;
  
              //var querysalary = (from k in Employees.GetEmployeesSalaries() select k).ToString();
  
              foreach (var ss in querysalary)
              {
                  Console.WriteLine(ss);
              }
  
              Console.ReadLine();
          }
      }
  }
  </code></pre>