Skip to content

Commit 6a03219

Browse files
ericmuttaRon Petrusha
authored andcommitted
Update example.vb (#1147)
Convert commented-out code from C# to VB syntax. I reported this via issue dotnet/dotnet-api-docs#2944
1 parent 89b09af commit 6a03219

File tree

1 file changed

+3
-3
lines changed
  • snippets/visualbasic/VS_Snippets_CLR_System/system.lazy`1/vb

1 file changed

+3
-3
lines changed

snippets/visualbasic/VS_Snippets_CLR_System/system.lazy`1/vb/example.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Friend Class Program
2222

2323
' The following lines show how to use other constructors to achieve exactly the
2424
' same result as the previous line:
25-
'lazyLargeObject = new Lazy<LargeObject>(InitLargeObject, true);
26-
'lazyLargeObject = new Lazy<LargeObject>(InitLargeObject, _
27-
' LazyThreadSafetyMode.ExecutionAndPublication);
25+
'lazyLargeObject = New Lazy(Of LargeObject)(AddressOf InitLargeObject, True)
26+
'lazyLargeObject = New Lazy(Of LargeObject)(AddressOf InitLargeObject, _
27+
' LazyThreadSafetyMode.ExecutionAndPublication)
2828
'</SnippetNewLazy>
2929

3030

0 commit comments

Comments
 (0)