For Ref parameter you must have to assign the variable to some value;
public void Add(out int a, ref int b)
{
a = 1 + 2;
b = 3 + 4;
}
int a;
int b=0; //Ref Must Be Assigned
Add(out a, ref b);
Tuesday, October 13, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment