K
kplkumar
I want to call a method passing a parameter. I want to do this call on
a seperate thread. For example,
public class Foo
{
public static void FooSend(Message message)
{
// Start a seperate thread to call Send(message) method
// everytime someone calls this FooSend method
}
private static void Send(Message message)
{
// send the message
}
}
I know the threadstart delegate takes only methods that has no
arguments. But in my case I want to pass a parameter to the method
call.
Can someone help me here? Thanks.
a seperate thread. For example,
public class Foo
{
public static void FooSend(Message message)
{
// Start a seperate thread to call Send(message) method
// everytime someone calls this FooSend method
}
private static void Send(Message message)
{
// send the message
}
}
I know the threadstart delegate takes only methods that has no
arguments. But in my case I want to pass a parameter to the method
call.
Can someone help me here? Thanks.