In terms of performance, which is more preferable? Are there other differences between the two modes, other than performance?
Reboot a variable multiple times?
Private Sub Metodo()
Dim MeuTipo As Tipo
For i As Integer = 0 To 100
MeuTipo = New Tipo
MeuTipo.FacaAlgumaCoisa()
Next
End Sub
Or recreate it multiple times?
Private Sub Metodo()
For i As Integer = 0 To 100
Dim MeuTipo As New Tipo
MeuTipo.FacaAlgumaCoisa()
Next
End Sub