I'm looking to convert this exact function from whatever language (Java I think) it is in to C#.
String hex_chr = "0123456789abcdef";
private String numToHex(int num) {
String str = "";
for (int j = 0; j <= 3; j++) {
str += "" + hex_chr.charAt((num >> (j * 8 + 4)) & 15) + "" + hex_chr.charAt((num >> (j * 8)) & 15);
}
return str;
}