title: How to get a value inside parent class from child class (in nested classes)?
body: <p>I have Class1 and class2 which is inside class1, VB.NET code:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Public Class class1
      Public varisbleX As Integer = 1
      Public Class class2
          Public Sub New()
              'Here GET the value of VariableX
          End Sub
      End Class
  
      Public Sub New()
          Dim cls2 As New class2
      End Sub
  End Class
  </code></pre>
  
  <p>I want to access varisbleX  from class2, code in VB.net or C# is appreciated, Thanks.</p>