What I am looking for is something like PHPs decbin function in C#. That function converts decimals to its representation as a string.
decbin
For example, when
var result = Convert.ToString(number, 2);
– Almost the only use for the (otherwise useless) Convert class.
Convert