Mega Code Archive
The Contains method is used to show that the string four is in the first copy of the queue
Imports System
Imports System.Collections.Generic
Module Example
Sub Main
Dim numbers As New Queue(Of String)
numbers.Enqueue("one")
numbers.Enqueue("two")
numbers.Enqueue("three")
numbers.Enqueue("four")
numbers.Enqueue("five")
Console.WriteLine(numbers.Contains("four"))
End Sub
End Module