Sunday, May 1, 2011

Passing ByVal acts like ByRef?

Did u know....
That regardless if you specify ByVal in the method that you are passing in a parameter, if the parameter is an object reference, it will still be passed in as a ByRef.

Duhhh... does many say, but if you are coding a lot, this might leave your brain to malfunction when trying to debug...

Yes, you should always look at the parameters being passed from the caller and not just look at the called method.

Just see this as a pointer :)