title: Share variable between multiple classes
body: <p>If i have 3 classes, lets say: Mainclass, ChildClass, OtherChild.</p>
  
  <pre><code>MainClass()
  {
       ChildClass cc = new ChildClass();
       OtherChild oc = new OtherChild();
  
       //Set the name property of childclass
       string childName = "some name";
  }
  
  ChildClass()
  {
      public string name {get; set;}
  }
  
  OtherChild()
  {
       //Here i want to get the name property from ChildClass()
       //Doing this will make a new instance of ChildClass,  which will not have the name property set.
       ChildClass cc = new ChildClass(); 
  
  }
  </code></pre>
  
  <p>What is the solution for this ?</p>