© { JSL }
63
Copy Parameters
·
a plain parameter is a
copy
of the argument
w
no frills bitwise copy
w
the argument must be definitely assigned
w
argument can be an "rvalue"
static void
Method(Suit parameter)
{
parameter = Suit.Hearts;
}
static void
Main()
{
Suit arg = Suit.Clubs;
Console.Write(arg);
Method(arg);
Console.Write(arg);
}
Clubs
Clubs