title: C# Get accessor is inaccessible
body: <p>I have the following class definition:</p>
  
  <pre><code> public static string SplitString(string someText)
   {
        var queryArray = Regex.Split(someText, "\\s+(?=\\w+)");
        foreach (var i in Enumerable.Range(0, queryArray.Count - 1)) {
             // Some code
        }
   }
  </code></pre>
  
  <p>The problem is that queryArray.Count is giving me the following error:</p>
  
  <p>The property 'System.Array.Count' cannot be used in this context because the get accessor is inaccessable.</p>
  
  <p>What am i missing here?</p>