I'm not sure really how to ask that question.. hopefully my explanation will clarify:
I have a public method in a class, say Widget
that takes a list of Widgets and makes changes to them. However, sometimes, the Widget calling the method is in that list. Is there any way to set the current object as one of the items in the list?
For example, here's what I'm trying to do:
Public Class Widget()
'...other stuff'
Public Sub Update()
'do some stuff...'
For Each w As Widget In List(Of Widget)
'update widgets'
If w.ID = ID Then
Me = w '<----- here is what I am trying to do, but it wont let me'
End If
Next
End Sub
End Class