I don't know much about VB.NET, but I wouldn't be surprised if there's no equivalent. It turns out that the underlying runtime doesn't actually support out params. Both out and ref are implemented the same way: you pass a pointer to a thing instead of the thing. It's just that using out turns on some additional compiler checking to make sure you don't use it before you initialize it inside the called method.
> -----Original Message----- > From: Shawn A. Van Ness [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 18, 2002 12:53 PM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] VB's ByVal/ByRef vs. C#'s ref/out > > > Is it just me or do these two pairs not match up very nicely? > > Is there really no equivalent of C#'s "out" keyword, in VB.NET? > > Are methods with "out" parameters non-CLSCompliant? > > (I searched the archives, and found some early confusion from > Ted Pattison and Don Box on this matter, but no clear resolution.) > > Cheers, > -Shawn > http://www.arithex.com/ > > You can read messages from the Advanced DOTNET archive, > unsubscribe from Advanced DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.