title: Call a list of varying types using a string as the variable name
body: <p>I was wondering if there was a way in C# to pass a function a string for a parameter and it use that string to call a list that has the name the string said and use it in the function</p>
  
  <p>For instance:</p>
  
  <pre><code>List&lt;int&gt; BurgerPrices = new List&lt;int&gt;{1, 2, 4};
  
  public int SetupPage(string pageName, string listName) {
      return listName[2]; 
      // something like this where I can put the string in and then use it to call a list
  }
  
  BurgerPrice = SetupPage("Sub Categories", "BurgerPrices");
  </code></pre>
  
  <p>In other words, call a List by its variable name using a string and then be able to index/modify it</p>