ByVal is acting like ByRef For collection) in vb.net - why ?
The text of this thread is not in this database — only its details are. Read it on the old site: ByVal is acting like ByRef For collection) in vb.net - why ?
The text of this thread is not in this database — only its details are. Read it on the old site: ByVal is acting like ByRef For collection) in vb.net - why ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manish PandeyPosted Apr 11, 2016, 5:11 AM
a basically a class means reference type and when we
pass reference type as a parameter then copy of reference
gets passed to the method parameter. Because of which
we get two variables pointing to the same object in
memory. Any change to that variable in called method get
reflected in calling method.
Answered By - Manoj Kulkarni