For example we have
string in_decimal = "50";
What is the best way to make a string that holds that number in binary? The best I've come up with is:
string in_binary = Convert.ToString(Convert.ToUInt32(in_decimal), 2);
While this works it feels silly to have to convert it to an integer and back. Is there a better way of going about this?