I am pretty new to doing C#. I was trying to make a basic encoder/decoder. I got the decoder working but I am having errors with the encoding.
var e = Convert.ToBase64String(Console.ReadLine());
This is in an if command and I'm only using the namespace System.