Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maintaining collection
Message
De
22/05/2013 12:34:56
 
 
À
22/05/2013 12:16:53
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01574508
Message ID:
01574513
Vues:
42
>1) As far as I know, Collection is a VB specific class. Dictionary< TKey, TValue> would be more language agnostic, and likely have better support for LINQ. It should also give you O(1) access to the element you are looking for if you know the key.
>2) Your object should be a reference type and you should be able to update it directly without removing it from the collection. The example at http://msdn.microsoft.com/en-us/library/vstudio/cy13e6ex%28v=vs.100%29.aspx under Accessing Elements confirms it.
>3) Lock the collection when you add and remove elements to prevent other threads from doing the same.

This sounds interesting. I will have to take a look at that.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform