title: Declaring a public array in VB.net
body: <p>I know that to declare a string in VB I would use the line</p>
  
  <pre><code>Dim ExString As String
  </code></pre>
  
  <p>And to declare a global string I'd use</p>
  
  <pre><code>Public Shared Property ExString As String
  </code></pre>
  
  <p>Which I'd access using (assuming it was saved in a class called GlobalVars)</p>
  
  <pre><code>MsgBox(GlobalVars.ExString)
  </code></pre>
  
  <p>I also know that to declare a string array it's</p>
  
  <pre><code>Dim ExString(3) As String
  </code></pre>
  
  <p>However declaring a public array doesn't seem to work the same, the line:</p>
  
  <pre><code>Public Shared Property ExString(3) As String
  </code></pre>
  
  <p>Doesn't seem to work.<br>
  I was wondering how I go about declaring a public array of strings in visual basic?<br>
  I'm using Visual Studio 2010 if that makes a difference.</p>
  
  <p>Thanks in advance </p>