Question Reference to an integer

Pirahnaplant

Well-known member
Joined
Mar 29, 2009
Messages
75
Programming Experience
3-5
Is it possible to make a variable hold a reference to an integer instead of copying its value when using integerVariable = integerValue ?
 
perhaps by making a class to encapsulate it, but then it would be the reference to the class object rather than the integer itself.
 
Value Type
VB.NET:
Dim int As Integer = 6
Reference Type
VB.NET:
Dim obj As Object = 6
 
Back
Top