diff --git a/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/Project.vbproj
new file mode 100644
index 00000000000..2780795cb40
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net8.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.Dictionary.ctor_IDicIEqC/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.Dictionary.ctor_IDicIEqC/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source.vb
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.Dictionary.ctor_Int32/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source2.vb
similarity index 96%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.Dictionary.ctor_Int32/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source2.vb
index cde9ec6a46e..a7cfd0eaaae 100644
--- a/snippets/visualbasic/VS_Snippets_CLR/Generic.Dictionary.ctor_Int32/VB/source.vb
+++ b/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source2.vb
@@ -1,7 +1,7 @@
'
Imports System.Collections.Generic
-Public Class Example
+Public Class DictionaryCapacityExample
Public Shared Sub Main()
diff --git a/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/Overview/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/Overview/Project.vbproj
new file mode 100644
index 00000000000..2780795cb40
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/Overview/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net8.0
+
+
+
diff --git a/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/Project.vbproj
new file mode 100644
index 00000000000..2780795cb40
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net8.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb
similarity index 71%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb
index e94a3057802..b786c659469 100644
--- a/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb
+++ b/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb
@@ -6,8 +6,9 @@ Public Class Example
Public Shared Sub Main()
'
- ' Create a new dictionary of strings, with string keys,
+ ' Create a new dictionary of strings, with string keys,
' and access it through the IDictionary generic interface.
+ '
Dim openWith As IDictionary(Of String, String) = _
New Dictionary(Of String, String)
@@ -39,14 +40,14 @@ Public Class Example
Console.WriteLine("For key = ""rtf"", value = {0}.", _
openWith("rtf"))
- ' If a key does not exist, setting the default item property
+ ' If a key does not exist, setting the default Item property
' for that key adds a new key/value pair.
openWith("doc") = "winword.exe"
'
'
- ' The default Item property throws an exception if the requested
- ' key is not in the dictionary.
+ ' The default Item property throws a KeyNotFoundException
+ ' if the requested key is not in the dictionary.
Try
Console.WriteLine("For key = ""tif"", value = {0}.", _
openWith("tif"))
@@ -84,40 +85,40 @@ Public Class Example
For Each kvp As KeyValuePair(Of String, String) In openWith
Console.WriteLine("Key = {0}, Value = {1}", _
kvp.Key, kvp.Value)
- Next kvp
+ Next
'
'
' To get the values alone, use the Values property.
- Dim icoll As ICollection(Of String) = openWith.Values
+ Dim ivals As ICollection(Of String) = openWith.Values
- ' The elements of the ValueCollection are strongly typed
+ ' The elements of the ICollection(Of String) are strongly typed
' with the type that was specified for dictionary values.
Console.WriteLine()
- For Each s As String In icoll
+ For Each s As String In ivals
Console.WriteLine("Value = {0}", s)
Next s
'
'
' To get the keys alone, use the Keys property.
- icoll = openWith.Keys
+ Dim ikeys As ICollection(Of String) = openWith.Keys
- ' The elements of the ValueCollection are strongly typed
- ' with the type that was specified for dictionary values.
+ ' The elements of the ICollection(Of String) are strongly typed
+ ' with the type that was specified for dictionary keys.
Console.WriteLine()
- For Each s As String In icoll
+ For Each s As String In ikeys
Console.WriteLine("Key = {0}", s)
Next s
'
'
' Use the Remove method to remove a key/value pair.
- Console.WriteLine(vbLf + "Remove(""doc"")")
- openWith.Remove("doc")
+ Console.WriteLine(vbLf + "Remove(""dib"")")
+ openWith.Remove("dib")
- If Not openWith.ContainsKey("doc") Then
- Console.WriteLine("Key ""doc"" is not found.")
+ If Not openWith.ContainsKey("dib") Then
+ Console.WriteLine("Key ""dib"" is not found.")
End If
'
@@ -157,5 +158,29 @@ End Class
'
'Remove("doc")
'Key "doc" is not found.
-'
+
'
+
+' Example for Snippet11 - separate from main example
+Public Class Snippet11Example
+ Public Shared Sub Main()
+ ' Create a new dictionary of strings, with integer keys.
+ '
+ Dim exDictionary As New Dictionary(Of Integer, String)
+
+ ' Add some elements to the dictionary. There are no
+ ' duplicate keys, but some of the values are duplicates.
+ exDictionary.Add(0, "notepad.exe")
+ exDictionary.Add(1, "paint.exe")
+ exDictionary.Add(2, "paint.exe")
+ exDictionary.Add(3, "wordpad.exe")
+ Dim myDictionary As IDictionary(Of Integer, String) = exDictionary
+
+ '
+ For Each kvp As KeyValuePair(Of Integer, String) In myDictionary
+ Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value)
+ Next kvp
+ '
+
+ End Sub
+End Class
diff --git a/snippets/visualbasic/System.Collections.Generic/LinkedListT/Overview/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/LinkedListT/Overview/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/LinkedListT/Overview/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.LinkedList/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/LinkedListT/Overview/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.LinkedList/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/LinkedListT/Overview/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/AsReadOnly/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/AsReadOnly/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/AsReadOnly/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_AsReadOnly/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/AsReadOnly/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_AsReadOnly/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/AsReadOnly/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/Class/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/Class/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/Class/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/ConvertAll/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/ConvertAll/Project.vbproj
new file mode 100644
index 00000000000..cd0a57df9ed
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/ConvertAll/Project.vbproj
@@ -0,0 +1,12 @@
+
+
+
+ Exe
+ net8.0
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_ConvertAll/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/ConvertAll/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_ConvertAll/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/ConvertAll/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/CopyTo/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/CopyTo/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/CopyTo/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_CopyTo/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/CopyTo/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_CopyTo/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/CopyTo/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/FindEtAl/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/FindEtAl/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/FindEtAl/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_FindEtAl/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/FindEtAl/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_FindEtAl/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/FindEtAl/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/IndexOf/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/IndexOf/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/IndexOf/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_IndexOf/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/IndexOf/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_IndexOf/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/IndexOf/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/LastIndexOf/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/LastIndexOf/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/LastIndexOf/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_LastIndexOf/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/LastIndexOf/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_LastIndexOf/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/LastIndexOf/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_Ranges/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_Ranges/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/Ranges/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/Reverse/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/Reverse/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/Reverse/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_Reverse/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/Reverse/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_Reverse/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/Reverse/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/SortComparison/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/SortComparison/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/SortComparison/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_SortComparison/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/SortComparison/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_SortComparison/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/SortComparison/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/SortSearch/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearch/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearch/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearch/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearch/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearch/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/SortSearch/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparer/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparer/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparer/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearchComparer/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparer/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearchComparer/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparer/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparerRange/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparerRange/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparerRange/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearchComparerRange/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparerRange/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearchComparerRange/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparerRange/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/Project.vbproj
new file mode 100644
index 00000000000..2780795cb40
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net8.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/Project.vbproj
new file mode 100644
index 00000000000..2780795cb40
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net8.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDicIComp/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDicIComp/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IComparer/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IComparer/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IComparer/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IComp/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IComparer/source.vb
similarity index 99%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IComp/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IComparer/source.vb
index c66e1a4c41e..03e9fe17b74 100644
--- a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IComp/VB/source.vb
+++ b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IComparer/source.vb
@@ -44,4 +44,4 @@ End Class
'Key = DIB, Value = paint.exe
'Key = rtf, Value = wordpad.exe
'Key = txt, Value = notepad.exe
-'
+'
\ No newline at end of file
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb
similarity index 99%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb
index db4c58bc38b..a1bf487e700 100644
--- a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb
+++ b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb
@@ -213,4 +213,4 @@ End Class
'Remove("dib")
'Key "dib" is not found.
'
-'
+'
\ No newline at end of file
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionaryCtor/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionaryCtor/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionaryCtor/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDic/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionaryCtor/source.vb
similarity index 98%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDic/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionaryCtor/source.vb
index 44a8b30fb64..8128155734a 100644
--- a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDic/VB/source.vb
+++ b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionaryCtor/source.vb
@@ -36,4 +36,4 @@ End Class
'Key = dib, Value = paint.exe
'Key = rtf, Value = wordpad.exe
'Key = txt, Value = notepad.exe
-'
+'
\ No newline at end of file
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/Project.vbproj
new file mode 100644
index 00000000000..2780795cb40
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net8.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/.ctor/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/.ctor/Project.vbproj
new file mode 100644
index 00000000000..2780795cb40
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/.ctor/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net8.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IComp/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/.ctor/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IComp/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/.ctor/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionary/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionary/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionary/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IDic/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionary/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IDic/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionary/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionaryIComparer/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionaryIComparer/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionaryIComparer/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IDicIComp/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionaryIComparer/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IDicIComp/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionaryIComparer/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_Int32/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_Int32/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32IComparer/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32IComparer/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32IComparer/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_Int32IComp/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32IComparer/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_Int32IComp/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32IComparer/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/Project.vbproj
new file mode 100644
index 00000000000..d50c0e10aeb
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Exe
+ net8.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/remarks.vb b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.vb
similarity index 89%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/remarks.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.vb
index eb9a59ac6ef..ed10c8ccfb1 100644
--- a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/remarks.vb
+++ b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.vb
@@ -1,7 +1,7 @@
-Imports System.Collections.Generic
+Imports System.Collections.Generic
-Public Class Example
- Public Shared Sub Main()
+Public Class RemarksExample
+ Public Shared Sub DoRemarks()
' Create a new sorted list of strings, with string
' keys.
Dim mySortedList As New SortedList(Of Integer, String)()
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb b/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb
rename to snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb
diff --git a/snippets/visualbasic/System.Collections.Generic/StackT/Overview/Project.vbproj b/snippets/visualbasic/System.Collections.Generic/StackT/Overview/Project.vbproj
new file mode 100644
index 00000000000..2780795cb40
--- /dev/null
+++ b/snippets/visualbasic/System.Collections.Generic/StackT/Overview/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net8.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb b/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb
rename to snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb
diff --git a/snippets/visualbasic/VS_Snippets_CLR/ArrayList/VB/ArrayListSample.vb b/snippets/visualbasic/System.Collections/ArrayList/Overview/ArrayListSample.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/ArrayList/VB/ArrayListSample.vb
rename to snippets/visualbasic/System.Collections/ArrayList/Overview/ArrayListSample.vb
diff --git a/snippets/visualbasic/System.Collections/ArrayList/Overview/Project.vbproj b/snippets/visualbasic/System.Collections/ArrayList/Overview/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.Collections/ArrayList/Overview/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/System.DateTime/SystemDateTimeReference.vbproj b/snippets/visualbasic/System.DateTime/SystemDateTimeReference.vbproj
index 41f1d5ad4b2..92e46ddaccf 100644
--- a/snippets/visualbasic/System.DateTime/SystemDateTimeReference.vbproj
+++ b/snippets/visualbasic/System.DateTime/SystemDateTimeReference.vbproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net9.0
diff --git a/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/Project.vbproj b/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/Project.vbproj
index a269962b552..92e46ddaccf 100644
--- a/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/Project.vbproj
+++ b/snippets/visualbasic/System.Globalization/DateTimeFormatInfo/GetShortestDayName/Project.vbproj
@@ -2,7 +2,7 @@
Exe
- net8.0
+ net9.0
diff --git a/snippets/visualbasic/System.IO.Compression/Deflate/Deflate.vbproj b/snippets/visualbasic/System.IO.Compression/Deflate/Deflate.vbproj
index 38c40ed3d30..16d5817ec65 100644
--- a/snippets/visualbasic/System.IO.Compression/Deflate/Deflate.vbproj
+++ b/snippets/visualbasic/System.IO.Compression/Deflate/Deflate.vbproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net9.0
Deflate.MemoryWriteReadExample
diff --git a/snippets/visualbasic/System.IO.Compression/GZip/GZip.vbproj b/snippets/visualbasic/System.IO.Compression/GZip/GZip.vbproj
index e592b8dad3f..ea86074ff41 100644
--- a/snippets/visualbasic/System.IO.Compression/GZip/GZip.vbproj
+++ b/snippets/visualbasic/System.IO.Compression/GZip/GZip.vbproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net9.0
GZip.MemoryWriteReadExample
diff --git a/snippets/visualbasic/System.IO/DirectoryInfo/CreateSubdirectory/Project.vbproj b/snippets/visualbasic/System.IO/DirectoryInfo/CreateSubdirectory/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/DirectoryInfo/CreateSubdirectory/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/directoryinfocreatesub/VB/directoryinfocreatesub.vb b/snippets/visualbasic/System.IO/DirectoryInfo/CreateSubdirectory/directoryinfocreatesub.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/directoryinfocreatesub/VB/directoryinfocreatesub.vb
rename to snippets/visualbasic/System.IO/DirectoryInfo/CreateSubdirectory/directoryinfocreatesub.vb
diff --git a/snippets/visualbasic/System.IO/DirectoryInfo/Delete/Project.vbproj b/snippets/visualbasic/System.IO/DirectoryInfo/Delete/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/DirectoryInfo/Delete/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/directoryinfodelete/VB/directoryinfodelete.vb b/snippets/visualbasic/System.IO/DirectoryInfo/Delete/directoryinfodelete.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/directoryinfodelete/VB/directoryinfodelete.vb
rename to snippets/visualbasic/System.IO/DirectoryInfo/Delete/directoryinfodelete.vb
diff --git a/snippets/visualbasic/System.IO/DirectoryInfo/GetDirectories/Project.vbproj b/snippets/visualbasic/System.IO/DirectoryInfo/GetDirectories/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/DirectoryInfo/GetDirectories/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/directoryinfogetdirectories/VB/directoryinfogetdirectories.vb b/snippets/visualbasic/System.IO/DirectoryInfo/GetDirectories/directoryinfogetdirectories.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/directoryinfogetdirectories/VB/directoryinfogetdirectories.vb
rename to snippets/visualbasic/System.IO/DirectoryInfo/GetDirectories/directoryinfogetdirectories.vb
diff --git a/snippets/visualbasic/System.IO/DirectoryInfo/MoveTo/Project.vbproj b/snippets/visualbasic/System.IO/DirectoryInfo/MoveTo/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/DirectoryInfo/MoveTo/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/directoryinfomoveto/VB/directoryinfomoveto.vb b/snippets/visualbasic/System.IO/DirectoryInfo/MoveTo/directoryinfomoveto.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/directoryinfomoveto/VB/directoryinfomoveto.vb
rename to snippets/visualbasic/System.IO/DirectoryInfo/MoveTo/directoryinfomoveto.vb
diff --git a/snippets/visualbasic/System.IO/DirectoryInfo/Parent/Project.vbproj b/snippets/visualbasic/System.IO/DirectoryInfo/Parent/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/DirectoryInfo/Parent/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/directoryinfoparent/VB/directoryinfoparent.vb b/snippets/visualbasic/System.IO/DirectoryInfo/Parent/directoryinfoparent.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/directoryinfoparent/VB/directoryinfoparent.vb
rename to snippets/visualbasic/System.IO/DirectoryInfo/Parent/directoryinfoparent.vb
diff --git a/snippets/visualbasic/System.IO/DirectoryInfo/Root/Project.vbproj b/snippets/visualbasic/System.IO/DirectoryInfo/Root/Project.vbproj
new file mode 100644
index 00000000000..a3fb2ebcab0
--- /dev/null
+++ b/snippets/visualbasic/System.IO/DirectoryInfo/Root/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
\ No newline at end of file
diff --git a/snippets/visualbasic/VS_Snippets_CLR/directoryinforoot/VB/directoryinforoot2.vb b/snippets/visualbasic/System.IO/DirectoryInfo/Root/directoryinforoot2.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/directoryinforoot/VB/directoryinforoot2.vb
rename to snippets/visualbasic/System.IO/DirectoryInfo/Root/directoryinforoot2.vb
diff --git a/snippets/visualbasic/System.IO/FileInfo/CopyTo/Project.vbproj b/snippets/visualbasic/System.IO/FileInfo/CopyTo/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/FileInfo/CopyTo/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/FileInfoCopyTo1/VB/fileinfocopyto1.vb b/snippets/visualbasic/System.IO/FileInfo/CopyTo/fileinfocopyto1.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/FileInfoCopyTo1/VB/fileinfocopyto1.vb
rename to snippets/visualbasic/System.IO/FileInfo/CopyTo/fileinfocopyto1.vb
diff --git a/snippets/visualbasic/System.IO/FileInfo/GetAccessControl/Project.vbproj b/snippets/visualbasic/System.IO/FileInfo/GetAccessControl/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/FileInfo/GetAccessControl/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/IO.FileInfo.GetAccessControl-SetAccessControl/VB/sample.vb b/snippets/visualbasic/System.IO/FileInfo/GetAccessControl/sample.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/IO.FileInfo.GetAccessControl-SetAccessControl/VB/sample.vb
rename to snippets/visualbasic/System.IO/FileInfo/GetAccessControl/sample.vb
diff --git a/snippets/visualbasic/System.IO/FileInfo/IsReadOnly/Project.vbproj b/snippets/visualbasic/System.IO/FileInfo/IsReadOnly/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/FileInfo/IsReadOnly/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/IO.FileInfo.isReadOnly/VB/sample.vb b/snippets/visualbasic/System.IO/FileInfo/IsReadOnly/sample.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/IO.FileInfo.isReadOnly/VB/sample.vb
rename to snippets/visualbasic/System.IO/FileInfo/IsReadOnly/sample.vb
diff --git a/snippets/visualbasic/System.IO/FileStreamOptions/FileStreamOptionsExamples.vbproj b/snippets/visualbasic/System.IO/FileStreamOptions/FileStreamOptionsExamples.vbproj
index adbde6e0619..aee73149c05 100644
--- a/snippets/visualbasic/System.IO/FileStreamOptions/FileStreamOptionsExamples.vbproj
+++ b/snippets/visualbasic/System.IO/FileStreamOptions/FileStreamOptionsExamples.vbproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net9.0
\ No newline at end of file
diff --git a/snippets/visualbasic/System.IO/Path/Combine/Project.vbproj b/snippets/visualbasic/System.IO/Path/Combine/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.IO/Path/Combine/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/pathcombine/VB/pathcombine.vb b/snippets/visualbasic/System.IO/Path/Combine/pathcombine.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/pathcombine/VB/pathcombine.vb
rename to snippets/visualbasic/System.IO/Path/Combine/pathcombine.vb
diff --git a/snippets/visualbasic/System.IO/Path/GetRelativePath/Project.vbproj b/snippets/visualbasic/System.IO/Path/GetRelativePath/Project.vbproj
index adbde6e0619..aee73149c05 100644
--- a/snippets/visualbasic/System.IO/Path/GetRelativePath/Project.vbproj
+++ b/snippets/visualbasic/System.IO/Path/GetRelativePath/Project.vbproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net9.0
\ No newline at end of file
diff --git a/snippets/visualbasic/System.Net.Security/ALPN/Project.vbproj b/snippets/visualbasic/System.Net.Security/ALPN/Project.vbproj
index adbde6e0619..aee73149c05 100644
--- a/snippets/visualbasic/System.Net.Security/ALPN/Project.vbproj
+++ b/snippets/visualbasic/System.Net.Security/ALPN/Project.vbproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net9.0
\ No newline at end of file
diff --git a/snippets/visualbasic/System.Security.Cryptography/CryptoStream/Overview/project.vbproj b/snippets/visualbasic/System.Security.Cryptography/CryptoStream/Overview/project.vbproj
index d50c0e10aeb..aee73149c05 100644
--- a/snippets/visualbasic/System.Security.Cryptography/CryptoStream/Overview/project.vbproj
+++ b/snippets/visualbasic/System.Security.Cryptography/CryptoStream/Overview/project.vbproj
@@ -2,7 +2,7 @@
Exe
- net8.0
+ net9.0
\ No newline at end of file
diff --git a/snippets/visualbasic/System.Text/StringBuilder/Replace/Project.vbproj b/snippets/visualbasic/System.Text/StringBuilder/Replace/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.Text/StringBuilder/Replace/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/stringbuilder.replace/VB/replace.vb b/snippets/visualbasic/System.Text/StringBuilder/Replace/replace.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/stringbuilder.replace/VB/replace.vb
rename to snippets/visualbasic/System.Text/StringBuilder/Replace/replace.vb
diff --git a/snippets/visualbasic/System.Threading/Thread/Abort/Project.vbproj b/snippets/visualbasic/System.Threading/Thread/Abort/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.Threading/Thread/Abort/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/ThreadAbEx/VB/threadabex.vb b/snippets/visualbasic/System.Threading/Thread/Abort/threadabex.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/ThreadAbEx/VB/threadabex.vb
rename to snippets/visualbasic/System.Threading/Thread/Abort/threadabex.vb
diff --git a/snippets/visualbasic/System.Threading/Thread/Sleep/Project.vbproj b/snippets/visualbasic/System.Threading/Thread/Sleep/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System.Threading/Thread/Sleep/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/thread.sleep_timespan/vb/example.vb b/snippets/visualbasic/System.Threading/Thread/Sleep/example.vb
similarity index 95%
rename from snippets/visualbasic/VS_Snippets_CLR/thread.sleep_timespan/vb/example.vb
rename to snippets/visualbasic/System.Threading/Thread/Sleep/example.vb
index dbe7a82ba25..b681f485d67 100644
--- a/snippets/visualbasic/VS_Snippets_CLR/thread.sleep_timespan/vb/example.vb
+++ b/snippets/visualbasic/System.Threading/Thread/Sleep/example.vb
@@ -1,7 +1,7 @@
'
Imports System.Threading
-Class Example
+Class ThreadSleepExample
Shared Sub Main()
diff --git a/snippets/visualbasic/System/Console/KeyAvailable/Project.vbproj b/snippets/visualbasic/System/Console/KeyAvailable/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System/Console/KeyAvailable/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/console.keyavailable/VB/ka.vb b/snippets/visualbasic/System/Console/KeyAvailable/ka.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/console.keyavailable/VB/ka.vb
rename to snippets/visualbasic/System/Console/KeyAvailable/ka.vb
diff --git a/snippets/visualbasic/System/Console/ReadKey/Project.vbproj b/snippets/visualbasic/System/Console/ReadKey/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System/Console/ReadKey/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/console.readkey1/VB/rk.vb b/snippets/visualbasic/System/Console/ReadKey/rk.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/console.readkey1/VB/rk.vb
rename to snippets/visualbasic/System/Console/ReadKey/rk.vb
diff --git a/snippets/visualbasic/System/DateTime/DayOfWeek/Project.vbproj b/snippets/visualbasic/System/DateTime/DayOfWeek/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System/DateTime/DayOfWeek/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/DateTime.DayOfWeek/VB/dow.vb b/snippets/visualbasic/System/DateTime/DayOfWeek/dow.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/DateTime.DayOfWeek/VB/dow.vb
rename to snippets/visualbasic/System/DateTime/DayOfWeek/dow.vb
diff --git a/snippets/visualbasic/System/Environment/FailFast/Project.vbproj b/snippets/visualbasic/System/Environment/FailFast/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System/Environment/FailFast/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/environment.FailFast/vb/ff.vb b/snippets/visualbasic/System/Environment/FailFast/ff.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/environment.FailFast/vb/ff.vb
rename to snippets/visualbasic/System/Environment/FailFast/ff.vb
diff --git a/snippets/visualbasic/System/Math/Max/Project.vbproj b/snippets/visualbasic/System/Math/Max/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System/Math/Max/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/math.max/VB/max.vb b/snippets/visualbasic/System/Math/Max/max.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/math.max/VB/max.vb
rename to snippets/visualbasic/System/Math/Max/max.vb
diff --git a/snippets/visualbasic/System/Math/Min/Project.vbproj b/snippets/visualbasic/System/Math/Min/Project.vbproj
new file mode 100644
index 00000000000..ffa6c9960f8
--- /dev/null
+++ b/snippets/visualbasic/System/Math/Min/Project.vbproj
@@ -0,0 +1,8 @@
+
+
+
+ Library
+ net9.0
+
+
+
diff --git a/snippets/visualbasic/VS_Snippets_CLR/math.min/VB/min.vb b/snippets/visualbasic/System/Math/Min/min.vb
similarity index 100%
rename from snippets/visualbasic/VS_Snippets_CLR/math.min/VB/min.vb
rename to snippets/visualbasic/System/Math/Min/min.vb
diff --git a/snippets/visualbasic/System/Object/MemberwiseClone/Project.vbproj b/snippets/visualbasic/System/Object/MemberwiseClone/Project.vbproj
index aa9fd2ecaaf..325ccd545c2 100644
--- a/snippets/visualbasic/System/Object/MemberwiseClone/Project.vbproj
+++ b/snippets/visualbasic/System/Object/MemberwiseClone/Project.vbproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net9.0
\ No newline at end of file
diff --git a/snippets/visualbasic/System/string.split/string.split.vbproj b/snippets/visualbasic/System/string.split/string.split.vbproj
index 81221ba8618..adc1492d1e3 100644
--- a/snippets/visualbasic/System/string.split/string.split.vbproj
+++ b/snippets/visualbasic/System/string.split/string.split.vbproj
@@ -3,7 +3,7 @@
Exe
split
- net8
+ net9.0
diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source2.vb b/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source2.vb
deleted file mode 100644
index 4c6beb76c93..00000000000
--- a/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source2.vb
+++ /dev/null
@@ -1,23 +0,0 @@
-Imports System.Collections.Generic
-
-Public Class Example
- Public Shared Sub Main()
- ' Create a new dictionary of strings, with string keys.
- '
- Dim exDictionary As New Dictionary(Of Integer, String)
-
- ' Add some elements to the dictionary. There are no
- ' duplicate keys, but some of the values are duplicates.
- exDictionary.Add(0, "notepad.exe")
- exDictionary.Add(1, "paint.exe")
- exDictionary.Add(2, "paint.exe")
- exDictionary.Add(3, "wordpad.exe")
- Dim myDictionary As IDictionary(Of Integer, String) = exDictionary
- '
- For Each kvp As KeyValuePair(Of Integer, String) In myDictionary
- Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value)
- Next kvp
- '
- End Sub
-End Class
-
diff --git a/xml/System.Collections.Generic/Dictionary`2.xml b/xml/System.Collections.Generic/Dictionary`2.xml
index 4cb0c0d8e47..4b25c109d70 100644
--- a/xml/System.Collections.Generic/Dictionary`2.xml
+++ b/xml/System.Collections.Generic/Dictionary`2.xml
@@ -526,7 +526,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source3.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source3.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Dictionary.ctor_Int32/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source2.vb" id="Snippet1":::
]]>
@@ -612,7 +612,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source1.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Dictionary.ctor_IDicIEqC/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/DictionaryTKey,TValue/.ctor/source.vb" id="Snippet1":::
]]>
diff --git a/xml/System.Collections.Generic/IDictionary`2.xml b/xml/System.Collections.Generic/IDictionary`2.xml
index 4f6592baddc..1c05e6f8a5c 100644
--- a/xml/System.Collections.Generic/IDictionary`2.xml
+++ b/xml/System.Collections.Generic/IDictionary`2.xml
@@ -92,7 +92,7 @@
The `foreach` statement of the C# language (`For Each` in Visual Basic) returns an object of the type of the elements in the collection. Since each element of the is a key/value pair, the element type is not the type of the key or the type of the value. Instead, the element type is . For example:
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source2.cs" id="Snippet11":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source2.vb" id="Snippet11":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet11":::
The `foreach` statement is a wrapper around the enumerator, which only allows reading from, not writing to, the collection.
@@ -113,7 +113,7 @@
Finally, the example shows how to enumerate the keys and values in the dictionary, and how to enumerate the values alone using the property.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet1":::
]]>
@@ -188,7 +188,7 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" interactive="try-dotnet-method" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet2":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet2":::
]]>
@@ -260,11 +260,11 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet6":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet6":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet6":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet5":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet5":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet4":::
]]>
@@ -341,11 +341,11 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet3":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet4":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet5":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet5":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet5":::
]]>
@@ -413,7 +413,7 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet9":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet9":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet9":::
]]>
@@ -480,7 +480,7 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet10":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet10":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet10":::
]]>
@@ -561,9 +561,9 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet5":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet5":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet4":::
]]>
@@ -628,7 +628,7 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.cs" id="Snippet8":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source.vb" id="Snippet8":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet8":::
]]>
diff --git a/xml/System.Collections.Generic/IReadOnlyDictionary`2.xml b/xml/System.Collections.Generic/IReadOnlyDictionary`2.xml
index b009a8c414a..378d9ca31b7 100644
--- a/xml/System.Collections.Generic/IReadOnlyDictionary`2.xml
+++ b/xml/System.Collections.Generic/IReadOnlyDictionary`2.xml
@@ -90,7 +90,7 @@
The `foreach` statement of the C# language (`For Each` in Visual Basic) requires the type of each element in the collection. Because each element of the interface is a key/value pair, the element type is not the type of the key or the type of the value. Instead, the element type is , as the following example illustrates.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source2.cs" id="Snippet11":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.IDictionary/VB/source2.vb" id="Snippet11":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/IDictionaryTKey,TValue/Overview/source.vb" id="Snippet11":::
The `foreach` statement is a wrapper around the enumerator; it allows only reading from the collection, not writing to the collection.
diff --git a/xml/System.Collections.Generic/LinkedList`1.xml b/xml/System.Collections.Generic/LinkedList`1.xml
index 7e1a3812fad..48140e7c28b 100644
--- a/xml/System.Collections.Generic/LinkedList`1.xml
+++ b/xml/System.Collections.Generic/LinkedList`1.xml
@@ -141,7 +141,7 @@
The following code example demonstrates many features of the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/LinkedListT/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.LinkedList/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/LinkedListT/Overview/source.vb" id="Snippet1":::
]]>
diff --git a/xml/System.Collections.Generic/List`1.xml b/xml/System.Collections.Generic/List`1.xml
index 956b7817b9a..0f3fcfe3340 100644
--- a/xml/System.Collections.Generic/List`1.xml
+++ b/xml/System.Collections.Generic/List`1.xml
@@ -190,7 +190,7 @@
The example adds, inserts, and removes items, showing how the capacity changes as these methods are used.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_Class/fs/listclass.fs" id="Snippet1":::
]]>
@@ -248,7 +248,7 @@
The following example demonstrates the constructor and various methods of the class that act on ranges. An array of strings is created and passed to the constructor, populating the list with the elements of the array. The property is then displayed, to show that the initial capacity is exactly what is required to hold the input elements.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Ranges/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/source.vb" id="Snippet1":::
]]>
@@ -319,7 +319,7 @@
The following example demonstrates the constructor. A of strings with a capacity of 4 is created, because the ultimate size of the list is known to be exactly 4. The list is populated with four strings, and a read-only copy is created by using the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/.ctor/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_AsReadOnly/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/AsReadOnly/source.vb" id="Snippet1":::
]]>
@@ -396,7 +396,7 @@
Other properties and methods are used to search for, insert, and remove elements from the list, and finally to clear the list.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_Class/fs/listclass.fs" id="Snippet1":::
]]>
@@ -463,7 +463,7 @@
The following example demonstrates the method and various other methods of the class that act on ranges. An array of strings is created and passed to the constructor, populating the list with the elements of the array. The method is called, with the list as its argument. The result is that the current elements of the list are added to the end of the list, duplicating all the elements.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Ranges/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/source.vb" id="Snippet1":::
]]>
@@ -531,7 +531,7 @@
An element of the original list is set to "Coelophysis" using the property (the indexer in C#), and the contents of the read-only list are displayed again to demonstrate that it is just a wrapper for the original list.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/.ctor/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_AsReadOnly/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/AsReadOnly/source.vb" id="Snippet1":::
]]>
@@ -613,7 +613,7 @@
The method overload is then used to search for two strings that are not in the list, and the method is used to insert them. The return value of the method is negative in each case, because the strings are not in the list. Taking the bitwise complement (the ~ operator in C#, `Xor` -1 in Visual Basic) of this negative number produces the index of the first element in the list that is larger than the search string, and inserting at this location preserves the sort order. The second search string is larger than any element in the list, so the insertion position is at the end of the list.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/BinarySearch/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearch/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/SortSearch/source.vb" id="Snippet1":::
]]>
@@ -708,7 +708,7 @@
The method overload is then used to search for several strings that are not in the list, employing the alternate comparer. The method is used to insert the strings. These two methods are located in the function named `SearchAndInsert`, along with code to take the bitwise complement (the ~ operator in C#, `Xor` -1 in Visual Basic) of the negative number returned by and use it as an index for inserting the new string.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/BinarySearch/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearchComparer/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparer/source.vb" id="Snippet1":::
]]>
@@ -804,7 +804,7 @@
The method overload is then used to search only the range of herbivores for "Brachiosaurus". The string is not found, and the bitwise complement (the ~ operator in C#, `Xor` -1 in Visual Basic) of the negative number returned by the method is used as an index for inserting the new string.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/BinarySearch/source2.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearchComparerRange/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparerRange/source.vb" id="Snippet1":::
]]>
@@ -892,7 +892,7 @@
The property is displayed again after the method is used to reduce the capacity to match the count. Finally, the method is used to remove all items from the list, and the and properties are displayed again.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_Class/fs/listclass.fs" id="Snippet1":::
]]>
@@ -961,7 +961,7 @@
The following example demonstrates the method and various other properties and methods of the generic class. The method is used at the end of the program, to remove all items from the list, and the and properties are then displayed.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_Class/fs/listclass.fs" id="Snippet1":::
]]>
@@ -1110,7 +1110,7 @@
The following example defines a method named `PointFToPoint` that converts a structure to a structure. The example then creates a of structures, creates a `Converter\` delegate (`Converter(Of PointF, Point)` in Visual Basic) to represent the `PointFToPoint` method, and passes the delegate to the method. The method passes each element of the input list to the `PointFToPoint` method and puts the converted elements into a new list of structures. Both lists are displayed.
:::code language="csharp" source="~/snippets/csharp/System/ConverterTInput,TOutput/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_ConvertAll/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/ConvertAll/source.vb" id="Snippet1":::
]]>
@@ -1135,7 +1135,7 @@
The following example demonstrates all three overloads of the method. A of strings is created and populated with 5 strings. An empty string array of 15 elements is created, and the method overload is used to copy all the elements of the list to the array beginning at the first element of the array. The method overload is used to copy all the elements of the list to the array beginning at array index 6 (leaving index 5 empty). Finally, the method overload is used to copy 3 elements from the list, beginning with index 2, to the array beginning at array index 12 (leaving index 11 empty). The contents of the array are then displayed.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/CopyTo/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_CopyTo/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/CopyTo/source.vb" id="Snippet1":::
]]>
@@ -1416,7 +1416,7 @@
The following example shows the value of the property at various points in the life of a list. After the list has been created and populated and its elements displayed, the and properties are displayed. These properties are displayed again after the method has been called, and again after the contents of the list are cleared.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_Class/fs/listclass.fs" id="Snippet1":::
]]>
@@ -1529,7 +1529,7 @@
> In C# and Visual Basic, it is not necessary to create the `Predicate` delegate (`Predicate(Of String)` in Visual Basic) explicitly. These languages infer the correct delegate from context and create it automatically.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Exists/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_FindEtAl/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/FindEtAl/source.vb" id="Snippet1":::
]]>
@@ -2589,7 +2589,7 @@ Public Function StartsWith(e As Employee) As Boolean
The following example demonstrates the method and other methods of the class that act on ranges. At the end of the example, the method is used to get three items from the list, beginning with index location 2. The method is called on the resulting , creating an array of three elements. The elements of the array are displayed.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Ranges/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/source.vb" id="Snippet1":::
]]>
@@ -2622,7 +2622,7 @@ Public Function StartsWith(e As Employee) As Boolean
The following example demonstrates all three overloads of the method. A of strings is created, with one entry that appears twice, at index location 0 and index location 5. The method overload searches the list from the beginning, and finds the first occurrence of the string. The method overload is used to search the list beginning with index location 3 and continuing to the end of the list, and finds the second occurrence of the string. Finally, the method overload is used to search a range of two entries, beginning at index location two; it returns -1 because there are no instances of the search string in that range.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/IndexOf/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_IndexOf/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/IndexOf/source.vb" id="Snippet1":::
]]>
@@ -2905,7 +2905,7 @@ Public Function StartsWith(e As Employee) As Boolean
The following example demonstrates the method, along with various other properties and methods of the generic class. After the list is created, elements are added. The method is used to insert an item into the middle of the list. The item inserted is a duplicate, which is later removed using the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_Class/fs/listclass.fs" id="Snippet1":::
]]>
@@ -2983,7 +2983,7 @@ Public Function StartsWith(e As Employee) As Boolean
The following example demonstrates method and various other methods of the class that act on ranges. After the list has been created and populated with the names of several peaceful plant-eating dinosaurs, the method is used to insert an array of three ferocious meat-eating dinosaurs into the list, beginning at index location 3.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Ranges/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/source.vb" id="Snippet1":::
]]>
@@ -3076,9 +3076,9 @@ Public Function StartsWith(e As Employee) As Boolean
The C# language uses the [`this`](/dotnet/csharp/language-reference/keywords/this) keyword to define the indexers instead of implementing the property. Visual Basic implements as a default property, which provides the same indexing functionality.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet2":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet3":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet3":::
]]>
@@ -3107,7 +3107,7 @@ Public Function StartsWith(e As Employee) As Boolean
The following example demonstrates all three overloads of the method. A of strings is created, with one entry that appears twice, at index location 0 and index location 5. The method overload searches the entire list from the end, and finds the second occurrence of the string. The method overload is used to search the list backward beginning with index location 3 and continuing to the beginning of the list, so it finds the first occurrence of the string in the list. Finally, the method overload is used to search a range of four entries, beginning at index location 4 and extending backward (that is, it searches the items at locations 4, 3, 2, and 1); this search returns -1 because there are no instances of the search string in that range.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/LastIndexOf/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_LastIndexOf/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/LastIndexOf/source.vb" id="Snippet1":::
]]>
@@ -3383,7 +3383,7 @@ Public Function StartsWith(e As Employee) As Boolean
The following example demonstrates method. Several properties and methods of the generic class are used to add, insert, and search the list. After these operations, the list contains a duplicate. The method is used to remove the first instance of the duplicate item, and the contents are displayed. The method always removes the first instance it encounters.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_Class/fs/listclass.fs" id="Snippet1":::
]]>
@@ -3461,7 +3461,7 @@ Public Function StartsWith(e As Employee) As Boolean
Finally, the method verifies that there are no strings in the list that end with "saurus".
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Exists/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_FindEtAl/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/FindEtAl/source.vb" id="Snippet1":::
]]>
@@ -3605,7 +3605,7 @@ Public Function StartsWith(e As Employee) As Boolean
The following example demonstrates the method and various other methods of the class that act on ranges. After the list has been created and modified, the method is used to remove two elements from the list, beginning at index location 2.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Ranges/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/source.vb" id="Snippet1":::
]]>
@@ -3640,7 +3640,7 @@ Public Function StartsWith(e As Employee) As Boolean
The following example demonstrates both overloads of the method. The example creates a of strings and adds six strings. The method overload is used to reverse the list, and then the method overload is used to reverse the middle of the list, beginning with element 1 and encompassing four elements.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Reverse/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Reverse/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Reverse/source.vb" id="Snippet1":::
]]>
@@ -3888,7 +3888,7 @@ Public Function StartsWith(e As Employee) As Boolean
The method overload is then used to search for two strings that are not in the list, and the method is used to insert them. The return value of the method is negative in each case, because the strings are not in the list. Taking the bitwise complement (the ~ operator in C#, `Xor` -1 in Visual Basic) of this negative number produces the index of the first element in the list that is larger than the search string, and inserting at this location preserves the sort order. The second search string is larger than any element in the list, so the insertion position is at the end of the list.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/BinarySearch/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearch/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/SortSearch/source.vb" id="Snippet1":::
]]>
@@ -3976,7 +3976,7 @@ Public Function StartsWith(e As Employee) As Boolean
The method overload is then used to search for several strings that are not in the list, employing the alternate comparer. The method is used to insert the strings. These two methods are located in the function named `SearchAndInsert`, along with code to take the bitwise complement (the ~ operator in C#, `Xor` -1 in Visual Basic) of the negative number returned by and use it as an index for inserting the new string.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/BinarySearch/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearchComparer/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparer/source.vb" id="Snippet1":::
]]>
@@ -4061,7 +4061,7 @@ Public Function StartsWith(e As Employee) As Boolean
A of strings is created and populated with four strings, in no particular order. The list also includes an empty string and a null reference. The list is displayed, sorted using a generic delegate representing the `CompareDinosByLength` method, and displayed again.
:::code language="csharp" source="~/snippets/csharp/System/ComparisonT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_SortComparison/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/SortComparison/source.vb" id="Snippet1":::
]]>
@@ -4156,7 +4156,7 @@ Public Function StartsWith(e As Employee) As Boolean
The method overload is then used to search only the range of herbivores for "Brachiosaurus". The string is not found, and the bitwise complement (the ~ operator in C#, `Xor` -1 in Visual Basic) of the negative number returned by the method is used as an index for inserting the new string.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/BinarySearch/source2.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_SortSearchComparerRange/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/SortSearchComparerRange/source.vb" id="Snippet1":::
]]>
@@ -5172,7 +5172,7 @@ Retrieving the value of this property is an O(1) operation.
The following example demonstrates the method and other methods of the class that act on ranges. At the end of the example, the method is used to get three items from the list, beginning with index location 2. The method is called on the resulting , creating an array of three elements. The elements of the array are displayed.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Ranges/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Ranges/source.vb" id="Snippet1":::
]]>
@@ -5242,7 +5242,7 @@ Retrieving the value of this property is an O(1) operation.
The following example demonstrates the method. Several properties and methods of the class are used to add, insert, and remove items from a list of strings. Then the method is used to reduce the capacity to match the count, and the and properties are displayed. If the unused capacity had been less than 10 percent of total capacity, the list would not have been resized. Finally, the contents of the list are cleared.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Overview/source.cs" interactive="try-dotnet-method" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_Class/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/Class/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_Class/fs/listclass.fs" id="Snippet1":::
]]>
@@ -5315,7 +5315,7 @@ Retrieving the value of this property is an O(1) operation.
> In C# and Visual Basic, it is not necessary to create the `Predicate` delegate (`Predicate(Of String)` in Visual Basic) explicitly. These languages infer the correct delegate from context and create it automatically.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/ListT/Exists/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_FindEtAl/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/FindEtAl/source.vb" id="Snippet1":::
]]>
diff --git a/xml/System.Collections.Generic/Queue`1.xml b/xml/System.Collections.Generic/Queue`1.xml
index 8cdbaae207d..a10771f6cf2 100644
--- a/xml/System.Collections.Generic/Queue`1.xml
+++ b/xml/System.Collections.Generic/Queue`1.xml
@@ -130,7 +130,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -163,7 +163,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -428,7 +428,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -502,7 +502,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -644,7 +644,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -715,7 +715,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -789,7 +789,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -909,7 +909,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -982,7 +982,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
@@ -1410,7 +1410,7 @@ Retrieving the value of this property is an O(1) operation.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/QueueT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/QueueT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Queue/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/QueueT/Overview/source.vb" id="Snippet1":::
]]>
diff --git a/xml/System.Collections.Generic/SortedDictionary`2.xml b/xml/System.Collections.Generic/SortedDictionary`2.xml
index 17271b88623..9be10207e28 100644
--- a/xml/System.Collections.Generic/SortedDictionary`2.xml
+++ b/xml/System.Collections.Generic/SortedDictionary`2.xml
@@ -149,7 +149,7 @@
Finally, the example demonstrates the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet1":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet1":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet1":::
]]>
@@ -230,7 +230,7 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" interactive="try-dotnet-method" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet2":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet2":::
]]>
@@ -302,7 +302,7 @@
The following code example creates a with a case-insensitive comparer for the current culture. The example adds four elements, some with lower-case keys and some with upper-case keys. The example then attempts to add an element with a key that differs from an existing key only by case, catches the resulting exception, and displays an error message. Finally, the example displays the elements in case-insensitive sort order.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IComp/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IComparer/source.vb" id="Snippet1":::
]]>
@@ -373,7 +373,7 @@
The following code example shows how to use to create a sorted copy of the information in a , by passing the to the constructor.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDic/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionaryCtor/source.vb" id="Snippet1":::
]]>
@@ -452,7 +452,7 @@
The following code example shows how to use to create a case-insensitive sorted copy of the information in a case-insensitive , by passing the to the constructor. In this example, the case-insensitive comparers are for the current culture.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/source2.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.ctor_IDicIComp/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/.ctor/source.vb" id="Snippet1":::
]]>
@@ -532,7 +532,7 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" interactive="try-dotnet-method" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet2":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet2":::
]]>
@@ -713,11 +713,11 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet6":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet6":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet6":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet5":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet5":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet4":::
]]>
@@ -1053,11 +1053,11 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet3":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet4":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet5":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet5":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet5":::
]]>
@@ -1124,9 +1124,9 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet9":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet9":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet9":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet7":::
]]>
@@ -1197,7 +1197,7 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet10":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet10":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet10":::
]]>
@@ -1915,7 +1915,7 @@ Getting the value of this property is an O(1) operation.
The code example demonstrates the use of several other members of the interface.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet1":::
]]>
@@ -1997,11 +1997,11 @@ Getting the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet6":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet6":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet6":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2084,11 +2084,11 @@ Getting the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet7":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2285,13 +2285,13 @@ Getting the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet3":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet3":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet4":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2369,13 +2369,13 @@ Getting the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet9":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet9":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet9":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet7":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2441,11 +2441,11 @@ Getting the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet10":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet10":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet10":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2517,13 +2517,13 @@ Getting the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet8":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet8":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet8":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet7":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2677,9 +2677,9 @@ Getting the value of this property is an O(1) operation.
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet5":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet5":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet4":::
]]>
@@ -2746,9 +2746,9 @@ Getting the value of this property is an O(1) operation.
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet8":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet8":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet8":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedDictionary/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedDictionaryTKey,TValue/Overview/source.vb" id="Snippet7":::
]]>
diff --git a/xml/System.Collections.Generic/SortedList`2.xml b/xml/System.Collections.Generic/SortedList`2.xml
index 5b0a6664182..befb6a0e1c6 100644
--- a/xml/System.Collections.Generic/SortedList`2.xml
+++ b/xml/System.Collections.Generic/SortedList`2.xml
@@ -128,7 +128,7 @@
Another difference between the and classes is that supports efficient indexed retrieval of keys and values through the collections returned by the and properties. It is not necessary to regenerate the lists when the properties are accessed, because the lists are just wrappers for the internal arrays of keys and values. The following code shows the use of the property for indexed retrieval of values from a sorted list of strings:
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.cs" id="Snippet11":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/remarks.vb" id="Snippet11":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.vb" id="Snippet11":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.fs" id="Snippet11":::
is implemented as an array of key/value pairs, sorted by the key. Each element can be retrieved as a object.
@@ -144,7 +144,7 @@
The `foreach` statement of the C# language (`For Each` in Visual Basic) returns an object of the type of the elements in the collection. Since the elements of the are key/value pairs, the element type is not the type of the key or the type of the value. Instead, the element type is . For example:
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.cs" id="Snippet12":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/remarks.vb" id="Snippet12":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.vb" id="Snippet12":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.fs" id="Snippet12":::
The `foreach` statement is a wrapper around the enumerator, which only allows reading from, not writing to, the collection.
@@ -163,7 +163,7 @@
Finally, the example demonstrates the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet1":::
]]>
@@ -242,7 +242,7 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" interactive="try-dotnet-method" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet2":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet2":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet2":::
]]>
@@ -318,7 +318,7 @@
The following code example creates a sorted list with a case-insensitive comparer for the current culture. The example adds four elements, some with lower-case keys and some with upper-case keys. The example then attempts to add an element with a key that differs from an existing key only by case, catches the resulting exception, and displays an error message. Finally, the example displays the elements in case-insensitive sort order.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/.ctor/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IComp/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/.ctor/source.vb" id="Snippet1":::
]]>
@@ -390,7 +390,7 @@
The following code example shows how to use to create a sorted copy of the information in a , by passing the to the constructor.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/.ctor/source1.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IDic/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionary/source.vb" id="Snippet1":::
]]>
@@ -464,7 +464,7 @@
The following code example creates a sorted list with an initial capacity of 4 and populates it with 4 entries.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/.ctor/source3.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_Int32/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32/source.vb" id="Snippet1":::
]]>
@@ -544,7 +544,7 @@
The following code example shows how to use to create a case-insensitive sorted copy of the information in a case-insensitive , by passing the to the constructor. In this example, the case-insensitive comparers are for the current culture.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/.ctor/source2.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_IDicIComp/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorIDictionaryIComparer/source.vb" id="Snippet1":::
]]>
@@ -631,7 +631,7 @@
The following code example creates a sorted list with an initial capacity of 5 and a case-insensitive comparer for the current culture. The example adds four elements, some with lower-case keys and some with upper-case keys. The example then attempts to add an element with a key that differs from an existing key only by case, catches the resulting exception, and displays an error message. Finally, the example displays the elements in case-insensitive sort order.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/.ctor/source4.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.ctor_Int32IComp/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/ConstructorInt32IComparer/source.vb" id="Snippet1":::
]]>
@@ -710,7 +710,7 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" interactive="try-dotnet-method" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet2":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet2":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet2":::
]]>
@@ -956,13 +956,13 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet6":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet6":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet6":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet6":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet5":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet5":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet5":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet4":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet4":::
]]>
@@ -1412,13 +1412,13 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet3":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet3":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet4":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet4":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet5":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet5":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet5":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet5":::
]]>
@@ -1484,7 +1484,7 @@
The collection returned by the property provides an efficient way to retrieve keys by index. It is not necessary to regenerate the list when the property is accessed, because the list is just a wrapper for the internal array of keys. The following code shows the use of the property for indexed retrieval of keys from a sorted list of elements with string keys:
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.cs" id="Snippet11":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/remarks.vb" id="Snippet11":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.vb" id="Snippet11":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.fs" id="Snippet11":::
Retrieving the value of this property is an O(1) operation.
@@ -1499,10 +1499,10 @@
This code is part of a larger example that can be compiled and executed. See .
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet9":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet9":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet9":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet9":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet7":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet7":::
]]>
@@ -1571,7 +1571,7 @@
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet10":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet10":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet10":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet10":::
]]>
@@ -2430,7 +2430,7 @@ Retrieving the value of this property is an O(1) operation.
The code example demonstrates the use of several other members of the interface.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet1":::
]]>
@@ -2511,11 +2511,11 @@ Retrieving the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet6":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet6":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet6":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2597,11 +2597,11 @@ Retrieving the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet7":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2801,13 +2801,13 @@ Retrieving the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet3":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet3":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet4":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2885,13 +2885,13 @@ Retrieving the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet9":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet9":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet9":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet7":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -2958,11 +2958,11 @@ Retrieving the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet10":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet10":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet10":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -3035,13 +3035,13 @@ Retrieving the value of this property is an O(1) operation.
The code example is part of a larger example, including output, provided for the method.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet31":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet31":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet31":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet8":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet8":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet8":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet7":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/System.Collections.IDictionary.Add/source.cs" id="Snippet32":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList.IDictionary/VB/source.vb" id="Snippet32":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/IDictionary/source.vb" id="Snippet32":::
]]>
@@ -3251,10 +3251,10 @@ Retrieving the value of this property is an O(1) operation.
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet5":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet5":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet5":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet4":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet4":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet4":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet4":::
]]>
@@ -3322,7 +3322,7 @@ Retrieving the value of this property is an O(1) operation.
The collection returned by the property provides an efficient way to retrieve values by index. It is not necessary to regenerate the list when the property is accessed, because the list is just a wrapper for the internal array of values. The following code shows the use of the property for indexed retrieval of values from a sorted list of strings:
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.cs" id="Snippet11":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/remarks.vb" id="Snippet11":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.vb" id="Snippet11":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/remarks.fs" id="Snippet11":::
Retrieving the value of this property is an O(1) operation.
@@ -3337,10 +3337,10 @@ Retrieving the value of this property is an O(1) operation.
This code example is part of a larger example provided for the class.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet8":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet8":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet8":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet8":::
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.cs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.SortedList/VB/source.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/SortedListTKey,TValue/Overview/source.vb" id="Snippet7":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/SortedListTKey,TValue/Overview/source.fs" id="Snippet7":::
]]>
diff --git a/xml/System.Collections.Generic/Stack`1.xml b/xml/System.Collections.Generic/Stack`1.xml
index 9a57f63105a..4bdb0e8c5dc 100644
--- a/xml/System.Collections.Generic/Stack`1.xml
+++ b/xml/System.Collections.Generic/Stack`1.xml
@@ -138,7 +138,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -222,7 +222,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -296,7 +296,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -455,7 +455,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -528,7 +528,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -602,7 +602,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -688,7 +688,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -804,7 +804,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -877,7 +877,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -951,7 +951,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -1029,7 +1029,7 @@
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
@@ -1455,7 +1455,7 @@ Retrieving the value of this property is an O(1) operation.
:::code language="csharp" source="~/snippets/csharp/System.Collections.Generic/StackT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Collections.Generic/StackT/Overview/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/Generic.Stack/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/StackT/Overview/source.vb" id="Snippet1":::
]]>
diff --git a/xml/System.IO/DirectoryInfo.xml b/xml/System.IO/DirectoryInfo.xml
index 3416596fc4c..1da65276348 100644
--- a/xml/System.IO/DirectoryInfo.xml
+++ b/xml/System.IO/DirectoryInfo.xml
@@ -436,7 +436,7 @@ namespace ConsoleApp
:::code language="csharp" source="~/snippets/csharp/System.IO/DirectoryInfo/CreateSubdirectory/directoryinfocreatesub.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.IO/DirectoryInfo/CreateSubdirectory/directoryinfocreatesub.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/directoryinfocreatesub/VB/directoryinfocreatesub.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/DirectoryInfo/CreateSubdirectory/directoryinfocreatesub.vb" id="Snippet1":::
]]>
@@ -694,7 +694,7 @@ namespace ConsoleApp
:::code language="csharp" source="~/snippets/csharp/System.IO/DirectoryInfo/Delete/directoryinfodelete.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.IO/DirectoryInfo/Delete/directoryinfodelete.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/directoryinfodelete/VB/directoryinfodelete.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/DirectoryInfo/Delete/directoryinfodelete.vb" id="Snippet1":::
]]>
@@ -2255,7 +2255,7 @@ namespace ConsoleApp
:::code language="csharp" source="~/snippets/csharp/System.IO/DirectoryInfo/GetDirectories/directoryinfogetdirectories.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.IO/DirectoryInfo/GetDirectories/directoryinfogetdirectories.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/directoryinfogetdirectories/VB/directoryinfogetdirectories.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/DirectoryInfo/GetDirectories/directoryinfogetdirectories.vb" id="Snippet1":::
]]>
@@ -3510,7 +3510,7 @@ namespace ConsoleApp
:::code language="csharp" source="~/snippets/csharp/System.IO/DirectoryInfo/MoveTo/directoryinfomoveto.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.IO/DirectoryInfo/MoveTo/directoryinfomoveto.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/directoryinfomoveto/VB/directoryinfomoveto.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/DirectoryInfo/MoveTo/directoryinfomoveto.vb" id="Snippet1":::
]]>
@@ -3685,7 +3685,7 @@ The following example refers to the parent directory of a specified directory.
:::code language="csharp" source="~/snippets/csharp/System.IO/DirectoryInfo/Parent/directoryinfoparent.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.IO/DirectoryInfo/Parent/directoryinfoparent.fs" id="Snippet1":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/directoryinfoparent/VB/directoryinfoparent.vb" id="Snippet1":::
+:::code language="vb" source="~/snippets/visualbasic/System.IO/DirectoryInfo/Parent/directoryinfoparent.vb" id="Snippet1":::
]]>
@@ -3752,7 +3752,7 @@ The following example refers to the parent directory of a specified directory.
:::code language="csharp" source="~/snippets/csharp/System.IO/DirectoryInfo/Root/directoryinforoot2.cs" id="Snippet2":::
:::code language="fsharp" source="~/snippets/fsharp/System.IO/DirectoryInfo/Root/directoryinforoot2.fs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/directoryinforoot/VB/directoryinforoot2.vb" id="Snippet2":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/DirectoryInfo/Root/directoryinforoot2.vb" id="Snippet2":::
]]>
diff --git a/xml/System.IO/FileInfo.xml b/xml/System.IO/FileInfo.xml
index deac4a40d7d..590dbacce40 100644
--- a/xml/System.IO/FileInfo.xml
+++ b/xml/System.IO/FileInfo.xml
@@ -377,7 +377,7 @@ C:\Users\userName\AppData\Local\Temp\tmp70CB.tmp was successfully deleted.
The following example demonstrates copying one file to another file, throwing an exception if the destination file already exists.
:::code language="csharp" source="~/snippets/csharp/System.IO/FileInfo/CopyTo/fileinfocopyto1.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/FileInfoCopyTo1/VB/fileinfocopyto1.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/FileInfo/CopyTo/fileinfocopyto1.vb" id="Snippet1":::
]]>
@@ -1176,7 +1176,7 @@ C:\Users\userName\AppData\Local\Temp\tmp70CB.tmp was successfully deleted.
The following code example uses the method and the method to add and then remove an access control list (ACL) entry from a file. You must supply a valid user or group account to run this example.
:::code language="csharp" source="~/snippets/csharp/System.IO/FileInfo/GetAccessControl/sample.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IO.FileInfo.GetAccessControl-SetAccessControl/VB/sample.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/FileInfo/GetAccessControl/sample.vb" id="Snippet1":::
]]>
@@ -1311,7 +1311,7 @@ C:\Users\userName\AppData\Local\Temp\tmp70CB.tmp was successfully deleted.
The following example creates a temporary file, uses the property to first check and then set its read-only status, and finally marks it as read-write in order to delete it.
:::code language="csharp" source="~/snippets/csharp/System.IO/FileInfo/IsReadOnly/sample.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IO.FileInfo.isReadOnly/VB/sample.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/FileInfo/IsReadOnly/sample.vb" id="Snippet1":::
]]>
@@ -2430,7 +2430,7 @@ The following example demonstrates moving a file to a different location and ren
The following code example uses the method and the method to add and then remove an ACL entry from a file. You must supply a valid user or group account to run this example.
:::code language="csharp" source="~/snippets/csharp/System.IO/FileInfo/GetAccessControl/sample.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IO.FileInfo.GetAccessControl-SetAccessControl/VB/sample.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/FileInfo/GetAccessControl/sample.vb" id="Snippet1":::
]]>
diff --git a/xml/System.IO/Path.xml b/xml/System.IO/Path.xml
index 0ce1b191c3a..6f29640f947 100644
--- a/xml/System.IO/Path.xml
+++ b/xml/System.IO/Path.xml
@@ -509,7 +509,7 @@ If any element in `paths` but the last one is not a drive and does not end with
The following example demonstrates using the `Combine` method on Windows.
:::code language="csharp" source="~/snippets/csharp/System.IO/Path/Combine/pathcombine.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/pathcombine/VB/pathcombine.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.IO/Path/Combine/pathcombine.vb" id="Snippet1":::
]]>
diff --git a/xml/System.Text/StringBuilder.xml b/xml/System.Text/StringBuilder.xml
index f4059a81161..f9f7ee85756 100644
--- a/xml/System.Text/StringBuilder.xml
+++ b/xml/System.Text/StringBuilder.xml
@@ -6946,7 +6946,7 @@ In .NET Core and in the .NET Framework 4.0 and later versions, when you instanti
:::code language="csharp" source="~/snippets/csharp/System.Text/StringBuilder/Replace/replace.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Text/StringBuilder/Replace/replace.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/stringbuilder.replace/VB/replace.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Text/StringBuilder/Replace/replace.vb" id="Snippet1":::
]]>
diff --git a/xml/System.Threading/Thread.xml b/xml/System.Threading/Thread.xml
index 53841a6e077..94b17d4d003 100644
--- a/xml/System.Threading/Thread.xml
+++ b/xml/System.Threading/Thread.xml
@@ -3524,7 +3524,7 @@ The value is not guaranteed to be a zero-based processor number.
:::code language="csharp" source="~/snippets/csharp/System.Threading/Thread/Sleep/example1.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System.Threading/Thread/Sleep/example1.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/thread.sleep_timespan/vb/example.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Threading/Thread/Sleep/example.vb" id="Snippet1":::
]]>
diff --git a/xml/System.Threading/ThreadAbortException.xml b/xml/System.Threading/ThreadAbortException.xml
index 71e607515ff..9d1ccb27755 100644
--- a/xml/System.Threading/ThreadAbortException.xml
+++ b/xml/System.Threading/ThreadAbortException.xml
@@ -79,7 +79,7 @@
The following example demonstrates aborting a thread. The thread that receives the `ThreadAbortException` uses the method to cancel the abort request and continue executing.
:::code language="csharp" source="~/snippets/csharp/System.Threading/ThreadAbortException/Overview/threadabex.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/ThreadAbEx/VB/threadabex.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Threading/Thread/Abort/threadabex.vb" id="Snippet1":::
This code produces the following output:
diff --git a/xml/System/Comparison`1.xml b/xml/System/Comparison`1.xml
index fa4e2613f88..60d67dc5e4d 100644
--- a/xml/System/Comparison`1.xml
+++ b/xml/System/Comparison`1.xml
@@ -110,7 +110,7 @@
:::code language="csharp" source="~/snippets/csharp/System/ComparisonT/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/List`1_SortComparison/fs/source.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_SortComparison/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/SortComparison/source.vb" id="Snippet1":::
The following example uses the delegate to sort the elements of a collection of `CityInfo` objects. `CityInfo` is an application-defined class that contains information about a city and its population. The example defines three methods, `CompareByName`, `CompareByPopulation`, and `CompareByNames`, that offer three different ways of ordering the `CityInfo` objects. Each method is assigned to the `comparison` argument of the method.
diff --git a/xml/System/Console.xml b/xml/System/Console.xml
index f5401098e5e..c1ba1d40238 100644
--- a/xml/System/Console.xml
+++ b/xml/System/Console.xml
@@ -1716,7 +1716,7 @@ Columns are numbered from left to right starting at 0. Rows are numbered from to
:::code language="csharp" source="~/snippets/csharp/System/Console/KeyAvailable/ka.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/console.keyavailable/FS/ka.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/console.keyavailable/VB/ka.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/Console/KeyAvailable/ka.vb" id="Snippet1":::
]]>
@@ -2862,7 +2862,7 @@ This method can be used to reacquire the standard output stream after it has bee
:::code language="csharp" source="~/snippets/csharp/System/Console/ReadKey/rk.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/console.readkey1/FS/rk.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/console.readkey1/VB/rk.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/Console/ReadKey/rk.vb" id="Snippet1":::
]]>
@@ -3946,7 +3946,7 @@ This method can be used to reacquire the standard output stream after it has bee
:::code language="csharp" source="~/snippets/csharp/System/Console/ReadKey/rk.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/console.readkey1/FS/rk.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/console.readkey1/VB/rk.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/Console/ReadKey/rk.vb" id="Snippet1":::
]]>
diff --git a/xml/System/ConsoleKeyInfo.xml b/xml/System/ConsoleKeyInfo.xml
index 891effcec0d..d9dde6476e6 100644
--- a/xml/System/ConsoleKeyInfo.xml
+++ b/xml/System/ConsoleKeyInfo.xml
@@ -78,7 +78,7 @@
:::code language="csharp" source="~/snippets/csharp/System/Console/ReadKey/rk.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/console.readkey1/FS/rk.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/console.readkey1/VB/rk.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/Console/ReadKey/rk.vb" id="Snippet1":::
]]>
@@ -392,7 +392,7 @@
:::code language="csharp" source="~/snippets/csharp/System/Console/ReadKey/rk.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/console.readkey1/FS/rk.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/console.readkey1/VB/rk.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/Console/ReadKey/rk.vb" id="Snippet1":::
]]>
@@ -501,7 +501,7 @@
:::code language="csharp" source="~/snippets/csharp/System/Console/ReadKey/rk.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/console.readkey1/FS/rk.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/console.readkey1/VB/rk.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/Console/ReadKey/rk.vb" id="Snippet1":::
]]>
diff --git a/xml/System/ConsoleModifiers.xml b/xml/System/ConsoleModifiers.xml
index 909239a9869..e09a3543c61 100644
--- a/xml/System/ConsoleModifiers.xml
+++ b/xml/System/ConsoleModifiers.xml
@@ -66,7 +66,7 @@
:::code language="csharp" source="~/snippets/csharp/System/Console/ReadKey/rk.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/console.readkey1/FS/rk.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/console.readkey1/VB/rk.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/Console/ReadKey/rk.vb" id="Snippet1":::
]]>
diff --git a/xml/System/Converter`2.xml b/xml/System/Converter`2.xml
index b4c5412d8ab..a23431eeda8 100644
--- a/xml/System/Converter`2.xml
+++ b/xml/System/Converter`2.xml
@@ -104,7 +104,7 @@
The following code example defines a method named `PointFToPoint` that converts a structure to a structure. The example then creates a of structures, creates a `Converter` delegate (`Converter(Of PointF, Point)` in Visual Basic) to represent the `PointFToPoint` method, and passes the delegate to the method. The method passes each element of the input list to the `PointFToPoint` method and puts the converted elements into a new list of structures. Both lists are displayed.
:::code language="csharp" source="~/snippets/csharp/System/ConverterTInput,TOutput/Overview/source.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/List`1_ConvertAll/vb/source.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System.Collections.Generic/ListT/ConvertAll/source.vb" id="Snippet1":::
]]>
diff --git a/xml/System/DateTime.xml b/xml/System/DateTime.xml
index 699302793be..dce54dfaddc 100644
--- a/xml/System/DateTime.xml
+++ b/xml/System/DateTime.xml
@@ -2767,7 +2767,7 @@ The value parameter is rounded to the nearest integer.
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/DateTime.DayOfWeek/FS/dow.fs" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System/DateTime/DayOfWeek/dow.cs" interactive="try-dotnet" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/DateTime.DayOfWeek/VB/dow.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/DateTime/DayOfWeek/dow.vb" id="Snippet1":::
]]>
diff --git a/xml/System/DayOfWeek.xml b/xml/System/DayOfWeek.xml
index f070ca8c127..fbb1656cb98 100644
--- a/xml/System/DayOfWeek.xml
+++ b/xml/System/DayOfWeek.xml
@@ -74,7 +74,7 @@
:::code language="csharp" source="~/snippets/csharp/System/DateTime/DayOfWeek/dow.cs" interactive="try-dotnet" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR/DateTime.DayOfWeek/FS/dow.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/DateTime.DayOfWeek/VB/dow.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/DateTime/DayOfWeek/dow.vb" id="Snippet1":::
]]>
diff --git a/xml/System/Environment.xml b/xml/System/Environment.xml
index 25144566d31..2a50200fb33 100644
--- a/xml/System/Environment.xml
+++ b/xml/System/Environment.xml
@@ -688,7 +688,7 @@ Calling the `Environment.FailFast` method to terminate execution of an applicati
:::code language="csharp" source="~/snippets/csharp/System/Environment/FailFast/ff.cs" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System/Environment/FailFast/ff.fs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/environment.FailFast/vb/ff.vb" id="Snippet1":::
+ :::code language="vb" source="~/snippets/visualbasic/System/Environment/FailFast/ff.vb" id="Snippet1":::
]]>
diff --git a/xml/System/Math.xml b/xml/System/Math.xml
index 33faeae01b8..3efebe12b79 100644
--- a/xml/System/Math.xml
+++ b/xml/System/Math.xml
@@ -4416,7 +4416,7 @@ The following example demonstrates how to use the meth
:::code language="csharp" source="~/snippets/csharp/System/Math/Max/max.cs" interactive="try-dotnet-method" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System/Math/Max/max.fs" id="Snippet1":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/math.max/VB/max.vb" id="Snippet1":::
+:::code language="vb" source="~/snippets/visualbasic/System/Math/Max/max.vb" id="Snippet1":::
]]>
@@ -5309,7 +5309,7 @@ The following example demonstrates how to use the meth
:::code language="csharp" source="~/snippets/csharp/System/Math/Min/min.cs" interactive="try-dotnet-method" id="Snippet1":::
:::code language="fsharp" source="~/snippets/fsharp/System/Math/Min/min.fs" id="Snippet1":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/math.min/VB/min.vb" id="Snippet1":::
+:::code language="vb" source="~/snippets/visualbasic/System/Math/Min/min.vb" id="Snippet1":::
]]>
diff --git a/xml/System/String.xml b/xml/System/String.xml
index 9226df9fb58..5b49f81cd61 100644
--- a/xml/System/String.xml
+++ b/xml/System/String.xml
@@ -1036,7 +1036,7 @@ In the following example, the `ReverseStringComparer` class demonstrates how you
:::code language="csharp" source="~/snippets/csharp/System/String/Compare/ArrayListSample.cs" interactive="try-dotnet" id="Snippet7":::
:::code language="fsharp" source="~/snippets/fsharp/System/String/Compare/ArrayListSample.fs" id="Snippet7":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/ArrayList/VB/ArrayListSample.vb" id="Snippet7":::
+:::code language="vb" source="~/snippets/visualbasic/System.Collections/ArrayList/Overview/ArrayListSample.vb" id="Snippet7":::
]]>