
The System.Data Namespace | 107
.NET FCL
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Dim textContent As String
Dim wordQueue As New Collections.Queue( )
wordQueue.Enqueue("First")
wordQueue.Enqueue("in")
wordQueue.Enqueue("first")
wordQueue.Enqueue("out")
Do While (wordQueue.Count > 0)
textContent &= " " & CStr(wordQueue.Dequeue)
Loop
MsgBox(textContent)
The output is “First in first out.”
The System.Collections.Stack class implements a first-in, last-out stack structure,
using the standard methods Push and Pop. See the Stack Class entry in Chapter 12
for information on its use.
New in 2005. The 2005 release of Visual Basic includes a new generics feature.
The collection classes within the System.Collections namespace are perfectly suited
for use with generics. See Chapter 10 for details on using collections with
generics.
The System.Data Namespace
System.Data and its nested namespaces, notably System.Data.OleDb, System.
Data.SqlClient, and System.Data.OracleClient, implement the primary database
interaction feature of the .NET Framework, ADO.NET. The OleDb, SqlClient,
and OracleClient namespaces define data providers that connect to a data source,
retrieve data from a data source, write data back to a data source, and execute
commands against the data source. The most important class in each of these
namespaces is the data adapter class ...