Skip to content

Commit 353d350

Browse files
authored
Reinstate snippet output
1 parent 0f1d1a6 commit 353d350

File tree

1 file changed

+35
-1
lines changed
  • snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview

1 file changed

+35
-1
lines changed

snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,41 @@ Public Class Example
126126

127127
End Class
128128

129+
' This code example produces the following output:
130+
'
131+
'An element with Key = "txt" already exists.
132+
'For key = "rtf", value = wordpad.exe.
133+
'For key = "rtf", value = winword.exe.
134+
'Key = "tif" is not found.
135+
'Key = "tif" is not found.
136+
'Value added for key = "ht": hypertrm.exe
137+
'
138+
'Key = txt, Value = notepad.exe
139+
'Key = bmp, Value = paint.exe
140+
'Key = dib, Value = paint.exe
141+
'Key = rtf, Value = winword.exe
142+
'Key = doc, Value = winword.exe
143+
'Key = ht, Value = hypertrm.exe
144+
'
145+
'Value = notepad.exe
146+
'Value = paint.exe
147+
'Value = paint.exe
148+
'Value = winword.exe
149+
'Value = winword.exe
150+
'Value = hypertrm.exe
151+
'
152+
'Key = txt
153+
'Key = bmp
154+
'Key = dib
155+
'Key = rtf
156+
'Key = doc
157+
'Key = ht
158+
'
159+
'Remove("doc")
160+
'Key "doc" is not found.
161+
162+
'</Snippet1>
163+
129164
' Example for Snippet11 - separate from main example
130165
Public Class Snippet11Example
131166
Public Shared Sub Main()
@@ -149,4 +184,3 @@ Public Class Snippet11Example
149184

150185
End Sub
151186
End Class
152-
'</Snippet1>

0 commit comments

Comments
 (0)