JonLittlechild
Programmer
Hi, I'm new to VB.Net after years of VB5/6 development, so please forgive what might be a bit of a stupid question.
We're all familiar with the Property Set functionality in VB6 which works ByReference.
I've just found today that in VB.Net that you cannot pass an object to a property set (obviously using the .Net syntax) ByReference but that it MUST be passed ByValue. This seems like a bit of a backwards step to me.
So my question is, is there some way around this limitation or is there a generally accepted way of reproducing similar functionality to VB6's Propery Set without using properties?
Thanks in advance for your help.
Jon
We're all familiar with the Property Set functionality in VB6 which works ByReference.
I've just found today that in VB.Net that you cannot pass an object to a property set (obviously using the .Net syntax) ByReference but that it MUST be passed ByValue. This seems like a bit of a backwards step to me.
So my question is, is there some way around this limitation or is there a generally accepted way of reproducing similar functionality to VB6's Propery Set without using properties?
Thanks in advance for your help.
Jon