title: Get variable from base of view model in c#
body: <p>I'm trying to grab a variable that is down the tree of the main view model.</p>
  
  <pre><code>public ActionResult Index(){
      MainViewModel vm = MainViewModel();
      string variable = {vm}SubViewModel.link;
      try{
         // Content here
      }
      catch{
      }
      return View(vm);
  }
  </code></pre>
  
  <p>When I hover over vm, it has a "base" at the top (with the rest of the variables of the view model underneath) which leads me to the partial that holds the variable I need. How do I grab that variable? ( trying to get link from SubViewModel)</p>