J
Jon Skeet [C# MVP]
Cor Ligthert said:You did change it so much that it almost looks like this sample you showed
me
("out" and "ref" parameters are very similar, I hope you'll agree)
What is wrong with that (however I would not use it only to move a value)
Nothing. You've snipped the piece of code which is problematic:
Dim data As String = "moo"
Dim f as New Form
bind(f.Text, data, False)
The problem is passing f.Text by reference, as it's a property, not a
variable. It causes the VB.NET compiler to do nasty stuff to add a
temporary local variable, fetch f.Text into it, pass the local variable
by reference, and then set f.Text to the value of the temporary local
variable afterwards. Icky.