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
Pavel
1.6k
170
51.3k
Parameter List by value ???
Sep 24 2012 6:02 AM
Hello,
I need to pass List lst1 by value into
ProgressChanged
handler. This handler has second parameter of type
ProgressChangedEventArgs
.
ProgressChangedEventArgs
structure has 2 members: int and object. Object-type member can be customized. Using it I pass some custom structure, that is "casted" inside of handler.
struct AAA
{
int cnt;
List<SomeType1> lst;
}
The problem is, once inside of handler the member
lst
from AAA is still connected to the
source_list
in the calling function (that is background process). There, the
source_list
is changing, so does its "homologue" inside of handler ...
Regards.
Pavel.
Reply
Answers (
0
)
i want view lan connection all ip address in c# windows application using vs2005
Reset Global variables with out exiting application