Skip to content

Commit 3f84498

Browse files
authored
Add missing THEN keyword to if-statement. (dotnet#4876)
The example for `GetDirectoryName()` had a method with an if-statement that was missing the `Then` keyword making it invalid syntax (the Visual Studio editor usually fixes this automatically but for some reason it was missed here).
1 parent 79c573c commit 3f84498

File tree

1 file changed

+2
-2
lines changed
  • samples/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.Path Members/VB

1 file changed

+2
-2
lines changed

samples/snippets/visualbasic/VS_Snippets_CLR_System/system.IO.Path Members/VB/pathmembers.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Public Class PathSnippets
5555
Console.WriteLine("GetDirectoryName('{0}') returns '{1}'", _
5656
filepath, directoryName)
5757
filepath = directoryName
58-
If i = 1
58+
If i = 1 Then
5959
filepath = directoryName + "\" ' this will preserve the previous path
6060
End If
6161
i = i + 1
@@ -333,4 +333,4 @@ Public Class PathSnippets
333333
pathnameSnippets.HasExtension()
334334
pathnameSnippets.IsPathRooted()
335335
End Sub
336-
End Class
336+
End Class

0 commit comments

Comments
 (0)