Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2012 What type of collection would you recommend?

$
0
0
I have been using VB.net (very old versions) for quite a while but not in the last 7-8 years. I have VS 2012 and .net 4.5 and it is clear that they have added a dizzying array (no pun intended) of collections. I have read and read on the net but am really more confused than before.

I would like some recommendations on what type of collection to use.

I have CAD entities that have:
a handle (a hexadecimal text string up to 16 characters)
a start point (a custom object with an X,Y and Z coordinate)
(optional) an end point (a custom object with an X,Y and Z coordinate)

For my purposes here I want to be able to retrieve (and delete) all entities that share a certain handle OR a certain start or end point:

if handle = 345 OR
if point = start point OR
if point = end point

I expect to have up to a couple thousand entities and will be "chaining" them. What I mean by chaining is to assemble then in a "chain" end to end. I will end up with one to many fragments of entities that form a chain.

I have a logic worked out that passes the collection of entities one time only and results in a chained result. It depend upon doing the finding using the criteria above.

What collection would you vb.net experts recommend?

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>