title: Other method can't see in static method
body: <p>I'm trying to use LINQ to Colletion but the problem is the method <code>ShowLINQ()</code> can't see in method <code>Main()</code>.</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          ShowLINQ();//Error line
      }
  
      public void ShowLINQ()
      {
          List&lt;Element&gt; elements = BuildList();
          var query = from d in elements
                      where d.AtomicNumber &lt; 22
                      orderby d.Name
                      select d;
  
          foreach (Element d in query)
          {
              Console.WriteLine(d.Name + " " + d.AtomicNumber);
          }
      }
      Snippet...
  }
  </code></pre>