i'm new to C#...
How can I create an out or ref param for a method without having to declare
it in the caling code ? Like the DataAdapter can do on its Fill method.
DataTable dt = new DataTable();
SqlDataAdapter. Fill(dt);
'dt' is passed by ref, but it is not required to pass it as such:
SqlDataAdapter. Fill(ref dt);
Thanks,
Bill
How can I create an out or ref param for a method without having to declare
it in the caling code ? Like the DataAdapter can do on its Fill method.
DataTable dt = new DataTable();
SqlDataAdapter. Fill(dt);
'dt' is passed by ref, but it is not required to pass it as such:
SqlDataAdapter. Fill(ref dt);
Thanks,
Bill
Comment