How does the ref keyword work (in terms of memory)
<p>C# has a <a href="https://msdn.microsoft.com/en-us/library/14akc2c7.aspx">ref</a> keyword. Using ref you can pass an int to a method by reference. What goes on the stack frame when you call a method that accepts an int by reference? </p>

<pre><code>public void SampleMethod(ref int i) { }
</code></pre>