title: C# Set from another class and Get from another class
body: <p>This's Class A</p>
  
  <pre><code>Class A
  {    
  public string uname { get; set; }
  public string fname { get; set; }
  }
  </code></pre>
  
  <p>I set values by Class B</p>
  
  <pre><code>Class B
  {
  private void Main(){
  
  A aGetSet = new A();   
  
  aGetSet.uname = "James";    
  aGetSet.fname = "Blunt"; 
  }
  
  }
  </code></pre>
  
  <p><strong>But when I get values in Class C, it's always return null</strong></p>
  
  <pre><code>Class C
  {
     private void Main()   {
  
     A aGetSet = new A(); 
  
     string username = aGetSet.uname;
     string fistname = aGetSet.fname;
  }
  }
  </code></pre>
  
  <p>Does anyone has solution for this problem?</p>