title: How to declare variables and methods globally i.e. outside a class?
body: <p>I call the string in appsettings.json file using these 2 lines:</p>
  <pre><code>            var config =  AppSettings.InitConfiguration();
              var name = config[&quot;SomeProperties:Name&quot;];
  </code></pre>
  <p>Ideally I would like to make the var config a global variable in each of my class files but haven't got a clue.  I just want to use one line so i can call whatever setting I want for simplicity, any help?</p>