Single line "FromValue - ToValue" (Not a Class, not a Dictionary/List/Array). Howto?
<p>How often are you into a fromdate-todate scenario. <br>
Or perhaps a fromValue-toValue.</p>

<p>How do you do those times? <br>
I use one of those commonly,</p>

<p>T = ObjectType (DateTime, int, string..)</p>

<p><code>Dictionary&lt;T,T&gt;</code> (used with .Single())<br></p>

<p><code>T fromDate;</code><br>
<code>T toDate;</code><br></p>

<p><code>T[] comparison;</code><br></p>

<p>Which are directly used or returned by a method.</p>

<p>Very Very seldom i stand create a whole object</p>

<pre><code>public struct T 
{
   T fromDate { get; set;}
   T toDate { get; set;}
}

public Method T(params)
{
   ..some operations..
   return T { fromDate = someBegin, toDate = someEnd };
}
</code></pre>

<p>Everytime time, I want a stright and simple <code>KeyValuePair&lt;T,T&gt; test;</code>. The problem to me, using KeyValuePair, is missleading if used this way?? If I see a KeyValuePair in someones code, i look at the variable like "index 10, category books".</p>

<p>What are your suggestion?</p>
