Link to home
Start Free TrialLog in
Avatar of rangers99
rangers99

asked on

How do I Create New instance of an Object?

Im using Visual Studio 2008 and programming a windows application using Visual C#

I think this should be easy. Ive a variable called george as follows;

List<int> george;

George contains a list of integers.

I want to create a copy of george and call it bob. How Do I do this?

Ive dont this so far.

List<int> bob = new List<int>

How do i copy the contents of george to bob?
ASKER CERTIFIED SOLUTION
Avatar of CuteBug
CuteBug
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial