bri189a Posted September 27, 2004 Posted September 27, 2004 Is there a differance between VB and C# parameter passing that I need to be aware of (as far as default type (ByVal, or referance), as far as doing specifics: ref/out/normal compared to VB's equivelants? Quote
*Gurus* divil Posted September 28, 2004 *Gurus* Posted September 28, 2004 Not really, passing by value is the default for both. C# is a little more strict when it comes to reference parameters, though - it separates them in to "ref" and "out" parameters. Ref is standard passing a variable by reference, but out forces the procedure to explicitly assign to the parameter before leaving. Also, C# makes you specify "ref" and "out" when actually calling the method, too. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.