Storage of single/group of integer values
<p>am working on a bit unusual requirement wherein there is an integer parameter x, which can take a single value or a group of values. If the parameter takes a group of values, it is enough for me to store only the maximum and minimum. Usual C# thinking made me to to have four variables namely x, minX, maxX and boolean variable (to know whether the variable takes a single or group of values), I have four such parameters, which results in bloating of class variables (total 16 variables).</p>

<p>Is there any construct in C# which helps me in an efficient storage with the above constraint? I couldnt think beyond nullable values.</p>
