Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verification on cloning
Message
De
10/12/2014 09:09:56
 
 
À
10/12/2014 09:03:01
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01612064
Message ID:
01612092
Vues:
44
>In my Data class, I have this also as definitions:
>
>
>    Public oDataSet As DataSet = Nothing
>    Public oDataTable As DataTable = Nothing
>    Public oDataView As DataView = Nothing
>    Public oParameters As ArrayList = New ArrayList
>    Public oRow As DataRow = Nothing
>    Public oRowInitial As DataRow = Nothing
>    Public oRows As DataRowCollection = Nothing
>
>
>The cloning, as it was before, worked for the parameters. So, I assume oParameters is a value type.
>
>I would then assume for the cloning to work, I would need to copy as well the other ones in here as they are not value types.

An ArrayList( oParameters ) is a reference type

If the ArrayList is not going to be changed - you can use the reference
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform