© { JSL }
67
Parameter Notes
·
sd
class
Notes
{
... Good(
int
copy) ...
... Error(
ref int
alias) ...
... Error(
out int
alias) ...
...
Error(
float
/*noname*/
) ...
...
Error(
double
d = 0.0) ...
... Error(
const ref
Wibble w) ...
... Error(
void
) ...
}
struct
BadPair
{
ref int
x;
out int
y;
}
ref
and
out
cannot
be used as field
modifiers (or return
type modifiers)
ref, out
modifier
is part of signature
must name parameter
no default arguments
(overload instead)
no readonly parameters
no
void
parameter
can't overload based
soley on ref out