[2088]Incorrect VB Code Analysis???
In the following code R# marks the variable "templateName" with the message "Value assigned is not used in any execution path":
Private Sub ReadFromFile()
Dim templateName As String
...
templateName = dlgOpen.FileName
Using reader As New StreamReader(templateName)
...
End Using
End Sub
but the value is used to initialize the StreamReader. Why does R# show the message? Is this a bug or do i misinterpret the code?
Regards
Klaus
Please sign in to leave a comment.