using System;
class PruebaSwap
{
static void Swap(ref string a, ref string b)
{
string temp = a;
a = b;
b = temp;
}
static void Main()
{
string x = "Juan";
string y = "Oliva";
Swap(ref x, ref y);
Console.WriteLine(x); // Oliva
Console.WriteLine(y); // Juan
}
}
dXNpbmcgU3lzdGVtOwoKY2xhc3MgUHJ1ZWJhU3dhcAp7CiAgICBzdGF0aWMgdm9pZCBTd2FwKHJlZiBzdHJpbmcgYSwgcmVmIHN0cmluZyBiKQogICAgewogICAgICAgIHN0cmluZyB0ZW1wID0gYTsKICAgICAgICBhID0gYjsKICAgICAgICBiID0gdGVtcDsKICAgIH0KCiAgICBzdGF0aWMgdm9pZCBNYWluKCkKICAgIHsKICAgICAgICBzdHJpbmcgeCA9ICJKdWFuIjsKICAgICAgICBzdHJpbmcgeSA9ICJPbGl2YSI7CiAgICAgICAgU3dhcChyZWYgeCwgcmVmIHkpOwogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKHgpOyAgIC8vIE9saXZhCiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoeSk7ICAgLy8gSnVhbgogICAgfQp9