title: Why and when there are things I can not do in CLASS SCOPE in C#?
body: <p>well... I'm confused about what can I do and what I can't do in CLASS SCOPE.</p>
  
  <p>For example</p>
  
  <p>=========================</p>
  
  <pre><code>class myclass
  {
  
  
    int myint = 0;
  
    myint = 5; *// this doesnt work. Intellisense doesn't letme work with myint... why?*
  
    void method()
    {
      myint = 5; *//this works. but why inside a method?*
    } 
  }
  </code></pre>
  
  <p>==================================</p>
  
  <pre><code>class class1
  { 
   public int myint;
  }
  
  class class2
  {
    class1 Z = new class1();
  
    Z.myint = 5; *//this doesnt work. like Z doesnt exists for intellisense*
  
   void method()
    {
      Z.myint = 5; *//this Works, but why inside a method?*
    }
  }
  </code></pre>
  
  <hr>
  
  <p>Thats I make so many mistakes, I dont understand what works on class scope and what doesnt work.</p>
  
  <p>I know that there are local varaibles and its life cycle. But I dont understand the so well the idea.</p>