How can I create and start a parameterized thread in .NET 1.1?

.NET 1.1 lacks ParameterizedThreadStart (I have to use 1.1 because it's the last one supporting NT 4.0)

In .NET 2.0, I would simply write:

Thread clientThread = new Thread(new ParameterizedThreadStart(SomeThreadProc));

How can I create equivalent .NET 1.1 code?


You would need to create a class for the state:

class Foo {
  private int bar;
  public Foo(int bar) { // and any other args = bar;
  public void DoStuff() {
     // ...something involving "bar"
Foo foo = new Foo(12);
Thread thread = new Thread(new ThreadStart(foo.DoStuff));

Need Your Help

How to update certificate in heroku truststore so that my application can talk to remote server which now has a new ssl certificate

ssl heroku ssl-certificate renewal

The remote server my application was talking to added a new ssl certificate at its end. My application since then has been throwing sslHandshakeError. Please help with adding the new certificate fi...