C# how to treat ints like they are array?
<p>Let's say I have 5 int's <strong>which are not an array!</strong> and I want to change them all in 1 loop. Is there any way to make an array which will get the values of those 5 numbers and could change them directly?</p>

<p>Something like:</p>

<pre><code>int a = 10;
int b = 20;

int[] rihanna = // .... ? 

for(int a=0; a&lt;rihanna.length;a++)
    rihanna[a]++;

Console.WriteLine("{0} {1} ",a,b) // what I want to see here is 11 and 21
</code></pre>
