The ref keyword in C# with Reference and Value types