how to convert from hexadecimal to binary in c#

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

Also in C#: