I’m trying to convert old VB.NET code into C# and I’m not sure about the current line and what it means really.
VB.NET:
Const REQUEST_EFI As Byte = &H57
What would this be in c#? I tried:
const byte request_efi = &H57;
But it says
“H57 is not part of the current
context”.
First of all, how is &H57 a byte? Second, it seems that the & operator has a different representation in this context aside from concatenation. Third obviously being, how the heck do I re-write this for C#? lol. Thanks!
I guess it is a hexadecimal number. The syntax for that would be
0x57in C#.