skip to main | skip to sidebar

Ted's Hello World

Tuesday, November 27, 2007

Copy an ArrayList in VB.NET

Say you have the following two arraylists, A, B

You can't just do A = B to copy A to B. It will just create a
reference to B (so when you modify B, A will be modified as well).

In order to copy it, you need to do the following

A = new ArrayList(B)

Posted by Ted Unnikumaran at 11:43 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2011 (1)
    • ►  January (1)
  • ►  2010 (42)
    • ►  November (4)
    • ►  October (1)
    • ►  June (10)
    • ►  May (2)
    • ►  April (5)
    • ►  March (14)
    • ►  February (5)
    • ►  January (1)
  • ►  2009 (56)
    • ►  December (1)
    • ►  November (4)
    • ►  September (1)
    • ►  August (4)
    • ►  July (2)
    • ►  June (9)
    • ►  May (7)
    • ►  April (5)
    • ►  March (7)
    • ►  February (11)
    • ►  January (5)
  • ►  2008 (51)
    • ►  December (7)
    • ►  November (6)
    • ►  October (4)
    • ►  September (4)
    • ►  July (5)
    • ►  June (5)
    • ►  May (5)
    • ►  April (1)
    • ►  March (4)
    • ►  February (8)
    • ►  January (2)
  • ▼  2007 (16)
    • ►  December (10)
    • ▼  November (6)
      • Copy an ArrayList in VB.NET
      • How to creating a larger arrowhead when drawing li...
      • What's New and Different in VB .NET
      • Find the angle between two line segments - VB6 and...
      • Testing out the blog
      • Adjust the position of the question container

About Me

Ted Unnikumaran
View my complete profile