Ho to assign sender parameter for stream?

Dec 3, 2014 at 10:31 PM
// Access the sample stream
var sampleStream = Stream.CreateSampleStream();
sampleStream.TweetReceived += (sender, args) => { Console.WriteLine(args.Tweet.Text); };
sampleStream.StartStream();

What should I do with sender parameter?

Thanks.
Coordinator
Dec 4, 2014 at 4:33 PM
Hi,

Any event in C# delegate in C# contains 2 parameters, 'sender' which is the source of the event and 'args' which contains the information the event needs to communicate.
Therefore just ignore the sender parameter, it is something required by the language but not used by Tweetinvi developers.

Linvi
Marked as answer by linvi on 12/4/2014 at 9:33 AM