C# Can't answer on PING

If I can send Ping to twitch or message to twitch chat that makes my SendIrcMessage(...) function correct? stream.WriteLine() adds \r\n, I guess or I wouldn’t be able to connect.

outputStream.WriteLine("CAP REQ :twitch.tv/tags");
outputStream.WriteLine("CAP REQ :twitch.tv/commands"); 
outputStream.WriteLine("CAP REQ :twitch.tv/membership"); 
outputStream.WriteLine("PASS " + password);
outputStream.WriteLine("NICK " + username);
outputStream.WriteLine("USER " + username + " 8 * :" + username);
foreach(string channel in Channels) outputStream.WriteLine("JOIN #" + channel);           
outputStream.Flush();

And that works fine. I can send Ping (btw I don’t know the reason too, but moderator said that I should, I mean, I can check connection with twitch through pings).
Your stream is StreamWriter?