What generic/dynamic collection to use? (design issue)
<p>We are creating a simple but improved billing solution. Since we have to use different providers based on a number of reasons that is of no importance right now I was thinking of what would be the best way to handle this. The different providers might have a key and a value. I can store the value as object but then I need to store the type as well. I was thinking of creating a hmm let's call it Tuple class:</p>

<pre><code>public class Tuple&lt;TType, TValue&gt;
{
    public TType Type { get; set; }
    public TValue Value { get; set; }
}
</code></pre>

<p>Now I can use this for storing the type reference but it I have a feeling something is missing. To use this with a lookup collection like dictionary I could:</p>

<pre><code>public IDictionary&lt;string, Tuple&lt;Type, object&gt;&gt; TechnicalDetails = 
  new Dictionary&lt;string, Tuple&lt;Type, object&gt;&gt;
</code></pre>

<p>Suggestions for improvement? There has got to be a better way? :)</p>
