473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Collections

Does a VB.NET collection class exist that is:

1. Two-dimensional
2. FIFO (first in, first out)

Thank you!

- Cheryl
May 1 '06 #1
13 1297
"Cheryl" <ch************@impaccompanies.com> schrieb:
Does a VB.NET collection class exist that is:

1. Two-dimensional
2. FIFO (first in, first out)


I suggest to check out the classes and namespaces in the
'System.Collections' namespace.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 1 '06 #2
I've been trying this, but I haven't found what I need.

- Cheryl

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
"Cheryl" <ch************@impaccompanies.com> schrieb:
Does a VB.NET collection class exist that is:

1. Two-dimensional
2. FIFO (first in, first out)


I suggest to check out the classes and namespaces in the
'System.Collections' namespace.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 1 '06 #3
"Cheryl" <ch************@impaccompanies.com> schrieb:
I've been trying this, but I haven't found what I need.


What about the 'Queue' class?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
May 1 '06 #4
1. Collections are not two dimensional. You have to explain in what
respect you need it to have two dimensions to be able to help you.

2. System.Collections.Queue.

Cheryl wrote:
Does a VB.NET collection class exist that is:

1. Two-dimensional
2. FIFO (first in, first out)

Thank you!

- Cheryl

May 1 '06 #5
Cheryl,

Queue class

http://msdn2.microsoft.com/en-us/lib...ons.queue.aspx

I hope this helps,

Cor
May 1 '06 #6
I think the Queue class is only one-dimentional

- Cheryl

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uC**************@TK2MSFTNGP04.phx.gbl...
"Cheryl" <ch************@impaccompanies.com> schrieb:
I've been trying this, but I haven't found what I need.


What about the 'Queue' class?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 1 '06 #7
A key and and a value - both strings

- Cheryl

"Göran Andersson" <gu***@guffa.com> wrote in message
news:ev**************@TK2MSFTNGP05.phx.gbl...
1. Collections are not two dimensional. You have to explain in what
respect you need it to have two dimensions to be able to help you.

2. System.Collections.Queue.

Cheryl wrote:
Does a VB.NET collection class exist that is:

1. Two-dimensional
2. FIFO (first in, first out)

Thank you!

- Cheryl

May 1 '06 #8
Cheryl,

Can not be a problem it holds object, therefore you can make your own class.

Although a it is not a dictionary, simple because of the fact that a
dictionary is not FIFO

I hope this helps,

Cor

"Cheryl" <ch************@impaccompanies.com> schreef in bericht
news:O4**************@TK2MSFTNGP03.phx.gbl...
A key and and a value - both strings

- Cheryl

"Göran Andersson" <gu***@guffa.com> wrote in message
news:ev**************@TK2MSFTNGP05.phx.gbl...
1. Collections are not two dimensional. You have to explain in what
respect you need it to have two dimensions to be able to help you.

2. System.Collections.Queue.

Cheryl wrote:
> Does a VB.NET collection class exist that is:
>
> 1. Two-dimensional
> 2. FIFO (first in, first out)
>
> Thank you!
>
> - Cheryl
>
>


May 1 '06 #9
It looks like making my own class would be my only option.

Thank you!

- Cheryl
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:Of**************@TK2MSFTNGP03.phx.gbl...
Cheryl,

Can not be a problem it holds object, therefore you can make your own class.
Although a it is not a dictionary, simple because of the fact that a
dictionary is not FIFO

I hope this helps,

Cor

"Cheryl" <ch************@impaccompanies.com> schreef in bericht
news:O4**************@TK2MSFTNGP03.phx.gbl...
A key and and a value - both strings

- Cheryl

"Göran Andersson" <gu***@guffa.com> wrote in message
news:ev**************@TK2MSFTNGP05.phx.gbl...
1. Collections are not two dimensional. You have to explain in what
respect you need it to have two dimensions to be able to help you.

2. System.Collections.Queue.

Cheryl wrote:
> Does a VB.NET collection class exist that is:
>
> 1. Two-dimensional
> 2. FIFO (first in, first out)
>
> Thank you!
>
> - Cheryl
>
>



May 1 '06 #10
"Cheryl" <ch************@impaccompanies.com> schrieb:
I think the Queue class is only one-dimentional


Mhm... What would a two-dimensional queue look like?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
May 1 '06 #11
You mean that you want a queue where each item has a key and a value?
Not really two dimensional, but rather a double one dimensional list?

If you use framework 2.0 you can use generics to make typed lists. I
believe that you could make a queue that holds KeyValuePair-elements:

Queue<KeyValuePair<string,string>>

Cheryl wrote:
A key and and a value - both strings

- Cheryl

"Göran Andersson" <gu***@guffa.com> wrote in message
news:ev**************@TK2MSFTNGP05.phx.gbl...
1. Collections are not two dimensional. You have to explain in what
respect you need it to have two dimensions to be able to help you.

2. System.Collections.Queue.

Cheryl wrote:
Does a VB.NET collection class exist that is:

1. Two-dimensional
2. FIFO (first in, first out)

Thank you!

- Cheryl


May 1 '06 #12
Not sure what you want exactly but maybe this simplistic example will work:

Private Structure myStructure
Dim Key as string
Dim Value as string
End Structure

Use that structure to hold your key-value pairs and then a Que or Stack to
hold myStructures. Should be easy to "roll" your own FIFO using this concept.
--
Dennis in Houston
"Cheryl" wrote:
It looks like making my own class would be my only option.

Thank you!

- Cheryl
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:Of**************@TK2MSFTNGP03.phx.gbl...
Cheryl,

Can not be a problem it holds object, therefore you can make your own

class.

Although a it is not a dictionary, simple because of the fact that a
dictionary is not FIFO

I hope this helps,

Cor

"Cheryl" <ch************@impaccompanies.com> schreef in bericht
news:O4**************@TK2MSFTNGP03.phx.gbl...
A key and and a value - both strings

- Cheryl

"Göran Andersson" <gu***@guffa.com> wrote in message
news:ev**************@TK2MSFTNGP05.phx.gbl...
> 1. Collections are not two dimensional. You have to explain in what
> respect you need it to have two dimensions to be able to help you.
>
> 2. System.Collections.Queue.
>
> Cheryl wrote:
> > Does a VB.NET collection class exist that is:
> >
> > 1. Two-dimensional
> > 2. FIFO (first in, first out)
> >
> > Thank you!
> >
> > - Cheryl
> >
> >



May 2 '06 #13
Cheryl,
How about a one-dimensional array in a Queue?

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Cheryl" <ch************@impaccompanies.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
|I think the Queue class is only one-dimentional
|
| - Cheryl
|
| "Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
| news:uC**************@TK2MSFTNGP04.phx.gbl...
| > "Cheryl" <ch************@impaccompanies.com> schrieb:
| > > I've been trying this, but I haven't found what I need.
| >
| > What about the 'Queue' class?
| >
| > --
| > M S Herfried K. Wagner
| > M V P <URL:http://dotnet.mvps.org/>
| > V B <URL:http://classicvb.org/petition/>
|
|
May 2 '06 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: njp | last post by:
BlankHi, How do I create a tightly coupled Object 1 such that when I update it in one collection, it is simultaneously and automatically updated in other collections? The collections are defined...
1
by: Tim T. | last post by:
I'm currently working on a report to forecast production for finished goods. The user can select one or more items to forecast. In addition, they may select one or more warehouses to view...
5
by: Simon | last post by:
Hi all, I am writing a windows application using vb.net on the 1.1 framework. We have in the application, some strongly typed collections that have been written as classes that do not inherit...
4
by: nhmark64 | last post by:
Hi, Does System.Collections.Generic.Queue not have a Synchronized method because it is already in effect synchronized, or is the Synchronized functionality missing from...
4
by: Adam Clauss | last post by:
I ran into a problem a while back when attempting to convert existing .NET 1.1 based code to .NET 2.0 using Generic collections rather than Hashtable, ArrayList, etc. I ran into an issue because...
5
by: WebSnozz | last post by:
Some collections are such that efficient search algorithms work on them such as binary search if the collection is a type which is sorted. I'm wondering how LINQ searches these collections and if...
2
by: Fred Heida | last post by:
Hi, i'm trying to (using managed C++) implment the IEnumerable<Tinterface on my class.. but have a problem with the 2 GetEnumerator method required.... what i have done is... ...
4
by: Sid Price | last post by:
Hello, I have a class of objects (Device) that are managed by another object (Devices) with a collection class (DeviceCollection) inherited from Collections.Hashtable. Each of the Device objects...
5
by: Michi Henning | last post by:
I can pass a generic collection as ICollection<Tjust fine: static void flatCollection(ICollection<intc) {} // ... List<intl = new List<int>(); flatCollection(l); // Works fine Now I...
3
by: Marco Shaw | last post by:
I've got some C# code to create a custom PowerShell cmdlet with these statements: .... using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; .... ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.