class Program
{
static byte[] array;
static void func(ref byte b)
{
System.Console.WriteLine(array[2]);
b = 5;
System.Console.WriteLine(array[2]);
}
public static void Main()
{
array = new byte[16];
func(ref array[2]);
}
}
Y2xhc3MgUHJvZ3JhbQp7CiAgICBzdGF0aWMgYnl0ZVtdIGFycmF5OwogICAgc3RhdGljIHZvaWQgZnVuYyhyZWYgYnl0ZSBiKQogICAgewogICAgICAgIFN5c3RlbS5Db25zb2xlLldyaXRlTGluZShhcnJheVsyXSk7CiAgICAgICAgYiA9IDU7CiAgICAgICAgU3lzdGVtLkNvbnNvbGUuV3JpdGVMaW5lKGFycmF5WzJdKTsKICAgIH0KCiAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCiAgICB7CiAgICAgICAgYXJyYXkgPSBuZXcgYnl0ZVsxNl07CiAgICAgICAgZnVuYyhyZWYgYXJyYXlbMl0pOwogICAgfQp9Cgo=