We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b09af commit 6a03219Copy full SHA for 6a03219
snippets/visualbasic/VS_Snippets_CLR_System/system.lazy`1/vb/example.vb
@@ -22,9 +22,9 @@ Friend Class Program
22
23
' The following lines show how to use other constructors to achieve exactly the
24
' same result as the previous line:
25
- 'lazyLargeObject = new Lazy<LargeObject>(InitLargeObject, true);
26
- 'lazyLargeObject = new Lazy<LargeObject>(InitLargeObject, _
27
- ' LazyThreadSafetyMode.ExecutionAndPublication);
+ 'lazyLargeObject = New Lazy(Of LargeObject)(AddressOf InitLargeObject, True)
+ 'lazyLargeObject = New Lazy(Of LargeObject)(AddressOf InitLargeObject, _
+ ' LazyThreadSafetyMode.ExecutionAndPublication)
28
'</SnippetNewLazy>
29
30
0 commit comments