int x = 3;
var xRef = __makeref(x);
Console.WriteLine(__reftype(xRef)); // Prints "System.Int32"
Console.WriteLine(__refvalue(xRef, int)); // Prints "3"
 
__refvalue(xRef, int) = 10;
Console.WriteLine(__refvalue(xRef, int)); // Prints "10"