title: LinQ : when query will be executed
body: <p>As per this  link :http://msdn.microsoft.com/en-us/library/bb397906.aspx</p>
  
  <pre><code>namespace Linq
  {
      class IntroToLINQ
      {
          static void Main()
          {
              // The Three Parts of a LINQ Query: 
              //  1. Data source. 
              int[] numbers = new int[7] { 0, 1, 2, 3, 4, 5, 6 };
  
              // 2. Query creation. 
              // numQuery is an IEnumerable&lt;int&gt; 
              var numQuery =
                  from num in numbers
                  where (num % 2) == 0
                  select num;
  
              // 3. Query execution. 
              foreach (int num in numQuery)
              {
                  Console.Write("{0,1} ", num);
              }
          }
      }
  
  }
  </code></pre>
  
  <p>It states that query will not be exeucted , until data is iterated through foreach. But when I debugged , the data memeber of var(resultviews) contains the result values before the execution of foreach. Why this is happening?</p>