title: Index was outside the bounds of the array error
body: <p>I'm currently making proxy checker with my input Textbox. I'm getting C# error:Index was outside the bounds of the array from proxy(123.34.123.45:8080).</p>
  
  <p><strong>My codes will be...</strong></p>
  
  <pre><code>string occoultProxy = "123.34.123.45:8080";
  WebProxy proxy = new WebProxy(occoultProxy.Split(':')[0], Convert.ToInt32(occoultProxy.Split(':')[1])); //Error at this line
  // WebProxy(string Host, int Port)
  </code></pre>
  
  <hr>
  
  <p><em>UPDATED</em></p>
  
  <p>I had tried another codes, but still have error code. Please help.</p>
  
  <pre><code> string[] address = occoultProxy.Split(new[] { ':' });
   MessageBox.Show(address[0].ToString());
   MessageBox.Show(address[1].ToString());
   WebProxy proxyHTTP = new WebProxy(address[0], Convert.ToInt32(address[1]));
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>123.34.345.23 &lt;!-- Some Proxy here, seems good here --&gt;
  IndexOutOfRangeException was unhandled( Index was outside the bounds of the array.)
  </code></pre>