Commit 0033e0f
Missing using for Stream and StreamReader variables (#8559)
* Missing use for Stream and StreamReader variables
The WebClient variable has a using
Using client As New WebClient()
These were missing the using:
Ref data As Stream = client.OpenRead(args(0))
Ref reader As New StreamReader(data)
The order of Close for reader.Close and data.Close was reversed.
* Missed End Using
End Using need for VB.net
* Apply suggestions from code review
Co-authored-by: Bill Wagner <[email protected]>1 parent f3e8e9a commit 0033e0f
File tree
1 file changed
+7
-7
lines changed- snippets/visualbasic/VS_Snippets_Remoting/NCLWebClientUserAgent/VB
1 file changed
+7
-7
lines changedLines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
0 commit comments