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
Space Ghost
NA
45
0
MultiThreading in C#
Feb 23 2010 3:16 PM
Hi all,
I have a method that needs to execute a lot of times. I want to drop my code in there but also the method expects two paramaters for everything to work as expected. No I am faced with the following issue.
I use the System.Threading.ThreadPool class to queue the executions. My current code looks like this:
foreach (string
f
in FileList)
{
bool
u
= true;
ThreadPool.QueueUserWorkItem(new WaitCallback(CreateK2_Excist), f );
I want to be able to pass in
u
and
f
but I can only get the WaitCallback to accept 1 paramater.
How would it be possible to pass in two paramaters too my method??
Thanks in advance!
{SpGh}
Reply
Answers (
2
)
inheritence in form
How can I: Copy a generic form and then make changes.