0
Below is the solution using string conversion:
decimal val = 10;
string valbinary = Convert.ToString((int)val, 2); // this line converts to the base value
decimal valoutput = Convert.ToDecimal(valbinary);
Console.WriteLine(valoutput);
Console.ReadLine();
-Mike G.