Is it posible to add properties to an object in c#
<p>I have the following function</p>

<pre><code>public static void UpdateWithStoredProcedure&lt;T&gt;(string storedProcedure, T entity)
{
    var command = PrepareCommand(CommandType.StoredProcedure);
    command.CommandText = storedProcedure;
    AddObjectPropertiesAsParametersToCommand(command, entity);

    command.ExecuteNonQuery();
}
</code></pre>

<p>I call it this way</p>

<pre><code>UpdateWithStoredProcedure(DeleteDocumentStyleProcedure, new KeyValuePair&lt;string, object&gt;("Id", DocumentStyle.DocumentId));
</code></pre>

<p>Is there a way to pass two parameters. I mean, two KeyValuePair instances? I tried passing a list and dictionary, but the code for AddObjectPropertiesAsParametersToCommand also maps the internal properties of this classes like Count.</p>
