Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verification on cloning
Message
From
10/12/2014 09:09:56
 
 
To
10/12/2014 09:03:01
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01612064
Message ID:
01612092
Views:
43
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform