Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Launching c# Thread in PCL

$
0
0

Hi, I'm playing with xamarin (and it absolutely ROCKS) but I can't start a new thread using "the old" way.

    public void Run()
    {
        Thread thread = new Thread(ThreadMethod);
        thread.Start();
    }

    public void ThreadMethod()
    {
        Debug.WriteLine("Hello from thread");
    }

If I try and do something like the above I'm told Thread doesn't have a constructor that takes 1 parameter.

Am I missing something here? Any help appreciated.

Cheers,

NN.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>