ok so im trying to port over some horrible code into C# but I am not sure exactly how to convert something like tihs:

Hex$(someInputString)

what would this be in C#?