TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Raja Pandian
NA
1
0
Deep Copying of Object
Aug 29 2006 10:20 AM
I have one object that's value changes at regular intervals. I want to store the object's values at each and every stage. I am storing it in an array after every stage.
ObjecstToTest[ScenarioCount] = SelectedObj;
ScenarioCount++;
The problem I face is, I am getting the array element's values are equal to the object current state. Since, I am copying the reference type, whenever the objects value changes, it changes the whole array values which are stored stored already.
I can't use serialization to store the deep copy of the object as the class I am using is not under my control. I am referencing it from a third party dll.
Please help in solving this.
Raja Pandian
Reply
Answers (
1
)
c# and autocad
Socket packetsize error