how to convert from hexadecimal to binary in csharp

Code Example - how to convert from hexadecimal to binary in csharp

                
                        private string hex2binary(string hexvalue){  string binaryval = "";  binaryval = Convert.ToString(Convert.ToInt32(hexvalue, 16), 2);  return binaryval;}