title: Get list of params from SqlParameterCollection Parameters
body: <p>How to get list of parameters passed to <code>SqlParameterCollection Parameters</code>? Is it possible to enumerate somehow them?</p>
  
  <pre><code>command.Connection = defaultConnection; 
  command.CommandType = CommandType.Text;
  command.CommandText =
      "INSERT into logs (ClientID, Msg, LogLevel, Date) VALUES (@ClientID, @Msg, @LogLevel, getdate())";
  command.Parameters.AddWithValue("@ClientID", id);
  command.Parameters.AddWithValue("@Msg", info);
  command.Parameters.AddWithValue("@LogLevel", level);
  </code></pre>
  
  <p>Now I would like to get parameters as text from <code>command.Parameters</code> </p>
  
  <p>UPD:</p>
  
  <pre><code>string s="";
  
      foreach (var param in command.Parameters)
          {
          s=s+ param ;  //how to get parameter with it's name in string type ?
          }                          
  </code></pre>