Skip to Content
Microsoft® Visual C#® .NET 2003 Kick Start
book

Microsoft® Visual C#® .NET 2003 Kick Start

by Steven Holzner
June 2003
Intermediate to advanced
624 pages
12h 41m
English
Sams
Content preview from Microsoft® Visual C#® .NET 2003 Kick Start

Using Queues

Queues work much as they sound—they are first-in, first-out (FIFO) collections, like when you stand in line for tickets. These collections are good when you have a group of objects you want to process as they come in, such as when you receive client requests to connect to a Web service. Queues are supported with the Queue class. You can see the significant public properties of Queue objects in Table 6.7, and their significant public methods in Table 6.8. You use the Enqueue method to add items to the end of a queue and Dequeue to remove the first item from the front of the queue.

Table 6.7. Significant Public Properties of Queue Objects
PROPERTYPURPOSE
CountReturns the number of elements contained in the queue.
IsSynchronizedReturns ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® .NET Kick Start

Microsoft® .NET Kick Start

Hitesh Seth

Publisher Resources

ISBN: 0672325470Purchase book