title: How to access SqlParameter array with name
body: <p>I am creating <code>SqlParameter</code> Array and passing it to <code>StoredProcedure</code>. The output value will be set in StoredProcedures. How to access that value by parameter name?</p>
  
  <pre><code> SqlParameter[] parameters = { new SqlParameter {ParameterName = "@test", Value = "test", Direction = ParameterDirection.Output }}; 
  </code></pre>
  
  <p>This works</p>
  
  <pre><code>parameters[0].Value
  </code></pre>
  
  <p>How to make this to work?</p>
  
  <pre><code>parameters["@test"].Value
  </code></pre>