title: SqlCommand (CommandType Text) retrieve param collection
body: <p>Is there a way to get the parameter collection from <code>SqlCommand</code> when <strong>CommandType = Text</strong>?</p>
  
  <p>For instance:</p>
  
  <pre><code>string MyDinamicSql = @"SELECT * FROM USERS where USERName = @Param1 and USERLogin=@Param2";
  SqlCommand comand = connection.CreateCommand();
  comand.CommandText = MyDinamicSql;
  comand.CommandType = System.Data.CommandType.Text;
  
  //Do something for fill comand.Parameters from MyDinamicSql...
  </code></pre>
  
  <p>I want a way to get a parameter collection with [@Param1,@Param2]... I don't know the sql queries (they are dynamic) and I want to get the parameters for my application to create them as input controls.</p>
  
  <p>I can't do this with <code>SqlCommandBuilder.DeriveParameters(command)</code>, because it only works with stored procedures.</p>
  
  <p>Thank you!</p>