// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#using <mscorlib.dll>

using namespace System;

void f1(String^ s)
{
   s = "f1";
}

void f2(String^ %s)
{
   s = "f2";
}

int main(array<String^> ^args)
{
    String^ s = "ABC";
    Console::WriteLine(s);
    f1(s);
    Console::WriteLine(s);
    f2(s);
    Console::WriteLine(s);
    return 0;
}
