Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion from C# to VB.NET
Message
De
17/04/2013 11:03:03
 
 
À
17/04/2013 10:55:57
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:
01571173
Message ID:
01571224
Vues:
34
>TBH, this seems like bad design. Would it not be simpler, more efficient and less error prone for a hit to retrieve a current reference to the required oApp objects rather than hold a potentially out-of-date version ?

This is a good design. And, BTW, if I get oApp as is, if another hit changes something in it, which happens very rarely, because I am not the only one doing it, like maintaining the data dictionary, this might cut off the oApp of another hit in progress. So, this is why I take a copy of it at first and use it during the hit, so it oApp, a Shared object, is changed in another hit, it will not affect the current hit in progress.

So, basically, cloning is not good as is clones only the properties but preserved the object references as is, thus to the same memory location. That is why I am looking at a deep copy. However, .NET doesn't support a deep copy. This is why it gets complicated.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform