Note that there are some explanatory texts on larger screens.

plurals
  1. POwhich collection type to use in .NET 4.5?
    text
    copied!<p>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.</p> <p>I would like some recommendations on what type of collection to use.</p> <p>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)</p> <p>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:</p> <pre><code>if handle = 345 OR if point = start point OR if point = end point </code></pre> <p>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.</p> <p>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.</p> <p>Edit...extremely simplified actual data might look like this:</p> <pre><code>Handle: 110 Start point x: 23.17 Start point y: 18.29 End point x: 32.5 End point y: 30.72 Handle: 111 Start point x: 40.12 Start point y: 18.32 Handle: 112 Start point x: 40.12 Start point y: 40.12 End point x: 100.1 End point y: 83.2 Handle: 113 Start point x: 40.12 Start point y: 18.32 End point x: 32.5 End point y: 30.72 </code></pre> <p>These would end up chained in this order:</p> <pre><code>Handle: 110 Start point x: 23.17 Start point y: 18.29 End point x: 32.5 End point y: 30.72 Handle: 113 Start point x: 40.12 Start point y: 18.32 End point x: 32.5 End point y: 30.72 Handle: 111 Start point x: 40.12 Start point y: 18.32 Handle: 112 Start point x: 40.12 Start point y: 40.12 End point x: 100.1 End point y: 83.2 </code></pre> <p>What collection would you vb.net experts recommend?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload