convert samplestream to vb.net

Feb 27, 2015 at 6:34 AM
Hello,

I am trying to get the stream reader going, and noticed your thread example below which is perfect, I am wondering if someone might be able to help me convert it or an equilivent to vb.net:
  Dim t = New Thread(Function()
                               Dim sampleStream = Stream.CreateSampleStream()
                               sampleStream.TweetReceived += Function(s, a) Console.WriteLine(a.Tweet.Text)
                               sampleStream.StreamStarted += Function(s, a) Console.WriteLine("Stream started!")
                               sampleStream.StartStream()
                           End Function)

        t.Start()
I have done a few of these before, and would change it to

Addhandler samplestream.tweetrecieved, addressof tweetrecieved

then the sub, I am just not sure what the passed parameters and so on should be and how i pass those in this as they don't convert using the C3 to vb converter.

Many thanks!
Coordinator
Feb 27, 2015 at 6:13 PM
I am sorry I do not have a good knowledge of VB, maybe someone else will come to your rescue.

Linvi