I have a function within a class which I would like to return the class itself however "return this" appears to be invalid in VB.
I am using ASP.NET v1.1 if that makes a difference?
Sample (extremely simplified) code is as follows:
Public Class Cart
Private sItems As String
Public Function addItem(ByVal itemName As String) As Cart
sItems = sItems + "|" + itemName + "|"
Return THIS
End Function
End Class
Any help would be greatly appreciated. Thanks very much.